This commit is contained in:
Garen Chan 2023-09-30 21:42:32 -03:00 committed by GitHub
commit df1766c4cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ print_string_pm:
mov edx, VIDEO_MEMORY
print_string_pm_loop:
mov al, [ebx] ; [ebx] is the address of our character
mov al, [ebx] ; 'ebx' is the address of our character
mov ah, WHITE_ON_BLACK
cmp al, 0 ; check if end of string

View File

@ -27,8 +27,8 @@ gdt_end:
; GDT descriptor
gdt_descriptor:
dw gdt_end - gdt_start - 1 ; size (16 bit), always one less of its true size
dd gdt_start ; address (32 bit)
dw gdt_end - gdt_start - 1 ; size (16 bits), always one less of its true size
dd gdt_start ; address (32 bits)
; define some constants for later use
CODE_SEG equ gdt_code - gdt_start