| 1 | gdt: |
| 2 | dw .size - 1 + 8 ; GDT size |
| 3 | dd .start - 8 ; GDT start address |
| 4 | |
| 5 | .start: |
| 6 | ; 32-bit code |
| 7 | dw 0xffff ; Limit |
| 8 | dw 0x0000 ; Base (low 16 bits) |
| 9 | db 0x00 ; Base (mid 8 bits) |
| 10 | db 10011011b ; Access |
| 11 | db 11001111b ; Granularity |
| 12 | db 0x00 ; Base (high 8 bits) |
| 13 | |
| 14 | ; 32-bit data |
| 15 | dw 0xffff ; Limit |
| 16 | dw 0x0000 ; Base (low 16 bits) |
| 17 | db 0x00 ; Base (mid 8 bits) |
| 18 | db 10010011b ; Access |
| 19 | db 11001111b ; Granularity |
| 20 | db 0x00 ; Base (high 8 bits) |
| 21 | |
| 22 | .end: |
| 23 | |
| 24 | .size: equ .end - .start |
