mirror of
https://github.com/nathanriggs/AppleIIAsm-Collection.git
synced 2024-12-11 09:49:17 +00:00
c8cac53c5e
Massive updates that changes the way most subroutines are handled. Major bugfixes, various utilities added, started higher-level libraries.
27 lines
501 B
Plaintext
27 lines
501 B
Plaintext
SINPUT
|
|
LDX #$00
|
|
JSR GETLN
|
|
STX :STRLEN
|
|
CPX #0
|
|
BEQ :ZEXIT
|
|
:INP_CLR
|
|
LDY #0
|
|
LDA :STRLEN
|
|
STA RETLEN
|
|
STA RETURN
|
|
INC RETLEN
|
|
:LOOP
|
|
LDA KEYBUFF,Y
|
|
INY
|
|
STA RETURN,Y
|
|
CPY :STRLEN
|
|
BNE :LOOP ; LOOP
|
|
JMP :EXIT
|
|
:ZEXIT
|
|
LDA #0
|
|
STA RETLEN
|
|
STA RETURN
|
|
:EXIT
|
|
RTS
|
|
:STRLEN DS 1
|