saved few more bytes in CHRIN keyboard
This commit is contained in:
1 parent
2398616bee
commit
671a3bc3bf
1 file changed
+9
-10
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
chrin_keyboard:
|
chrin_keyboard:
|
||||||
|
|
||||||
// Save X
|
// Save .X
|
||||||
phx_trash_a
|
phx_trash_a
|
||||||
|
|
||||||
chrin_repeat:
|
chrin_repeat:
|
||||||
@@ -27,6 +27,14 @@ chrin_repeat:
|
|||||||
// Return carriage return and clear pending input flag
|
// Return carriage return and clear pending input flag
|
||||||
lda #$00
|
lda #$00
|
||||||
sta CRSW
|
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
|
plx_trash_a
|
||||||
clc
|
clc
|
||||||
lda #$0d
|
lda #$0d
|
||||||
@@ -92,15 +100,6 @@ chrin_enter:
|
|||||||
ldy #$00
|
ldy #$00
|
||||||
beq chrin_keyboard_return_byte // branch always
|
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:
|
not_enter:
|
||||||
|
|
||||||
lda KEYD
|
lda KEYD
|
||||||
|
|||||||
Reference in new issue
Block a user