AppleIIAsm-Collection/source/d2_stdio/T.MIN.SUB.SINPUT
nathanriggs 9f35f32f67 Revision 0.5.0
- massive overhaul of architecture
- first round of optimizations
- first draft of the technical manual for the entire library
- reorganization of directory structure
2019-09-27 16:57:34 -04:00

27 lines
530 B
Plaintext

]STRLEN EQU VARTAB
SINPUT
LDX #$00
JSR GETLN
STX ]STRLEN
CPX #0
BNE :INP_CLR
STX RETLEN
STX RETURN
JMP :EXIT
:INP_CLR
LDA ]STRLEN
STA RETURN
STA RETLEN
INC RETLEN
LDX #255
LDY #0
:LOOP
INX
INY
LDA KEYBUFF,X
STA RETURN,Y
CPX ]STRLEN
BNE :LOOP ; LOOP
:EXIT
RTS