Implement color changing

This commit is contained in:
redfast00 2019-08-06 17:36:37 +02:00
parent b773014f61
commit 2aaae86c8a
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

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