aboutsummaryrefslogtreecommitdiff
path: root/timed_getch.s
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-05-27 17:12:46 -0400
committerB. Watson <yalhcru@gmail.com>2021-05-27 17:12:46 -0400
commitdb18f631485eea0b1e7d6c8cf853ff4a281c2aba (patch)
tree745ce83b3c24eb8253b7c7097d9a36937b627a49 /timed_getch.s
parent5b6f0359338c922f809c5133eb4c7efc61b3f21c (diff)
downloadtaipan-db18f631485eea0b1e7d6c8cf853ff4a281c2aba.tar.gz
cash_dirty, change random seeding, now 9006 bytes
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