-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path386pdt.asm
30 lines (27 loc) · 1.55 KB
/
386pdt.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
;░▒▓█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█▓▒░
;░▒▓█ A i386(R) protected mode library █▓▒░
;░▒▓█ (C)opyright 1993 by FRIENDS software █▓▒░
;░▒▓█ Descriptor tables (GDT & IDT) █▓▒░
;░▒▓█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█▓▒░
;********************* Global Descriptor Table (GDT) *************************
; NULL descriptor
GDTdescr GDT
; Supervisor code segment
GDTdescr gdCode,dfCode
; Supervisor data segment
GDTdescr gdData,dfData
; Flat segment (with zero base and 4Gb limit) descriptor
GDTdescr gdFlat,dfData,df4GbLimit
; Video segment descriptor
GDTdescr gdVideo,dfData
; TSS itself
GDTdescr gdTSS,dfTSS
GDTlen equ $-GDT
;******************* Interrupt descriptor table (IDT) ************************
IDTentry = 0
IDT label near
rept TopInt+1
IDTdescr idInt%IDTentry,Int%IDTentry,dfIntGate
IDTentry = IDTentry+1
endm
IDTlen equ $-IDT