mirror of
https://github.com/Tolik-Trek/Sprinter-BIOS.git
synced 2026-11-25 13:53:34 +03:00
Clearing the z80 keyboard buffer before starting the OS boot loader
This commit is contained in:
1 parent
e7b8753a9e
commit
9226260e35
3 files changed
+4
-5
No files matched your search
+1
-1
Submodule Shared_Includes updated: 3744776905...2308a92341.
@@ -1035,14 +1035,12 @@ PORTS_INIT:
|
|||||||
.clean_kbd_buf:
|
.clean_kbd_buf:
|
||||||
IN A,(Z84.SIO.Ch_A.Ctrl)
|
IN A,(Z84.SIO.Ch_A.Ctrl)
|
||||||
AND 1
|
AND 1
|
||||||
JR Z,1F
|
RET Z
|
||||||
IN A,(Z84.SIO.Ch_A.Data)
|
IN A,(Z84.SIO.Ch_A.Data)
|
||||||
JR .clean_kbd_buf
|
JR .clean_kbd_buf
|
||||||
1: ;exit from .clean_kbd_buf
|
; RET PORTS_INIT.clean_kbd_buf
|
||||||
;---------------------------------------
|
;---------------------------------------
|
||||||
|
|
||||||
RET
|
|
||||||
|
|
||||||
;-----------------------------------------------------------------------;
|
;-----------------------------------------------------------------------;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -866,6 +866,7 @@ RECOVERYstart:
|
|||||||
|
|
||||||
PrepareToBOOT:
|
PrepareToBOOT:
|
||||||
CALL INT_OFF
|
CALL INT_OFF
|
||||||
|
CALL PORTS_INIT.clean_kbd_buf
|
||||||
CALL G_VALUE
|
CALL G_VALUE
|
||||||
LD B,0
|
LD B,0
|
||||||
; FDD
|
; FDD
|
||||||
|
|||||||
Reference in new issue
Block a user