2019-09-27 20:57:34 +00:00
|
|
|
]STRLEN EQU VARTAB
|
2019-04-26 22:49:10 +00:00
|
|
|
SINPUT
|
|
|
|
LDX #$00
|
|
|
|
JSR GETLN
|
2019-09-27 20:57:34 +00:00
|
|
|
STX ]STRLEN
|
|
|
|
CPX #0
|
|
|
|
BNE :INP_CLR
|
|
|
|
STX RETLEN
|
|
|
|
STX RETURN
|
|
|
|
JMP :EXIT
|
2019-04-26 22:49:10 +00:00
|
|
|
:INP_CLR
|
2019-09-27 20:57:34 +00:00
|
|
|
LDA ]STRLEN
|
2019-04-26 22:49:10 +00:00
|
|
|
STA RETURN
|
2019-09-27 20:57:34 +00:00
|
|
|
STA RETLEN
|
2019-04-26 22:49:10 +00:00
|
|
|
INC RETLEN
|
2019-09-27 20:57:34 +00:00
|
|
|
LDX #255
|
|
|
|
LDY #0
|
2019-04-26 22:49:10 +00:00
|
|
|
:LOOP
|
2019-09-27 20:57:34 +00:00
|
|
|
INX
|
2019-04-26 22:49:10 +00:00
|
|
|
INY
|
2019-09-27 20:57:34 +00:00
|
|
|
LDA KEYBUFF,X
|
2019-04-26 22:49:10 +00:00
|
|
|
STA RETURN,Y
|
2019-09-27 20:57:34 +00:00
|
|
|
CPX ]STRLEN
|
2019-04-26 22:49:10 +00:00
|
|
|
BNE :LOOP ; LOOP
|
|
|
|
:EXIT
|
|
|
|
RTS
|