INCLUDE 386SCD.asm
.386P
GDTSEG SEGMENT PARA USE16 'GDT'
GDT LABEL BYTE
DUMMY DESCRIPTOR <>
NORMAL DESCRIPTOR <0FFFFH,0,0,92H,0>
NORMAL_SEL = NORMAL-GDT
CODEK DESCRIPTOR <0FFFFH,,,98H,>
;CODEK的段界限必须置为0FFFFH,因为要从CODEK返回实模式,CS高速缓冲存储器必须符合实模式下的要求
CODEK_SEL = CODEK-GDT
LDTABLE DESCRIPTOR <LDTLEN-1,,,82H,>
LDT_SEL = LDTABLE-GDT
GDTLEN = $
GDTSEG ENDS
LDTSEG SEGMENT PARA USE16 'LDT'
LDT LABEL BYTE
CODEL DESCRIPTOR <CODELLEN-1,CODELSEG,,98H,>
CODEL_SEL = CODEL-LDT+TIL
CODEC DESCRIPTOR <CODECLEN-1,CODECSEG,,98H,>
CODEC_SEL = CODEC-LDT+TIL
VIDEOBUFF DESCRIPTOR <0FFFFH,0,0,0F00H+92H,0