AppleIIAsm-Collection/source/disk20_minidisk_A/T.FINPUT.SUB.MIN
nathanriggs 82d0e74c1a 0.3.1 updates
some minor bugfixes, directory shuffling, added demo and utility disks
2019-01-26 21:02:17 -05:00

32 lines
579 B
Plaintext

FINPUT
PLA
STA RETADR
PLA
STA RETADR+1
PLA
STA ADDR1
PLA
STA ADDR1+1
LDX #0
JSR FGETLN
STX :SLEN
CPX #0
BEQ :EXIT
:INP_CLR
LDY #0
LDA :SLEN
STA (ADDR1),Y ; PUT LENGTH AT START
:LP
LDA $0200,Y ; KEYBOARD BUFFER
INY
STA (ADDR1),Y
CPY :SLEN
BNE :LP
:EXIT
LDA RETADR+1
PHA
LDA RETADR
PHA
RTS
:SLEN DS 1