saved few more bytes in CHRIN keyboard

This commit is contained in:
FeralChild64 committed 2019-11-07 22:29:20 +01:00
1 parent 2398616bee
commit 671a3bc3bf
1 file changed
+9 -10
+9 -10
View File
@@ -6,7 +6,7 @@
chrin_keyboard:
// Save X
// Save .X
phx_trash_a
chrin_repeat:
@@ -27,6 +27,14 @@ chrin_repeat:
// Return carriage return and clear pending input flag
lda #$00
sta CRSW
// FALLTROUGH
empty_line:
// For an empty line, just return the carriage return
// (and don't forget to actually print the carriage return, so that
// the cursor advances and screen scrolls as required)
plx_trash_a
clc
lda #$0d
@@ -92,15 +100,6 @@ chrin_enter:
ldy #$00
beq chrin_keyboard_return_byte // branch always
empty_line:
// For an empty line, just return the carriage return
// (and don't forget to actually print the carriage return, so that
// the cursor advances and screen scrolls as required)
plx_trash_a
clc
lda #$0d
rts
not_enter:
lda KEYD