Verified Commit 2aaae86c authored by j's avatar j

Implement color changing

parent b773014f
......@@ -43,6 +43,18 @@ int 0x10
;; Read character
mov ah, 0x00
int 0x16
;; Read character is in al
sub al, 'a'
mov bl, al
shl bl, 0x4
;; Read character
mov ah, 0x00
int 0x16
;; Read character is in al
sub al, 'a'
or al, bl
mov [color_mode], al
jmp .loop
......@@ -116,7 +128,7 @@ int 0x10
halt: hlt
color_mode: db 0x05
color_mode: db 0x02
times 510 - ($ - $$) db 0
dw 0xAA55
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment