Clearing the z80 keyboard buffer before starting the OS boot loader

This commit is contained in:
Anatoliy Belyanskiy committed 2023-10-30 02:06:58 +10:00
1 parent e7b8753a9e
commit 9226260e35
3 files changed
+4 -5

No files matched your search

+2 -4
View File
@@ -1035,14 +1035,12 @@ PORTS_INIT:
.clean_kbd_buf:
IN A,(Z84.SIO.Ch_A.Ctrl)
AND 1
JR Z,1F
RET Z
IN A,(Z84.SIO.Ch_A.Data)
JR .clean_kbd_buf
1: ;exit from .clean_kbd_buf
; RET PORTS_INIT.clean_kbd_buf
;---------------------------------------
RET
;-----------------------------------------------------------------------;
+1
View File
@@ -866,6 +866,7 @@ RECOVERYstart:
PrepareToBOOT:
CALL INT_OFF
CALL PORTS_INIT.clean_kbd_buf
CALL G_VALUE
LD B,0
; FDD