⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lrmi.h

📁 linux 下svgalib编的一个界面程序示例
💻 H
字号:
/*Linux Real Mode Interface - A library of DPMI-like functions for Linux.Copyright (C) 1998 by Josh VanderhoofYou are free to distribute and modify this file, as long as youdo not remove this copyright notice and clearly label modifiedversions as being modified.This software has NO WARRANTY.  Use it at your own risk.*/#ifndef LRMI_H#define LRMI_Hstruct LRMI_regs	{	unsigned int edi;	unsigned int esi;	unsigned int ebp;	unsigned int reserved;	unsigned int ebx;	unsigned int edx;	unsigned int ecx;	unsigned int eax;	unsigned short int flags;	unsigned short int es;	unsigned short int ds;	unsigned short int fs;	unsigned short int gs;	unsigned short int ip;	unsigned short int cs;	unsigned short int sp;	unsigned short int ss;	};/* Initialize returns 1 if sucessful, 0 for failure*/intLRMI_init(void);/* Simulate a 16 bit far call returns 1 if sucessful, 0 for failure*/intLRMI_call(struct LRMI_regs *r);/* Simulate a 16 bit interrupt returns 1 if sucessful, 0 for failure*/intLRMI_int(int interrupt, struct LRMI_regs *r);/* Allocate real mode memory The returned block is paragraph (16 byte) aligned*/void *LRMI_alloc_real(int size);/* Free real mode memory*/voidLRMI_free_real(void *m);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -