Add keyboard checking

This commit is contained in:
Juhani Krekelä 2022-03-11 18:56:01 +02:00
parent 9cbd526b37
commit 381aab33d7
1 changed files with 14 additions and 0 deletions

View File

@ -20,6 +20,20 @@ setup:
mov es, ax
mainloop:
; Check keyboard
mov ah, 6
mov dl, 0xff
int 0x21
jz .no_key
.key:
cmp al, 'q'
je exit
cmp al, 27
je exit
.no_key:
; Check time
mov ah, 0x2c
int 0x21
cmp ch, [hour]