nothing works but time to update

This commit is contained in:
2026-04-14 10:04:20 -04:00
parent 2e3dfa9583
commit 437e7ff593
12 changed files with 238 additions and 0 deletions

29
gdt.asm Normal file
View File

@@ -0,0 +1,29 @@
gdt_start:
dq 0x0 ; The null descriptor (mandatory)
; Code Segment Descriptor
gdt_code:
dw 0xffff ; Limit
dw 0x0 ; Base (bits 0-15)
db 0x0 ; Base (bits 16-23)
db 10011010b ; Access byte
db 11001111b ; Flags + Limit (bits 16-19)
db 0x0 ; Base (bits 24-31)
; Data Segment Descriptor
gdt_data:
dw 0xffff
dw 0x0
db 0x0
db 10010010b
db 11001111b
db 0x0
gdt_end:
gdt_descriptor:
dw gdt_end - gdt_start - 1
dd gdt_start
CODE_SEG equ gdt_code - gdt_start
DATA_SEG equ gdt_data - gdt_start