aboutsummaryrefslogtreecommitdiff
path: root/timed_getch.s
diff options
context:
space:
mode:
Diffstat (limited to 'timed_getch.s')
-rw-r--r--timed_getch.s5
1 files changed, 2 insertions, 3 deletions
diff --git a/timed_getch.s b/timed_getch.s
index fdb0dc0..a243c20 100644
--- a/timed_getch.s
+++ b/timed_getch.s
@@ -69,9 +69,7 @@ _timed_getch:
beq @wait4key
; user hit a key, handle it. but don't print a cursor.
-_agetc_no_cursor:
- jsr _cgetc
- jmp finish_agetc
+ bne _agetc_no_cursor
; _agetc removes the inverse-video bit, and if
; a control key is pressed, it turns it into the non-control version
@@ -83,6 +81,7 @@ _agetc:
lda #$80 ; inverse space (putchar uses screen codes)
jsr putchar
+_agetc_no_cursor:
jsr _cgetc ; get ATASCII code of keypress
pha