2008年11月17日
摘要: %include"protect.inc"; 常量, 宏, 以及一些说明org 0x0500; 实模式jmpSetUp_seg;------------------------------------------------------------------------------------------times0x10-($-$$)db0KernelSizeequ512; 此处地址: $ -> 0x500MCRNumberDW:dd0MemChkBuf:times256db0MemSizeDW:dd0MemInfo1db"_______________ 阅读全文
posted @ 2008-11-17 23:13 sun_kang 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Des_32EQU4000h; 32 位段Des_16EQU0000h; 16 位段Des_GEQU8000h; 段界限粒度, G=1 表示界限粒度为4K 字节Des_DPL0EQU 00h; DPL = 000 0 0000Des_DPL1EQU 20h; DPL = 101 0 0000Des_DPL2EQU 40h; DPL = 210 0 0000Des_DPL3EQU 60h; DPL = 311 0 0000Des_DREQU90h;1001 0000 存在的 只读 数据段类型值Des_DRWEQU92h;1001 0010 存在的 可读写 数据段属性值Des_DRWAEQU93h 阅读全文
posted @ 2008-11-17 23:06 sun_kang 阅读(167) 评论(0) 推荐(0) 编辑
摘要: org07c00h; 告诉编译器程序加载到7c00处jmpBootSeg;times 256db0BootSeg:movax, csmovds, axmoves, ax;置堆栈段指针movax, 08FC0hmovss, axmovesp, 0FFFFh;清屏movcx, 0000hmovdx, 1850hmovbh, 07hmovax, 0600hint10h;置光标为左上角movbh, 00hmovdx, 0000hmovah, 02hint10h;显示 BootMessage 信息movax, BootMessagemovbp, ax; ES:BP = 串地址movcx, BootMes 阅读全文
posted @ 2008-11-17 23:02 sun_kang 阅读(177) 评论(0) 推荐(0) 编辑