Clearing the z80 keyboard buffer before starting the OS boot loader
This commit is contained in:
parent
e7b8753a9e
commit
9226260e35
@ -1 +1 @@
|
||||
Subproject commit 374477690571809e7318bd4279bc7da120b6c492
|
||||
Subproject commit 2308a92341b8cf17b710c05123feec4d4dc55609
|
||||
@ -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
|
||||
|
||||
;-----------------------------------------------------------------------;
|
||||
|
||||
|
||||
|
||||
@ -866,6 +866,7 @@ RECOVERYstart:
|
||||
|
||||
PrepareToBOOT:
|
||||
CALL INT_OFF
|
||||
CALL PORTS_INIT.clean_kbd_buf
|
||||
CALL G_VALUE
|
||||
LD B,0
|
||||
; FDD
|
||||
|
||||
Loading…
Reference in New Issue
Block a user