mirror of
https://github.com/nathanriggs/AppleIIAsm-Collection.git
synced 2024-12-03 03:52:16 +00:00
9b12b6fd9b
- getting ready for major changes for 0.6.0. - be sure to download the 0.5.0 release to ensure proper functionality, as these rountines will not work together in the SRC or BIN folder during the transition - Beginning to significantly alter documentation
27 lines
530 B
NASM
27 lines
530 B
NASM
]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
|