better handling of the cursor, use kernal function to read key, not the UART directly
This commit is contained in:
@@ -1,17 +1,7 @@
|
||||
|
||||
|
||||
; 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
|
||||
@@ -19,6 +9,6 @@ _kbhit:
|
||||
|
||||
lda #1
|
||||
:
|
||||
ldx #0
|
||||
ldx #>$0000
|
||||
rts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user