start_64 vga_clear now clears the screen AND resets the colour attribute bytes

This commit is contained in:
2022-12-21 08:31:11 +00:00
parent ea8d46b0f0
commit a3be1de07d

View File

@@ -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