system_invoke.h
来自「哈工大的几个人开发的操作系统pyos的部分源码」· C头文件 代码 · 共 29 行
H
29 行
#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 + =
减小字号Ctrl + -
显示快捷键?