a bunch of simple conio fixes, makes a few more samples work

This commit is contained in:
mrdudz
2025-06-25 00:23:58 +02:00
parent fa6d72cae5
commit 23336420b1
21 changed files with 484 additions and 2 deletions

24
libsrc/mega65/kbhit.s Normal file
View File

@@ -0,0 +1,24 @@
; FIXME: is $d610 mega65 specific?
; FIXME: this should rather use the kernal (with keyboard buffer etc)
.export _cgetc
_cgetc:
: lda $d610
beq :-
ldx #0
stx $d610
rts
.export _kbhit
_kbhit:
lda $d610
beq :+
lda #1
:
ldx #0
rts