AppleIIAsm-Collection/source/disk19_demo_builds_1/T.MIN.SUB.DOSCMD
nathanriggs c8cac53c5e Rev 0.4 updates
Massive updates that changes the way most subroutines are handled. Major bugfixes, various utilities added, started higher-level libraries.
2019-04-26 18:49:10 -04:00

38 lines
777 B
Plaintext

DOSCMD
PLA
STA RETADR
PLA
STA RETADR+1
PLA
STA ADDR1
PLA
STA ADDR1+1
LDA #1
STA $AAB6 ; DOS LANG FLAG
STA $75+1 ; NOT DIRECT MODE
STA $33 ; NOT DIRECT MODE
LDA #$8D
JSR FCOUT
LDA #$84 ; CTRL-D
JSR FCOUT
LDY #0
LDA (ADDR1),Y
STA :SLEN
LDY #$01 ; POINT TO NEXT INSTR
:LP
LDA (ADDR1),Y
JSR FCOUT
INY
CPY :SLEN
BCC :LP
BEQ :LP
:DONE
LDA #$8D
JSR FCOUT
LDA RETADR+1
PHA
LDA RETADR
PHA
RTS
:SLEN DS 1