Implement color changing
This commit is contained in:
parent
b773014f61
commit
2aaae86c8a
1 changed files with 13 additions and 1 deletions
14
messages.asm
14
messages.asm
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue