start_64 vga_clear now clears the screen AND resets the colour attribute bytes
This commit is contained in:
@@ -15,10 +15,10 @@ kernel_identifier:
|
||||
|
||||
vga_clear:
|
||||
mov $0xb8000, %rdi # VGA buffer
|
||||
mov $500, %rcx # 4,000 bytes to clear = 500 quadwords
|
||||
mov $0x0, %rax
|
||||
mov $1000, %rcx # 4,000 bytes to clear = 2,000 words
|
||||
mov $0x0700, %rax
|
||||
|
||||
rep stosq
|
||||
rep stosw
|
||||
|
||||
ret
|
||||
|
||||
|
||||
Reference in New Issue
Block a user