mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
Merge 2ec032deb1
into ce8e050d24
This commit is contained in:
commit
df1766c4cb
@ -9,7 +9,7 @@ print_string_pm:
|
|||||||
mov edx, VIDEO_MEMORY
|
mov edx, VIDEO_MEMORY
|
||||||
|
|
||||||
print_string_pm_loop:
|
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
|
mov ah, WHITE_ON_BLACK
|
||||||
|
|
||||||
cmp al, 0 ; check if end of string
|
cmp al, 0 ; check if end of string
|
||||||
|
@ -27,8 +27,8 @@ gdt_end:
|
|||||||
|
|
||||||
; GDT descriptor
|
; GDT descriptor
|
||||||
gdt_descriptor:
|
gdt_descriptor:
|
||||||
dw gdt_end - gdt_start - 1 ; size (16 bit), always one less of its true size
|
dw gdt_end - gdt_start - 1 ; size (16 bits), always one less of its true size
|
||||||
dd gdt_start ; address (32 bit)
|
dd gdt_start ; address (32 bits)
|
||||||
|
|
||||||
; define some constants for later use
|
; define some constants for later use
|
||||||
CODE_SEG equ gdt_code - gdt_start
|
CODE_SEG equ gdt_code - gdt_start
|
||||||
|
Loading…
Reference in New Issue
Block a user