摘要: GDT_DES : DESCRIPTOR 0 0 0[section .gdt]GDT_DES : DESCRIPTOR 0 0 0 ;空白描述符VIDEO_DES : DESCRIPTOR 0x0B8000H 0x0FFFFH DA_DRWCODE32_DES : DESCRIPTOR 0 0 DA_C|DA_32 ;32位,不知道intel如何弥补64位的这个窟窿,补丁越补越丑,越不协调[section .s16][bits 16][section .gdt]GDT_DES : DESCRIPTOR 0 0 0 ;空白描述符VIDEO_DES : DES... 阅读全文
posted @ 2013-12-05 18:04 youJumpILook 阅读(259) 评论(0) 推荐(0) 编辑
摘要: [SECTION .s16][BITS 16]LABEL_BEGIN: mov ax, cs mov ds, ax mov es, ax mov ss, ax mov sp, 0100h ; 初始化 32 位代码段描述符 xor eax, eax mov ax, cs shl eax, 4 add eax, LABEL_SEG_CODE32 mov word [LABEL_DESC_CODE32 + 2], ax shr eax, 16 mov ... 阅读全文
posted @ 2013-12-05 17:12 youJumpILook 阅读(394) 评论(0) 推荐(0) 编辑