New OSI input routine based on disassembly of ROM code.

This commit is contained in:
Jeff Tranter
2018-01-04 19:04:13 -05:00
committed by greg-king5
parent 9a3e521358
commit e2007d0743
3 changed files with 190 additions and 3 deletions

View File

@@ -11,6 +11,7 @@
;
.export _kbhit
.import inputc
.include "osic1p.inc"
.include "extzp.inc"
.include "zeropage.inc"
@@ -40,7 +41,7 @@ scan:
sta CHARBUF ; No character in buffer
rts
keypressed:
jsr INPUTC ; Get input character in A
jsr inputc ; Get input character in A
sta CHARBUF ; Save in buffer
ldx #$00 ; High byte of return is always zero
lda #$01 ; Return true