📄 system_invoke.h
字号:
#ifndef _PYOS_SYSTEM_INVOKE_
#define _PYOS_SYSTEM_INVOKE_
/* 调用门结构 */
struct struct_pyos_InvokeGate{
unsigned short Offset_0_15 ; /* 偏移量的 0~15 位 */
unsigned short SegSelector ; /* 段选择符 */
unsigned char DWordCount : 5 ; /* 双字计数字段 */
unsigned char Saved_0 : 3 ; /* 保留,需为 0 */
unsigned char Type_1100 : 4 ; /* 类型字段,调用门需为 1100 ( 0xC ) */
unsigned char DT_0 : 1 ; /* 需为 0 , 以表明这是一个系统用的描述符 */
unsigned char DPL : 2 ; /* 特权级 */
unsigned char P : 1 ; /* 存在位 */
unsigned short Offset_16_31 ;
} ;
class class_pyos_SystemInvoke{ /* 系统调用类 */
protected:
class_pyos_SystemInvoke(){} ;
public:
static void Init() ;
} ;
/* 打印的系统调用汇编函数 */
extern "C" void pyos_asm_invoke_video_print( unsigned int x_pos , unsigned int y_pos , char ch , char style ) ;
/* 清屏的系统调用汇编函数 */
extern "C" void pyos_asm_invoke_video_clear() ;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -