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
1 changed files with 13 additions and 1 deletions

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