Home » Personal collection » Acorn ADFS disks » Electron » Electron_disk_loader_A.ADF » Dloader10

Dloader10

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn ADFS disks » Electron » Electron_disk_loader_A.ADF
Filename: Dloader10
Read OK:
File size: 1BD3 bytes
Load address: FFFF0E00
Exec address: FFFF8023
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
    1 REM    TAPE -> ADFS   L O A D E R                 by  M. FORD , 15/2/94 
    2 filenames$="SIMCITY"+CHR$13+"SIM_CITY"+CHR$13
    5 OFILE=&AA3A:BACK=&8034:OBroutine=&8012:B2routine=&A000
    6 OSFILE=&FFDD:OSBGET=&FFD7:OSFIND=&FFCE:OSASCI=&FFE3
   10 FORpass=0 TO 2 STEP 2:P%=&3000:[OPTpass
   20 LDA#0:STA&FCDC:STA&FCDE:LDA#15:STA&F4:STA&FE05:LDX#2:SEI:.test TXA:STA&F4:STA&FE05:LDA#0:LDA&8800
   30 INC&8800:CMP&8800:BNEfound:DEX:DEX:BPLtest:LDX#&FF
   40 .found DEC&8800:CLI:STXbank1+1:INX:STXbank2+1
   50 .BASICrom LDA#11:STA&F4:STA&FE05:LDA#0:STA&70:STA&72:STA&74:LDA#&80:STA&71:LDA#&40:STA&73:LDA#&A0:STA&75:JSRmoveloop2:LDA#15:STA&F4:STA&FE05:JSRbank1:LDA#0:STA&70:STA&72:STA&74:LDA#&40:STA&71:LDA#&80:STA&73:LDA#&60:STA&75:JSRmoveloop2
   60LDA#11:STA&F4:STA&FE05:LDA#0:STA&70:STA&72:STA&74:LDA#&A0:STA&71:LDA#&40:STA&73:LDA#&C0:STA&75:JSRmoveloop2:LDA#15:STA&F4:STA&FE05:JSRbank1:LDA#0:STA&70:STA&72:STA&74:LDA#&40:STA&71:LDA#&A0:STA&73:LDA#&60:STA&75:JSRmoveloop2
   70 .bank2entry JSRbank2:LDA#(enter MOD256):STA&70:LDA#(enter DIV256):STA&71:LDY#0:LDA#&4C:STA(&70),Y:INY:LDA#(B2routine MOD256):STA(&70),Y:INY:LDA#(B2routine DIV256):STA(&70),Y
   80 .bank2main LDA#(start MOD256):STA&70:LDA#(start DIV256):STA&71:LDA#(bank1 MOD256):STA&74:LDA#(bank1 DIV256):STA&75:LDA#(B2routine MOD256):STA&72:LDA#(B2routine DIV256):STA&73:JSRmoveloop2
   90 .ADFSdata LDA#0:STA&70:STA&72:STA&74:LDA#9:STA&71:LDA#&89:STA&73:LDA#&1D:STA&75:JSRmoveloop2
  100 .b1return LDA#(bank1 MOD256):STA&70:LDA#(bank1 DIV256):STA&71:LDA#(BACK-(osbyte-bank1-1)) MOD256):STA&72:LDA#(BACK-(osbyte-bank1-1)) DIV256):STA&73:LDA#((osbyte-1) MOD256):STA&74:LDA#((osbyte-1) DIV256):STA&75:JSRmoveloop2
  110 .b1osbyte JSRbank1:LDA#(osbyte MOD256):STA&70:LDA#(osbyte DIV256):STA&71:LDA#(OBroutine MOD256):STA&72:LDA#(OBroutine DIV256):STA&73:LDA#(file MOD256):STA&74:LDA#(file DIV256):STA&75:JSRmoveloop2
  120 .b1osfile LDA#(file MOD256):STA&70:LDA#(file DIV256):STA&71:LDA#(OFILE MOD256):STA&72:LDA#(OFILE DIV256):STA&73:LDA#(fileret MOD256):STA&74:LDA#(fileret DIV256):STA&75:JSRmoveloop2
  130 .b1fileret LDA#(fileret MOD256):STA&70:LDA#(fileret DIV256):STA&71:LDA#(BACK MOD256):STA&72:LDA#(BACK DIV256):STA&73:LDA#(fretend MOD256):STA&74:LDA#(fretend DIV256):STA&75:JSRmoveloop2
  140 .page LDA#0:STA&70:STA&72:LDA&18:STA&71:LDA#&E:STA&73:STA&18:LDA&12:STA&74:LDA&13:STA&75:JSRmoveloop2
  150 .langROM LDAbank1+1:STA&28C:CLC:ADC#&A0:STA&70:LDA#2:STA&71:LDY#0:LDA#&60:STA(&70),Y:LDA#0:STA&2AB
  160 .vect LDA&20A:STAOBroutine+19:LDA&20B:STAOBroutine+20:JSRbank2:LDA&204:STAinterLO:LDA&205:STAinterHI:LDA&20A:STAosbyteLO:LDA&20B:STAosbyteHI:LDA&212:STAosfileLO:LDA&213:STAosfileHI:LDA&21E:STAosfscLO:LDA&21F:STAosfscHI
  165 JSRvectors:JSRbank1:LDA#0:STA&FCDD:RTS
  170 .moveloop2 LDY#0:.loop LDA(&70),Y:STA(&72),Y:INC&70:BNEa:INC&71:.a INC&72:BNEb:INC&73:.b LDA&70:CMP&74:BNEloop:LDA&71:CMP&75:BNEloop:RTS
  180 ]:O%=P%:start=O%:P%=B2routine:[OPTpass+4
  190 LDA#0:ADC#0:PHA:LDAosfscLO:STA&21E:LDAosfscHI:STA&21F:LDAosfileLO:STA&212:LDAosfileHI:STA&213:LDAosbyteLO:STA&20A:LDAosbyteHI:STA&20B:SEI:LDA&204:STAinternewLO:LDA&205:STAinternewHI:LDAinterLO:STA&204:LDAinterHI:STA&205:CLI
  195 STXendadd:LDX#0:.savevars LDA&70,X:STAtempstore,X:INX:CPX#6:BNEsavevars:STY&75:LDXendadd:STX&74:PLA:BEQfilerout:JMPfscrout
  200 .filerout LDY#0:LDA(&74),Y:TAX:INY:LDA(&74),Y:STX&70:STA&71:DEY:JSRfilename:LDX#0
  210 .load LDA#0:STA&70:STA&72:LDA#9:STA&71:LDA#&AC:STA&73:LDA#&1D:STAendadd:LDY#0:JSRmoveloop:LDA#&89:STA&71:LDA#9:STA&73:LDA#&9D:STAendadd:LDY#0:JSRmoveloop:JMPloadadd
  220 .moveloop LDA(&70),Y:STA(&72),Y:INY:BNEmoveloop:INC&71:INC&73:LDA&71:CMPendadd:BNEmoveloop:RTS
  230 .loadadd LDA#0:STA&A00:LDA#&B:STA&A01:STXendadd:CPX#1:BEQfindadd:LDA#0:STA&72:LDA#&A:STA&73:LDA&74:STA&70:LDA#3:STAendadd:LDA&75:LDY#0:.ram CMP#&C0:BNEno1:LDA#&1D:JMPst:.no1 CMP#&1D:BCSst:CMP#9:BCCst:CLC:ADC#&A3:.st STA&71
  240 .tr LDA(&70),Y:STA(&72),Y:INC&72:LDA&72:CMP#&12:BEQexec:INC&70:BNEtr:INC&71:LDA&71:JMPram
  250 .exec LDA#0:STA&A00:LDA#&B:STA&A01:LDA&A06:BNEfindadd:LDA&A02:STA&70:LDA&A03:STA&71:LDA#2:STAendadd
  260 .findadd LDA#5:LDX#0:LDY#&A:JSROSFILE:CMP#1:BEQrun:JMPerror1:.run LDXendadd:CPX#1:BNEladdr:PLA:STA&72:LDX&A06:LDY&A07:DEX:CPX#&FF:BNEstack:DEY:.stack TYA:PHA:TXA:PHA:LDA&72:PHA:JMParea
  270 .laddr CPX#2:BNEarea:LDA&70:STA&A02:LDA&71:STA&A03:LDA#0:STA&A06:.area LDA&A03:CMP#&1D:BCSload2:CMP#9:BCSbyteload:CLC:LDA&A02:ADC&A0A:LDA&A03:ADC&A0B:CMP#9:BCSbyteload
  280 .load2 LDA#&FF:LDX#0:LDY#&A:JSROSFILE:JMPend
  290 .byteload LDA#&40:LDX#0:LDY#&B:JSROSFIND:TAY:CMP#0:BNEok:JMPerror1:.ok LDA&A02:STA&70:LDA&A03:CMP#9:BCCnorm:CLC:ADC#&A3:.norm STA&71:.bget CLC:JSROSBGET:BCSendload:STA(&70,X):INC&70:BNEbget:INC&71:LDA&71:CMP#&C0:BEQsub:CMP#9:BNEbget
  300 LDA#&AC:STA&71:BNEbget:.sub LDA#&1D:STA&71:BNEbget:.endload LDA#0:JSROSFIND
  310 .end LDA#0:STA&70:STA&72:LDA#9:STA&71:LDA#&89:STA&73:LDA#&1D:STAendadd:LDY#0:JSRmoveloop:LDA#&AC:STA&71:LDA#9:STA&73:LDA#&C0:STAendadd:JSRmoveloop
  320 .ret JSRvectors2:JMPvars:]:vectors=O%:[OPTpass+4:.vectors2 LDA#(OBroutine MOD256):STA&20A:LDA#(OBroutine DIV256):STA&20B:LDA#(OFILE MOD256):STA&212:LDA#(OFILE DIV256):STA&213:LDA#(OFSC MOD256):STA&21E:LDA#(OFSC DIV256):STA&21F:RTS
  330 .vars LDY&75:LDX&74:STXendadd:LDX#0:.loadvars LDAtempstore,X:STA&70,X:INX:CPX#6:BNEloadvars:LDXendadd:SEI:LDAinternewLO:STA&204:LDAinternewHI:STA&205:CLI:LDA#0:STA&FCDD:JMP BACK-(osbyte-bank1-1)
  340 .fscrout PLA:PHA:BEQret:CMP#4:BEQfsc:CMP#2:BEQfsc:JSRoldOSFSC:LDA&70:STA&10D5:LDA&71:STA&DCC:LDA&72:STA&DCD:LDA&73:STA&DCE:JMPret:.fsc LDA&74:STA&70:LDA&75:STA&71:JSRfilename:LDX#1:JMPload
  345 .oldOSFSC LDA&10D5:STA&70:LDA&DCC:STA&71:LDA&DCD:STA&72:LDA&DCE:STA&73:LDA#&60:STA&DCC:LDA#&9E:STA&DCD:LDA#4:STA&DCE:PLA:PHA:JMP(osfscLO)
  350 .filename LDY#0:LDA(&70),Y:CMP#&D:BEQname:CMP#&20:BEQname:JMPnotzero:.name LDAnameLO:STA&70:STA&72:LDAnameHI:STA&71:STA&73:LDA(&70),Y:CMP#0:BNEok2:PLA:PLA:JMPerror2:.ok2 LDA(&72),Y:INC&72:BNEno:INC&73
  360 .no CMP#&D:BNEok2:LDA&72:STAnameLO:LDA&73:STAnameHI:.notzero LDA#0:STA&72:LDA#&8B:STA&73:.transloop LDA(&70),Y:STA(&72),Y:CMP#&D:BEQendfile:CMP#&20:BNEcontfile:LDA#&D:STA(&72),Y:BNEendfile:.contfile INY:JMPtransloop:.endfile RTS
  370 .error1 LDA#(notfound MOD256):STA&70:LDA#(notfound DIV256):STA&71:JMPerror:.error2 LDA#(nomore MOD256):STA&70:LDA#(nomore DIV256):STA&71:.error LDY#0:.printloop LDA(&70),Y:INY:JSROSASCI:CMP#&D:BNEprintloop:JMPret
  380 .notfound EQUS"Not found":EQUB13:.nomore EQUS"No more filenames":EQUB13:.nameLO EQUBnames MOD256:.nameHI EQUBnames DIV256:.endadd EQUB0:.osfileLO EQUB0:.osfileHI EQUB0:.osfscLO EQUB0:.osfscHI EQUB0:.osbyteLO EQUB0:.osbyteHI EQUB0
  382 .interLO EQUB0:.interHI EQUB0:.internewLO EQUB0:.internewHI EQUB0
  385 .tempstore EQUD0:EQUW0:.names:]:$O%=filenames$:O%=O%+LEN(filenames$)+1:?(O%-1)=0
  390 bank1=O%:[OPTpass+4:LDA#0:STA&F4:STA&FE05:]:P%=O%:[OPTpass+4:RTS:]:osbyte=O%:P%=OBroutine:[OPTpass+4:CMP#140:BEQtape:PHA:LDAOBroutine+19:STA&20A:LDAOBroutine+20:STA&20B:PLA:JSR&0000
  395 PHA:LDA#(OBroutine MOD256):STA&20A:LDA#(OBroutine DIV256):STA&20B:PLA:.tape RTS:]
  400 file=O%:P%=OFILE:[OPTpass+4:CLC:BCCof:.OFSC SEC:.of PHA:]:bank2=O%:[OPTpass+4:LDA#0:STA&F4:STA&FE05:.enter:]:P%=O%:[OPTpass+4:RTS:]:fileret=O%:P%=BACK:[OPTpass+4:PLA:RTS:]:fretend=O%:NEXT
  410 PRINT"Save (Y/N)?":A$=GET$:IF A$="Y" THEN OSCLI"SAVE DL 3000 "+STR$~O%
K �    TAPE -> ADFS   L O A D E R                 by  M. FORD , 15/2/94 
, filenames$="SIMCITY"+�13+"SIM_CITY"+�13
; OFILE=&AA3A:BACK=&8034:OBroutine=&8012:B2routine=&A000
8 OSFILE=&FFDD:OSBGET=&FFD7:OSFIND=&FFCE:OSASCI=&FFE3

& �pass=0 � 2 � 2:P%=&3000:[OPTpass
f LDA#0:STA&FCDC:STA&FCDE:LDA#15:STA&F4:STA&FE05:LDX#2:SEI:.test TXA:STA&F4:STA&FE05:LDA#0:LDA&8800
7 INC&8800:CMP&8800:BNEfound:DEX:DEX:BPLtest:LDX#&FF
(2 .found DEC&8800:CLI:STXbank1+1:INX:STXbank2+1
2� .BASICrom LDA#11:STA&F4:STA&FE05:LDA#0:STA&70:STA&72:STA&74:LDA#&80:STA&71:LDA#&40:STA&73:LDA#&A0:STA&75:JSRmoveloop2:LDA#15:STA&F4:STA&FE05:JSRbank1:LDA#0:STA&70:STA&72:STA&74:LDA#&40:STA&71:LDA#&80:STA&73:LDA#&60:STA&75:JSRmoveloop2
<�LDA#11:STA&F4:STA&FE05:LDA#0:STA&70:STA&72:STA&74:LDA#&A0:STA&71:LDA#&40:STA&73:LDA#&C0:STA&75:JSRmoveloop2:LDA#15:STA&F4:STA&FE05:JSRbank1:LDA#0:STA&70:STA&72:STA&74:LDA#&40:STA&71:LDA#&A0:STA&73:LDA#&60:STA&75:JSRmoveloop2
F� .bank2entry JSRbank2:LDA#(enter �256):STA&70:LDA#(enter �256):STA&71:LDY#0:LDA#&4C:STA(&70),Y:INY:LDA#(B2routine �256):STA(&70),Y:INY:LDA#(B2routine �256):STA(&70),Y
P� .bank2main LDA#(start �256):STA&70:LDA#(start �256):STA&71:LDA#(bank1 �256):STA&74:LDA#(bank1 �256):STA&75:LDA#(B2routine �256):STA&72:LDA#(B2routine �256):STA&73:JSRmoveloop2
Za .ADFSdata LDA#0:STA&70:STA&72:STA&74:LDA#9:STA&71:LDA#&89:STA&73:LDA#&1D:STA&75:JSRmoveloop2
d� .b1return LDA#(bank1 �256):STA&70:LDA#(bank1 �256):STA&71:LDA#(BACK-(osbyte-bank1-1)) �256):STA&72:LDA#(BACK-(osbyte-bank1-1)) �256):STA&73:LDA#((osbyte-1) �256):STA&74:LDA#((osbyte-1) �256):STA&75:JSRmoveloop2
n� .b1osbyte JSRbank1:LDA#(osbyte �256):STA&70:LDA#(osbyte �256):STA&71:LDA#(OBroutine �256):STA&72:LDA#(OBroutine �256):STA&73:LDA#(file �256):STA&74:LDA#(file �256):STA&75:JSRmoveloop2
x� .b1osfile LDA#(file �256):STA&70:LDA#(file �256):STA&71:LDA#(OFILE �256):STA&72:LDA#(OFILE �256):STA&73:LDA#(fileret �256):STA&74:LDA#(fileret �256):STA&75:JSRmoveloop2
�� .b1fileret LDA#(fileret �256):STA&70:LDA#(fileret �256):STA&71:LDA#(BACK �256):STA&72:LDA#(BACK �256):STA&73:LDA#(fretend �256):STA&74:LDA#(fretend �256):STA&75:JSRmoveloop2
�j .page LDA#0:STA&70:STA&72:LDA&18:STA&71:LDA#&E:STA&73:STA&18:LDA&12:STA&74:LDA&13:STA&75:JSRmoveloop2
�g .langROM LDAbank1+1:STA&28C:CLC:ADC#&A0:STA&70:LDA#2:STA&71:LDY#0:LDA#&60:STA(&70),Y:LDA#0:STA&2AB
�� .vect LDA&20A:STAOBroutine+19:LDA&20B:STAOBroutine+20:JSRbank2:LDA&204:STAinterLO:LDA&205:STAinterHI:LDA&20A:STAosbyteLO:LDA&20B:STAosbyteHI:LDA&212:STAosfileLO:LDA&213:STAosfileHI:LDA&21E:STAosfscLO:LDA&21F:STAosfscHI
�+ JSRvectors:JSRbank1:LDA#0:STA&FCDD:RTS
�� .moveloop2 LDY#0:.loop LDA(&70),Y:STA(&72),Y:INC&70:BNEa:INC&71:.a INC&72:BNEb:INC&73:.b LDA&70:CMP&74:BNEloop:LDA&71:CMP&75:BNEloop:RTS
�- ]:O%=P%:start=O%:P%=B2routine:[OPTpass+4
�� LDA#0:ADC#0:PHA:LDAosfscLO:STA&21E:LDAosfscHI:STA&21F:LDAosfileLO:STA&212:LDAosfileHI:STA&213:LDAosbyteLO:STA&20A:LDAosbyteHI:STA&20B:SEI:LDA&204:STAinternewLO:LDA&205:STAinternewHI:LDAinterLO:STA&204:LDAinterHI:STA&205:CLI
� STXendadd:LDX#0:.savevars LDA&70,X:STAtempstore,X:INX:CPX#6:BNEsavevars:STY&75:LDXendadd:STX&74:PLA:BEQfilerout:JMPfscrout
�V .filerout LDY#0:LDA(&74),Y:TAX:INY:LDA(&74),Y:STX&70:STA&71:DEY:JSRfilename:LDX#0
ҩ .load LDA#0:STA&70:STA&72:LDA#9:STA&71:LDA#&AC:STA&73:LDA#&1D:STAendadd:LDY#0:JSRmoveloop:LDA#&89:STA&71:LDA#9:STA&73:LDA#&9D:STAendadd:LDY#0:JSRmoveloop:JMPloadadd
�c .moveloop LDA(&70),Y:STA(&72),Y:INY:BNEmoveloop:INC&71:INC&73:LDA&71:CMPendadd:BNEmoveloop:RTS
�� .loadadd LDA#0:STA&A00:LDA#&B:STA&A01:STXendadd:CPX#1:BEQfindadd:LDA#0:STA&72:LDA#&A:STA&73:LDA&74:STA&70:LDA#3:STAendadd:LDA&75:LDY#0:.ram CMP#&C0:BNEno1:LDA#&1D:JMPst:.no1 CMP#&1D:BCSst:CMP#9:BCCst:CLC:ADC#&A3:.st STA&71
�^ .tr LDA(&70),Y:STA(&72),Y:INC&72:LDA&72:CMP#&12:BEQexec:INC&70:BNEtr:INC&71:LDA&71:JMPram
�h .exec LDA#0:STA&A00:LDA#&B:STA&A01:LDA&A06:BNEfindadd:LDA&A02:STA&70:LDA&A03:STA&71:LDA#2:STAendadd
� .findadd LDA#5:LDX#0:LDY#&A:JSROSFILE:CMP#1:BEQrun:JMPerror1:.run LDXendadd:CPX#1:BNEladdr:PLA:STA&72:LDX&A06:LDY&A07:DEX:CPX#&FF:BNEstack:DEY:.stack TYA:PHA:TXA:PHA:LDA&72:PHA:JMParea
� .laddr CPX#2:BNEarea:LDA&70:STA&A02:LDA&71:STA&A03:LDA#0:STA&A06:.area LDA&A03:CMP#&1D:BCSload2:CMP#9:BCSbyteload:CLC:LDA&A02:ADC&A0A:LDA&A03:ADC&A0B:CMP#9:BCSbyteload
1 .load2 LDA#&FF:LDX#0:LDY#&A:JSROSFILE:JMPend
"� .byteload LDA#&40:LDX#0:LDY#&B:JSROSFIND:TAY:CMP#0:BNEok:JMPerror1:.ok LDA&A02:STA&70:LDA&A03:CMP#9:BCCnorm:CLC:ADC#&A3:.norm STA&71:.bget CLC:JSROSBGET:BCSendload:STA(&70,X):INC&70:BNEbget:INC&71:LDA&71:CMP#&C0:BEQsub:CMP#9:BNEbget
,P LDA#&AC:STA&71:BNEbget:.sub LDA#&1D:STA&71:BNEbget:.endload LDA#0:JSROSFIND
6� .end LDA#0:STA&70:STA&72:LDA#9:STA&71:LDA#&89:STA&73:LDA#&1D:STAendadd:LDY#0:JSRmoveloop:LDA#&AC:STA&71:LDA#9:STA&73:LDA#&C0:STAendadd:JSRmoveloop
@� .ret JSRvectors2:JMPvars:]:vectors=O%:[OPTpass+4:.vectors2 LDA#(OBroutine �256):STA&20A:LDA#(OBroutine �256):STA&20B:LDA#(OFILE �256):STA&212:LDA#(OFILE �256):STA&213:LDA#(OFSC �256):STA&21E:LDA#(OFSC �256):STA&21F:RTS
J� .vars LDY&75:LDX&74:STXendadd:LDX#0:.loadvars LDAtempstore,X:STA&70,X:INX:CPX#6:BNEloadvars:LDXendadd:SEI:LDAinternewLO:STA&204:LDAinternewHI:STA&205:CLI:LDA#0:STA&FCDD:JMP BACK-(osbyte-bank1-1)
T� .fscrout PLA:PHA:BEQret:CMP#4:BEQfsc:CMP#2:BEQfsc:JSRoldOSFSC:LDA&70:STA&10D5:LDA&71:STA&DCC:LDA&72:STA&DCD:LDA&73:STA&DCE:JMPret:.fsc LDA&74:STA&70:LDA&75:STA&71:JSRfilename:LDX#1:JMPload
Y� .oldOSFSC LDA&10D5:STA&70:LDA&DCC:STA&71:LDA&DCD:STA&72:LDA&DCE:STA&73:LDA#&60:STA&DCC:LDA#&9E:STA&DCD:LDA#4:STA&DCE:PLA:PHA:JMP(osfscLO)
^� .filename LDY#0:LDA(&70),Y:CMP#&D:BEQname:CMP#&20:BEQname:JMPnotzero:.name LDAnameLO:STA&70:STA&72:LDAnameHI:STA&71:STA&73:LDA(&70),Y:CMP#0:BNEok2:PLA:PLA:JMPerror2:.ok2 LDA(&72),Y:INC&72:BNEno:INC&73
h� .no CMP#&D:BNEok2:LDA&72:STAnameLO:LDA&73:STAnameHI:.notzero LDA#0:STA&72:LDA#&8B:STA&73:.transloop LDA(&70),Y:STA(&72),Y:CMP#&D:BEQendfile:CMP#&20:BNEcontfile:LDA#&D:STA(&72),Y:BNEendfile:.contfile INY:JMPtransloop:.endfile RTS
r� .error1 LDA#(notfound �256):STA&70:LDA#(notfound �256):STA&71:JMPerror:.error2 LDA#(nomore �256):STA&70:LDA#(nomore �256):STA&71:.error LDY#0:.printloop LDA(&70),Y:INY:JSROSASCI:CMP#&D:BNEprintloop:JMPret
|� .notfound EQUS"Not found":EQUB13:.nomore EQUS"No more filenames":EQUB13:.nameLO EQUBnames �256:.nameHI EQUBnames �256:.endadd EQUB0:.osfileLO EQUB0:.osfileHI EQUB0:.osfscLO EQUB0:.osfscHI EQUB0:.osbyteLO EQUB0:.osbyteHI EQUB0
~F .interLO EQUB0:.interHI EQUB0:.internewLO EQUB0:.internewHI EQUB0
�S .tempstore EQUD0:EQUW0:.names:]:$O%=filenames$:O%=O%+�(filenames$)+1:?(O%-1)=0
�� bank1=O%:[OPTpass+4:LDA#0:STA&F4:STA&FE05:]:P%=O%:[OPTpass+4:RTS:]:osbyte=O%:P%=OBroutine:[OPTpass+4:CMP#140:BEQtape:PHA:LDAOBroutine+19:STA&20A:LDAOBroutine+20:STA&20B:PLA:JSR&0000
�R PHA:LDA#(OBroutine �256):STA&20A:LDA#(OBroutine �256):STA&20B:PLA:.tape RTS:]
�� file=O%:P%=OFILE:[OPTpass+4:CLC:BCCof:.OFSC SEC:.of PHA:]:bank2=O%:[OPTpass+4:LDA#0:STA&F4:STA&FE05:.enter:]:P%=O%:[OPTpass+4:RTS:]:fileret=O%:P%=BACK:[OPTpass+4:PLA:RTS:]:fretend=O%:�
�9 �"Save (Y/N)?":A$=�:� A$="Y" � �"SAVE DL 3000 "+�~O%
�
00000000  0d 00 01 4b 20 f4 20 20  20 20 54 41 50 45 20 2d  |...K .    TAPE -|
00000010  3e 20 41 44 46 53 20 20  20 4c 20 4f 20 41 20 44  |> ADFS   L O A D|
00000020  20 45 20 52 20 20 20 20  20 20 20 20 20 20 20 20  | E R            |
00000030  20 20 20 20 20 62 79 20  20 4d 2e 20 46 4f 52 44  |     by  M. FORD|
00000040  20 2c 20 31 35 2f 32 2f  39 34 20 0d 00 02 2c 20  | , 15/2/94 ..., |
00000050  66 69 6c 65 6e 61 6d 65  73 24 3d 22 53 49 4d 43  |filenames$="SIMC|
00000060  49 54 59 22 2b bd 31 33  2b 22 53 49 4d 5f 43 49  |ITY"+.13+"SIM_CI|
00000070  54 59 22 2b bd 31 33 0d  00 05 3b 20 4f 46 49 4c  |TY"+.13...; OFIL|
00000080  45 3d 26 41 41 33 41 3a  42 41 43 4b 3d 26 38 30  |E=&AA3A:BACK=&80|
00000090  33 34 3a 4f 42 72 6f 75  74 69 6e 65 3d 26 38 30  |34:OBroutine=&80|
000000a0  31 32 3a 42 32 72 6f 75  74 69 6e 65 3d 26 41 30  |12:B2routine=&A0|
000000b0  30 30 0d 00 06 38 20 4f  53 46 49 4c 45 3d 26 46  |00...8 OSFILE=&F|
000000c0  46 44 44 3a 4f 53 42 47  45 54 3d 26 46 46 44 37  |FDD:OSBGET=&FFD7|
000000d0  3a 4f 53 46 49 4e 44 3d  26 46 46 43 45 3a 4f 53  |:OSFIND=&FFCE:OS|
000000e0  41 53 43 49 3d 26 46 46  45 33 0d 00 0a 26 20 e3  |ASCI=&FFE3...& .|
000000f0  70 61 73 73 3d 30 20 b8  20 32 20 88 20 32 3a 50  |pass=0 . 2 . 2:P|
00000100  25 3d 26 33 30 30 30 3a  5b 4f 50 54 70 61 73 73  |%=&3000:[OPTpass|
00000110  0d 00 14 66 20 4c 44 41  23 30 3a 53 54 41 26 46  |...f LDA#0:STA&F|
00000120  43 44 43 3a 53 54 41 26  46 43 44 45 3a 4c 44 41  |CDC:STA&FCDE:LDA|
00000130  23 31 35 3a 53 54 41 26  46 34 3a 53 54 41 26 46  |#15:STA&F4:STA&F|
00000140  45 30 35 3a 4c 44 58 23  32 3a 53 45 49 3a 2e 74  |E05:LDX#2:SEI:.t|
00000150  65 73 74 20 54 58 41 3a  53 54 41 26 46 34 3a 53  |est TXA:STA&F4:S|
00000160  54 41 26 46 45 30 35 3a  4c 44 41 23 30 3a 4c 44  |TA&FE05:LDA#0:LD|
00000170  41 26 38 38 30 30 0d 00  1e 37 20 49 4e 43 26 38  |A&8800...7 INC&8|
00000180  38 30 30 3a 43 4d 50 26  38 38 30 30 3a 42 4e 45  |800:CMP&8800:BNE|
00000190  66 6f 75 6e 64 3a 44 45  58 3a 44 45 58 3a 42 50  |found:DEX:DEX:BP|
000001a0  4c 74 65 73 74 3a 4c 44  58 23 26 46 46 0d 00 28  |Ltest:LDX#&FF..(|
000001b0  32 20 2e 66 6f 75 6e 64  20 44 45 43 26 38 38 30  |2 .found DEC&880|
000001c0  30 3a 43 4c 49 3a 53 54  58 62 61 6e 6b 31 2b 31  |0:CLI:STXbank1+1|
000001d0  3a 49 4e 58 3a 53 54 58  62 61 6e 6b 32 2b 31 0d  |:INX:STXbank2+1.|
000001e0  00 32 ef 20 2e 42 41 53  49 43 72 6f 6d 20 4c 44  |.2. .BASICrom LD|
000001f0  41 23 31 31 3a 53 54 41  26 46 34 3a 53 54 41 26  |A#11:STA&F4:STA&|
00000200  46 45 30 35 3a 4c 44 41  23 30 3a 53 54 41 26 37  |FE05:LDA#0:STA&7|
00000210  30 3a 53 54 41 26 37 32  3a 53 54 41 26 37 34 3a  |0:STA&72:STA&74:|
00000220  4c 44 41 23 26 38 30 3a  53 54 41 26 37 31 3a 4c  |LDA#&80:STA&71:L|
00000230  44 41 23 26 34 30 3a 53  54 41 26 37 33 3a 4c 44  |DA#&40:STA&73:LD|
00000240  41 23 26 41 30 3a 53 54  41 26 37 35 3a 4a 53 52  |A#&A0:STA&75:JSR|
00000250  6d 6f 76 65 6c 6f 6f 70  32 3a 4c 44 41 23 31 35  |moveloop2:LDA#15|
00000260  3a 53 54 41 26 46 34 3a  53 54 41 26 46 45 30 35  |:STA&F4:STA&FE05|
00000270  3a 4a 53 52 62 61 6e 6b  31 3a 4c 44 41 23 30 3a  |:JSRbank1:LDA#0:|
00000280  53 54 41 26 37 30 3a 53  54 41 26 37 32 3a 53 54  |STA&70:STA&72:ST|
00000290  41 26 37 34 3a 4c 44 41  23 26 34 30 3a 53 54 41  |A&74:LDA#&40:STA|
000002a0  26 37 31 3a 4c 44 41 23  26 38 30 3a 53 54 41 26  |&71:LDA#&80:STA&|
000002b0  37 33 3a 4c 44 41 23 26  36 30 3a 53 54 41 26 37  |73:LDA#&60:STA&7|
000002c0  35 3a 4a 53 52 6d 6f 76  65 6c 6f 6f 70 32 0d 00  |5:JSRmoveloop2..|
000002d0  3c e4 4c 44 41 23 31 31  3a 53 54 41 26 46 34 3a  |<.LDA#11:STA&F4:|
000002e0  53 54 41 26 46 45 30 35  3a 4c 44 41 23 30 3a 53  |STA&FE05:LDA#0:S|
000002f0  54 41 26 37 30 3a 53 54  41 26 37 32 3a 53 54 41  |TA&70:STA&72:STA|
00000300  26 37 34 3a 4c 44 41 23  26 41 30 3a 53 54 41 26  |&74:LDA#&A0:STA&|
00000310  37 31 3a 4c 44 41 23 26  34 30 3a 53 54 41 26 37  |71:LDA#&40:STA&7|
00000320  33 3a 4c 44 41 23 26 43  30 3a 53 54 41 26 37 35  |3:LDA#&C0:STA&75|
00000330  3a 4a 53 52 6d 6f 76 65  6c 6f 6f 70 32 3a 4c 44  |:JSRmoveloop2:LD|
00000340  41 23 31 35 3a 53 54 41  26 46 34 3a 53 54 41 26  |A#15:STA&F4:STA&|
00000350  46 45 30 35 3a 4a 53 52  62 61 6e 6b 31 3a 4c 44  |FE05:JSRbank1:LD|
00000360  41 23 30 3a 53 54 41 26  37 30 3a 53 54 41 26 37  |A#0:STA&70:STA&7|
00000370  32 3a 53 54 41 26 37 34  3a 4c 44 41 23 26 34 30  |2:STA&74:LDA#&40|
00000380  3a 53 54 41 26 37 31 3a  4c 44 41 23 26 41 30 3a  |:STA&71:LDA#&A0:|
00000390  53 54 41 26 37 33 3a 4c  44 41 23 26 36 30 3a 53  |STA&73:LDA#&60:S|
000003a0  54 41 26 37 35 3a 4a 53  52 6d 6f 76 65 6c 6f 6f  |TA&75:JSRmoveloo|
000003b0  70 32 0d 00 46 aa 20 2e  62 61 6e 6b 32 65 6e 74  |p2..F. .bank2ent|
000003c0  72 79 20 4a 53 52 62 61  6e 6b 32 3a 4c 44 41 23  |ry JSRbank2:LDA#|
000003d0  28 65 6e 74 65 72 20 83  32 35 36 29 3a 53 54 41  |(enter .256):STA|
000003e0  26 37 30 3a 4c 44 41 23  28 65 6e 74 65 72 20 81  |&70:LDA#(enter .|
000003f0  32 35 36 29 3a 53 54 41  26 37 31 3a 4c 44 59 23  |256):STA&71:LDY#|
00000400  30 3a 4c 44 41 23 26 34  43 3a 53 54 41 28 26 37  |0:LDA#&4C:STA(&7|
00000410  30 29 2c 59 3a 49 4e 59  3a 4c 44 41 23 28 42 32  |0),Y:INY:LDA#(B2|
00000420  72 6f 75 74 69 6e 65 20  83 32 35 36 29 3a 53 54  |routine .256):ST|
00000430  41 28 26 37 30 29 2c 59  3a 49 4e 59 3a 4c 44 41  |A(&70),Y:INY:LDA|
00000440  23 28 42 32 72 6f 75 74  69 6e 65 20 81 32 35 36  |#(B2routine .256|
00000450  29 3a 53 54 41 28 26 37  30 29 2c 59 0d 00 50 b4  |):STA(&70),Y..P.|
00000460  20 2e 62 61 6e 6b 32 6d  61 69 6e 20 4c 44 41 23  | .bank2main LDA#|
00000470  28 73 74 61 72 74 20 83  32 35 36 29 3a 53 54 41  |(start .256):STA|
00000480  26 37 30 3a 4c 44 41 23  28 73 74 61 72 74 20 81  |&70:LDA#(start .|
00000490  32 35 36 29 3a 53 54 41  26 37 31 3a 4c 44 41 23  |256):STA&71:LDA#|
000004a0  28 62 61 6e 6b 31 20 83  32 35 36 29 3a 53 54 41  |(bank1 .256):STA|
000004b0  26 37 34 3a 4c 44 41 23  28 62 61 6e 6b 31 20 81  |&74:LDA#(bank1 .|
000004c0  32 35 36 29 3a 53 54 41  26 37 35 3a 4c 44 41 23  |256):STA&75:LDA#|
000004d0  28 42 32 72 6f 75 74 69  6e 65 20 83 32 35 36 29  |(B2routine .256)|
000004e0  3a 53 54 41 26 37 32 3a  4c 44 41 23 28 42 32 72  |:STA&72:LDA#(B2r|
000004f0  6f 75 74 69 6e 65 20 81  32 35 36 29 3a 53 54 41  |outine .256):STA|
00000500  26 37 33 3a 4a 53 52 6d  6f 76 65 6c 6f 6f 70 32  |&73:JSRmoveloop2|
00000510  0d 00 5a 61 20 2e 41 44  46 53 64 61 74 61 20 4c  |..Za .ADFSdata L|
00000520  44 41 23 30 3a 53 54 41  26 37 30 3a 53 54 41 26  |DA#0:STA&70:STA&|
00000530  37 32 3a 53 54 41 26 37  34 3a 4c 44 41 23 39 3a  |72:STA&74:LDA#9:|
00000540  53 54 41 26 37 31 3a 4c  44 41 23 26 38 39 3a 53  |STA&71:LDA#&89:S|
00000550  54 41 26 37 33 3a 4c 44  41 23 26 31 44 3a 53 54  |TA&73:LDA#&1D:ST|
00000560  41 26 37 35 3a 4a 53 52  6d 6f 76 65 6c 6f 6f 70  |A&75:JSRmoveloop|
00000570  32 0d 00 64 d7 20 2e 62  31 72 65 74 75 72 6e 20  |2..d. .b1return |
00000580  4c 44 41 23 28 62 61 6e  6b 31 20 83 32 35 36 29  |LDA#(bank1 .256)|
00000590  3a 53 54 41 26 37 30 3a  4c 44 41 23 28 62 61 6e  |:STA&70:LDA#(ban|
000005a0  6b 31 20 81 32 35 36 29  3a 53 54 41 26 37 31 3a  |k1 .256):STA&71:|
000005b0  4c 44 41 23 28 42 41 43  4b 2d 28 6f 73 62 79 74  |LDA#(BACK-(osbyt|
000005c0  65 2d 62 61 6e 6b 31 2d  31 29 29 20 83 32 35 36  |e-bank1-1)) .256|
000005d0  29 3a 53 54 41 26 37 32  3a 4c 44 41 23 28 42 41  |):STA&72:LDA#(BA|
000005e0  43 4b 2d 28 6f 73 62 79  74 65 2d 62 61 6e 6b 31  |CK-(osbyte-bank1|
000005f0  2d 31 29 29 20 81 32 35  36 29 3a 53 54 41 26 37  |-1)) .256):STA&7|
00000600  33 3a 4c 44 41 23 28 28  6f 73 62 79 74 65 2d 31  |3:LDA#((osbyte-1|
00000610  29 20 83 32 35 36 29 3a  53 54 41 26 37 34 3a 4c  |) .256):STA&74:L|
00000620  44 41 23 28 28 6f 73 62  79 74 65 2d 31 29 20 81  |DA#((osbyte-1) .|
00000630  32 35 36 29 3a 53 54 41  26 37 35 3a 4a 53 52 6d  |256):STA&75:JSRm|
00000640  6f 76 65 6c 6f 6f 70 32  0d 00 6e bc 20 2e 62 31  |oveloop2..n. .b1|
00000650  6f 73 62 79 74 65 20 4a  53 52 62 61 6e 6b 31 3a  |osbyte JSRbank1:|
00000660  4c 44 41 23 28 6f 73 62  79 74 65 20 83 32 35 36  |LDA#(osbyte .256|
00000670  29 3a 53 54 41 26 37 30  3a 4c 44 41 23 28 6f 73  |):STA&70:LDA#(os|
00000680  62 79 74 65 20 81 32 35  36 29 3a 53 54 41 26 37  |byte .256):STA&7|
00000690  31 3a 4c 44 41 23 28 4f  42 72 6f 75 74 69 6e 65  |1:LDA#(OBroutine|
000006a0  20 83 32 35 36 29 3a 53  54 41 26 37 32 3a 4c 44  | .256):STA&72:LD|
000006b0  41 23 28 4f 42 72 6f 75  74 69 6e 65 20 81 32 35  |A#(OBroutine .25|
000006c0  36 29 3a 53 54 41 26 37  33 3a 4c 44 41 23 28 66  |6):STA&73:LDA#(f|
000006d0  69 6c 65 20 83 32 35 36  29 3a 53 54 41 26 37 34  |ile .256):STA&74|
000006e0  3a 4c 44 41 23 28 66 69  6c 65 20 81 32 35 36 29  |:LDA#(file .256)|
000006f0  3a 53 54 41 26 37 35 3a  4a 53 52 6d 6f 76 65 6c  |:STA&75:JSRmovel|
00000700  6f 6f 70 32 0d 00 78 ad  20 2e 62 31 6f 73 66 69  |oop2..x. .b1osfi|
00000710  6c 65 20 4c 44 41 23 28  66 69 6c 65 20 83 32 35  |le LDA#(file .25|
00000720  36 29 3a 53 54 41 26 37  30 3a 4c 44 41 23 28 66  |6):STA&70:LDA#(f|
00000730  69 6c 65 20 81 32 35 36  29 3a 53 54 41 26 37 31  |ile .256):STA&71|
00000740  3a 4c 44 41 23 28 4f 46  49 4c 45 20 83 32 35 36  |:LDA#(OFILE .256|
00000750  29 3a 53 54 41 26 37 32  3a 4c 44 41 23 28 4f 46  |):STA&72:LDA#(OF|
00000760  49 4c 45 20 81 32 35 36  29 3a 53 54 41 26 37 33  |ILE .256):STA&73|
00000770  3a 4c 44 41 23 28 66 69  6c 65 72 65 74 20 83 32  |:LDA#(fileret .2|
00000780  35 36 29 3a 53 54 41 26  37 34 3a 4c 44 41 23 28  |56):STA&74:LDA#(|
00000790  66 69 6c 65 72 65 74 20  81 32 35 36 29 3a 53 54  |fileret .256):ST|
000007a0  41 26 37 35 3a 4a 53 52  6d 6f 76 65 6c 6f 6f 70  |A&75:JSRmoveloop|
000007b0  32 0d 00 82 b2 20 2e 62  31 66 69 6c 65 72 65 74  |2.... .b1fileret|
000007c0  20 4c 44 41 23 28 66 69  6c 65 72 65 74 20 83 32  | LDA#(fileret .2|
000007d0  35 36 29 3a 53 54 41 26  37 30 3a 4c 44 41 23 28  |56):STA&70:LDA#(|
000007e0  66 69 6c 65 72 65 74 20  81 32 35 36 29 3a 53 54  |fileret .256):ST|
000007f0  41 26 37 31 3a 4c 44 41  23 28 42 41 43 4b 20 83  |A&71:LDA#(BACK .|
00000800  32 35 36 29 3a 53 54 41  26 37 32 3a 4c 44 41 23  |256):STA&72:LDA#|
00000810  28 42 41 43 4b 20 81 32  35 36 29 3a 53 54 41 26  |(BACK .256):STA&|
00000820  37 33 3a 4c 44 41 23 28  66 72 65 74 65 6e 64 20  |73:LDA#(fretend |
00000830  83 32 35 36 29 3a 53 54  41 26 37 34 3a 4c 44 41  |.256):STA&74:LDA|
00000840  23 28 66 72 65 74 65 6e  64 20 81 32 35 36 29 3a  |#(fretend .256):|
00000850  53 54 41 26 37 35 3a 4a  53 52 6d 6f 76 65 6c 6f  |STA&75:JSRmovelo|
00000860  6f 70 32 0d 00 8c 6a 20  2e 70 61 67 65 20 4c 44  |op2...j .page LD|
00000870  41 23 30 3a 53 54 41 26  37 30 3a 53 54 41 26 37  |A#0:STA&70:STA&7|
00000880  32 3a 4c 44 41 26 31 38  3a 53 54 41 26 37 31 3a  |2:LDA&18:STA&71:|
00000890  4c 44 41 23 26 45 3a 53  54 41 26 37 33 3a 53 54  |LDA#&E:STA&73:ST|
000008a0  41 26 31 38 3a 4c 44 41  26 31 32 3a 53 54 41 26  |A&18:LDA&12:STA&|
000008b0  37 34 3a 4c 44 41 26 31  33 3a 53 54 41 26 37 35  |74:LDA&13:STA&75|
000008c0  3a 4a 53 52 6d 6f 76 65  6c 6f 6f 70 32 0d 00 96  |:JSRmoveloop2...|
000008d0  67 20 2e 6c 61 6e 67 52  4f 4d 20 4c 44 41 62 61  |g .langROM LDAba|
000008e0  6e 6b 31 2b 31 3a 53 54  41 26 32 38 43 3a 43 4c  |nk1+1:STA&28C:CL|
000008f0  43 3a 41 44 43 23 26 41  30 3a 53 54 41 26 37 30  |C:ADC#&A0:STA&70|
00000900  3a 4c 44 41 23 32 3a 53  54 41 26 37 31 3a 4c 44  |:LDA#2:STA&71:LD|
00000910  59 23 30 3a 4c 44 41 23  26 36 30 3a 53 54 41 28  |Y#0:LDA#&60:STA(|
00000920  26 37 30 29 2c 59 3a 4c  44 41 23 30 3a 53 54 41  |&70),Y:LDA#0:STA|
00000930  26 32 41 42 0d 00 a0 df  20 2e 76 65 63 74 20 4c  |&2AB.... .vect L|
00000940  44 41 26 32 30 41 3a 53  54 41 4f 42 72 6f 75 74  |DA&20A:STAOBrout|
00000950  69 6e 65 2b 31 39 3a 4c  44 41 26 32 30 42 3a 53  |ine+19:LDA&20B:S|
00000960  54 41 4f 42 72 6f 75 74  69 6e 65 2b 32 30 3a 4a  |TAOBroutine+20:J|
00000970  53 52 62 61 6e 6b 32 3a  4c 44 41 26 32 30 34 3a  |SRbank2:LDA&204:|
00000980  53 54 41 69 6e 74 65 72  4c 4f 3a 4c 44 41 26 32  |STAinterLO:LDA&2|
00000990  30 35 3a 53 54 41 69 6e  74 65 72 48 49 3a 4c 44  |05:STAinterHI:LD|
000009a0  41 26 32 30 41 3a 53 54  41 6f 73 62 79 74 65 4c  |A&20A:STAosbyteL|
000009b0  4f 3a 4c 44 41 26 32 30  42 3a 53 54 41 6f 73 62  |O:LDA&20B:STAosb|
000009c0  79 74 65 48 49 3a 4c 44  41 26 32 31 32 3a 53 54  |yteHI:LDA&212:ST|
000009d0  41 6f 73 66 69 6c 65 4c  4f 3a 4c 44 41 26 32 31  |AosfileLO:LDA&21|
000009e0  33 3a 53 54 41 6f 73 66  69 6c 65 48 49 3a 4c 44  |3:STAosfileHI:LD|
000009f0  41 26 32 31 45 3a 53 54  41 6f 73 66 73 63 4c 4f  |A&21E:STAosfscLO|
00000a00  3a 4c 44 41 26 32 31 46  3a 53 54 41 6f 73 66 73  |:LDA&21F:STAosfs|
00000a10  63 48 49 0d 00 a5 2b 20  4a 53 52 76 65 63 74 6f  |cHI...+ JSRvecto|
00000a20  72 73 3a 4a 53 52 62 61  6e 6b 31 3a 4c 44 41 23  |rs:JSRbank1:LDA#|
00000a30  30 3a 53 54 41 26 46 43  44 44 3a 52 54 53 0d 00  |0:STA&FCDD:RTS..|
00000a40  aa 8d 20 2e 6d 6f 76 65  6c 6f 6f 70 32 20 4c 44  |.. .moveloop2 LD|
00000a50  59 23 30 3a 2e 6c 6f 6f  70 20 4c 44 41 28 26 37  |Y#0:.loop LDA(&7|
00000a60  30 29 2c 59 3a 53 54 41  28 26 37 32 29 2c 59 3a  |0),Y:STA(&72),Y:|
00000a70  49 4e 43 26 37 30 3a 42  4e 45 61 3a 49 4e 43 26  |INC&70:BNEa:INC&|
00000a80  37 31 3a 2e 61 20 49 4e  43 26 37 32 3a 42 4e 45  |71:.a INC&72:BNE|
00000a90  62 3a 49 4e 43 26 37 33  3a 2e 62 20 4c 44 41 26  |b:INC&73:.b LDA&|
00000aa0  37 30 3a 43 4d 50 26 37  34 3a 42 4e 45 6c 6f 6f  |70:CMP&74:BNEloo|
00000ab0  70 3a 4c 44 41 26 37 31  3a 43 4d 50 26 37 35 3a  |p:LDA&71:CMP&75:|
00000ac0  42 4e 45 6c 6f 6f 70 3a  52 54 53 0d 00 b4 2d 20  |BNEloop:RTS...- |
00000ad0  5d 3a 4f 25 3d 50 25 3a  73 74 61 72 74 3d 4f 25  |]:O%=P%:start=O%|
00000ae0  3a 50 25 3d 42 32 72 6f  75 74 69 6e 65 3a 5b 4f  |:P%=B2routine:[O|
00000af0  50 54 70 61 73 73 2b 34  0d 00 be e4 20 4c 44 41  |PTpass+4.... LDA|
00000b00  23 30 3a 41 44 43 23 30  3a 50 48 41 3a 4c 44 41  |#0:ADC#0:PHA:LDA|
00000b10  6f 73 66 73 63 4c 4f 3a  53 54 41 26 32 31 45 3a  |osfscLO:STA&21E:|
00000b20  4c 44 41 6f 73 66 73 63  48 49 3a 53 54 41 26 32  |LDAosfscHI:STA&2|
00000b30  31 46 3a 4c 44 41 6f 73  66 69 6c 65 4c 4f 3a 53  |1F:LDAosfileLO:S|
00000b40  54 41 26 32 31 32 3a 4c  44 41 6f 73 66 69 6c 65  |TA&212:LDAosfile|
00000b50  48 49 3a 53 54 41 26 32  31 33 3a 4c 44 41 6f 73  |HI:STA&213:LDAos|
00000b60  62 79 74 65 4c 4f 3a 53  54 41 26 32 30 41 3a 4c  |byteLO:STA&20A:L|
00000b70  44 41 6f 73 62 79 74 65  48 49 3a 53 54 41 26 32  |DAosbyteHI:STA&2|
00000b80  30 42 3a 53 45 49 3a 4c  44 41 26 32 30 34 3a 53  |0B:SEI:LDA&204:S|
00000b90  54 41 69 6e 74 65 72 6e  65 77 4c 4f 3a 4c 44 41  |TAinternewLO:LDA|
00000ba0  26 32 30 35 3a 53 54 41  69 6e 74 65 72 6e 65 77  |&205:STAinternew|
00000bb0  48 49 3a 4c 44 41 69 6e  74 65 72 4c 4f 3a 53 54  |HI:LDAinterLO:ST|
00000bc0  41 26 32 30 34 3a 4c 44  41 69 6e 74 65 72 48 49  |A&204:LDAinterHI|
00000bd0  3a 53 54 41 26 32 30 35  3a 43 4c 49 0d 00 c3 7f  |:STA&205:CLI....|
00000be0  20 53 54 58 65 6e 64 61  64 64 3a 4c 44 58 23 30  | STXendadd:LDX#0|
00000bf0  3a 2e 73 61 76 65 76 61  72 73 20 4c 44 41 26 37  |:.savevars LDA&7|
00000c00  30 2c 58 3a 53 54 41 74  65 6d 70 73 74 6f 72 65  |0,X:STAtempstore|
00000c10  2c 58 3a 49 4e 58 3a 43  50 58 23 36 3a 42 4e 45  |,X:INX:CPX#6:BNE|
00000c20  73 61 76 65 76 61 72 73  3a 53 54 59 26 37 35 3a  |savevars:STY&75:|
00000c30  4c 44 58 65 6e 64 61 64  64 3a 53 54 58 26 37 34  |LDXendadd:STX&74|
00000c40  3a 50 4c 41 3a 42 45 51  66 69 6c 65 72 6f 75 74  |:PLA:BEQfilerout|
00000c50  3a 4a 4d 50 66 73 63 72  6f 75 74 0d 00 c8 56 20  |:JMPfscrout...V |
00000c60  2e 66 69 6c 65 72 6f 75  74 20 4c 44 59 23 30 3a  |.filerout LDY#0:|
00000c70  4c 44 41 28 26 37 34 29  2c 59 3a 54 41 58 3a 49  |LDA(&74),Y:TAX:I|
00000c80  4e 59 3a 4c 44 41 28 26  37 34 29 2c 59 3a 53 54  |NY:LDA(&74),Y:ST|
00000c90  58 26 37 30 3a 53 54 41  26 37 31 3a 44 45 59 3a  |X&70:STA&71:DEY:|
00000ca0  4a 53 52 66 69 6c 65 6e  61 6d 65 3a 4c 44 58 23  |JSRfilename:LDX#|
00000cb0  30 0d 00 d2 a9 20 2e 6c  6f 61 64 20 4c 44 41 23  |0.... .load LDA#|
00000cc0  30 3a 53 54 41 26 37 30  3a 53 54 41 26 37 32 3a  |0:STA&70:STA&72:|
00000cd0  4c 44 41 23 39 3a 53 54  41 26 37 31 3a 4c 44 41  |LDA#9:STA&71:LDA|
00000ce0  23 26 41 43 3a 53 54 41  26 37 33 3a 4c 44 41 23  |#&AC:STA&73:LDA#|
00000cf0  26 31 44 3a 53 54 41 65  6e 64 61 64 64 3a 4c 44  |&1D:STAendadd:LD|
00000d00  59 23 30 3a 4a 53 52 6d  6f 76 65 6c 6f 6f 70 3a  |Y#0:JSRmoveloop:|
00000d10  4c 44 41 23 26 38 39 3a  53 54 41 26 37 31 3a 4c  |LDA#&89:STA&71:L|
00000d20  44 41 23 39 3a 53 54 41  26 37 33 3a 4c 44 41 23  |DA#9:STA&73:LDA#|
00000d30  26 39 44 3a 53 54 41 65  6e 64 61 64 64 3a 4c 44  |&9D:STAendadd:LD|
00000d40  59 23 30 3a 4a 53 52 6d  6f 76 65 6c 6f 6f 70 3a  |Y#0:JSRmoveloop:|
00000d50  4a 4d 50 6c 6f 61 64 61  64 64 0d 00 dc 63 20 2e  |JMPloadadd...c .|
00000d60  6d 6f 76 65 6c 6f 6f 70  20 4c 44 41 28 26 37 30  |moveloop LDA(&70|
00000d70  29 2c 59 3a 53 54 41 28  26 37 32 29 2c 59 3a 49  |),Y:STA(&72),Y:I|
00000d80  4e 59 3a 42 4e 45 6d 6f  76 65 6c 6f 6f 70 3a 49  |NY:BNEmoveloop:I|
00000d90  4e 43 26 37 31 3a 49 4e  43 26 37 33 3a 4c 44 41  |NC&71:INC&73:LDA|
00000da0  26 37 31 3a 43 4d 50 65  6e 64 61 64 64 3a 42 4e  |&71:CMPendadd:BN|
00000db0  45 6d 6f 76 65 6c 6f 6f  70 3a 52 54 53 0d 00 e6  |Emoveloop:RTS...|
00000dc0  e3 20 2e 6c 6f 61 64 61  64 64 20 4c 44 41 23 30  |. .loadadd LDA#0|
00000dd0  3a 53 54 41 26 41 30 30  3a 4c 44 41 23 26 42 3a  |:STA&A00:LDA#&B:|
00000de0  53 54 41 26 41 30 31 3a  53 54 58 65 6e 64 61 64  |STA&A01:STXendad|
00000df0  64 3a 43 50 58 23 31 3a  42 45 51 66 69 6e 64 61  |d:CPX#1:BEQfinda|
00000e00  64 64 3a 4c 44 41 23 30  3a 53 54 41 26 37 32 3a  |dd:LDA#0:STA&72:|
00000e10  4c 44 41 23 26 41 3a 53  54 41 26 37 33 3a 4c 44  |LDA#&A:STA&73:LD|
00000e20  41 26 37 34 3a 53 54 41  26 37 30 3a 4c 44 41 23  |A&74:STA&70:LDA#|
00000e30  33 3a 53 54 41 65 6e 64  61 64 64 3a 4c 44 41 26  |3:STAendadd:LDA&|
00000e40  37 35 3a 4c 44 59 23 30  3a 2e 72 61 6d 20 43 4d  |75:LDY#0:.ram CM|
00000e50  50 23 26 43 30 3a 42 4e  45 6e 6f 31 3a 4c 44 41  |P#&C0:BNEno1:LDA|
00000e60  23 26 31 44 3a 4a 4d 50  73 74 3a 2e 6e 6f 31 20  |#&1D:JMPst:.no1 |
00000e70  43 4d 50 23 26 31 44 3a  42 43 53 73 74 3a 43 4d  |CMP#&1D:BCSst:CM|
00000e80  50 23 39 3a 42 43 43 73  74 3a 43 4c 43 3a 41 44  |P#9:BCCst:CLC:AD|
00000e90  43 23 26 41 33 3a 2e 73  74 20 53 54 41 26 37 31  |C#&A3:.st STA&71|
00000ea0  0d 00 f0 5e 20 2e 74 72  20 4c 44 41 28 26 37 30  |...^ .tr LDA(&70|
00000eb0  29 2c 59 3a 53 54 41 28  26 37 32 29 2c 59 3a 49  |),Y:STA(&72),Y:I|
00000ec0  4e 43 26 37 32 3a 4c 44  41 26 37 32 3a 43 4d 50  |NC&72:LDA&72:CMP|
00000ed0  23 26 31 32 3a 42 45 51  65 78 65 63 3a 49 4e 43  |#&12:BEQexec:INC|
00000ee0  26 37 30 3a 42 4e 45 74  72 3a 49 4e 43 26 37 31  |&70:BNEtr:INC&71|
00000ef0  3a 4c 44 41 26 37 31 3a  4a 4d 50 72 61 6d 0d 00  |:LDA&71:JMPram..|
00000f00  fa 68 20 2e 65 78 65 63  20 4c 44 41 23 30 3a 53  |.h .exec LDA#0:S|
00000f10  54 41 26 41 30 30 3a 4c  44 41 23 26 42 3a 53 54  |TA&A00:LDA#&B:ST|
00000f20  41 26 41 30 31 3a 4c 44  41 26 41 30 36 3a 42 4e  |A&A01:LDA&A06:BN|
00000f30  45 66 69 6e 64 61 64 64  3a 4c 44 41 26 41 30 32  |Efindadd:LDA&A02|
00000f40  3a 53 54 41 26 37 30 3a  4c 44 41 26 41 30 33 3a  |:STA&70:LDA&A03:|
00000f50  53 54 41 26 37 31 3a 4c  44 41 23 32 3a 53 54 41  |STA&71:LDA#2:STA|
00000f60  65 6e 64 61 64 64 0d 01  04 bd 20 2e 66 69 6e 64  |endadd.... .find|
00000f70  61 64 64 20 4c 44 41 23  35 3a 4c 44 58 23 30 3a  |add LDA#5:LDX#0:|
00000f80  4c 44 59 23 26 41 3a 4a  53 52 4f 53 46 49 4c 45  |LDY#&A:JSROSFILE|
00000f90  3a 43 4d 50 23 31 3a 42  45 51 72 75 6e 3a 4a 4d  |:CMP#1:BEQrun:JM|
00000fa0  50 65 72 72 6f 72 31 3a  2e 72 75 6e 20 4c 44 58  |Perror1:.run LDX|
00000fb0  65 6e 64 61 64 64 3a 43  50 58 23 31 3a 42 4e 45  |endadd:CPX#1:BNE|
00000fc0  6c 61 64 64 72 3a 50 4c  41 3a 53 54 41 26 37 32  |laddr:PLA:STA&72|
00000fd0  3a 4c 44 58 26 41 30 36  3a 4c 44 59 26 41 30 37  |:LDX&A06:LDY&A07|
00000fe0  3a 44 45 58 3a 43 50 58  23 26 46 46 3a 42 4e 45  |:DEX:CPX#&FF:BNE|
00000ff0  73 74 61 63 6b 3a 44 45  59 3a 2e 73 74 61 63 6b  |stack:DEY:.stack|
00001000  20 54 59 41 3a 50 48 41  3a 54 58 41 3a 50 48 41  | TYA:PHA:TXA:PHA|
00001010  3a 4c 44 41 26 37 32 3a  50 48 41 3a 4a 4d 50 61  |:LDA&72:PHA:JMPa|
00001020  72 65 61 0d 01 0e ac 20  2e 6c 61 64 64 72 20 43  |rea.... .laddr C|
00001030  50 58 23 32 3a 42 4e 45  61 72 65 61 3a 4c 44 41  |PX#2:BNEarea:LDA|
00001040  26 37 30 3a 53 54 41 26  41 30 32 3a 4c 44 41 26  |&70:STA&A02:LDA&|
00001050  37 31 3a 53 54 41 26 41  30 33 3a 4c 44 41 23 30  |71:STA&A03:LDA#0|
00001060  3a 53 54 41 26 41 30 36  3a 2e 61 72 65 61 20 4c  |:STA&A06:.area L|
00001070  44 41 26 41 30 33 3a 43  4d 50 23 26 31 44 3a 42  |DA&A03:CMP#&1D:B|
00001080  43 53 6c 6f 61 64 32 3a  43 4d 50 23 39 3a 42 43  |CSload2:CMP#9:BC|
00001090  53 62 79 74 65 6c 6f 61  64 3a 43 4c 43 3a 4c 44  |Sbyteload:CLC:LD|
000010a0  41 26 41 30 32 3a 41 44  43 26 41 30 41 3a 4c 44  |A&A02:ADC&A0A:LD|
000010b0  41 26 41 30 33 3a 41 44  43 26 41 30 42 3a 43 4d  |A&A03:ADC&A0B:CM|
000010c0  50 23 39 3a 42 43 53 62  79 74 65 6c 6f 61 64 0d  |P#9:BCSbyteload.|
000010d0  01 18 31 20 2e 6c 6f 61  64 32 20 4c 44 41 23 26  |..1 .load2 LDA#&|
000010e0  46 46 3a 4c 44 58 23 30  3a 4c 44 59 23 26 41 3a  |FF:LDX#0:LDY#&A:|
000010f0  4a 53 52 4f 53 46 49 4c  45 3a 4a 4d 50 65 6e 64  |JSROSFILE:JMPend|
00001100  0d 01 22 ed 20 2e 62 79  74 65 6c 6f 61 64 20 4c  |..". .byteload L|
00001110  44 41 23 26 34 30 3a 4c  44 58 23 30 3a 4c 44 59  |DA#&40:LDX#0:LDY|
00001120  23 26 42 3a 4a 53 52 4f  53 46 49 4e 44 3a 54 41  |#&B:JSROSFIND:TA|
00001130  59 3a 43 4d 50 23 30 3a  42 4e 45 6f 6b 3a 4a 4d  |Y:CMP#0:BNEok:JM|
00001140  50 65 72 72 6f 72 31 3a  2e 6f 6b 20 4c 44 41 26  |Perror1:.ok LDA&|
00001150  41 30 32 3a 53 54 41 26  37 30 3a 4c 44 41 26 41  |A02:STA&70:LDA&A|
00001160  30 33 3a 43 4d 50 23 39  3a 42 43 43 6e 6f 72 6d  |03:CMP#9:BCCnorm|
00001170  3a 43 4c 43 3a 41 44 43  23 26 41 33 3a 2e 6e 6f  |:CLC:ADC#&A3:.no|
00001180  72 6d 20 53 54 41 26 37  31 3a 2e 62 67 65 74 20  |rm STA&71:.bget |
00001190  43 4c 43 3a 4a 53 52 4f  53 42 47 45 54 3a 42 43  |CLC:JSROSBGET:BC|
000011a0  53 65 6e 64 6c 6f 61 64  3a 53 54 41 28 26 37 30  |Sendload:STA(&70|
000011b0  2c 58 29 3a 49 4e 43 26  37 30 3a 42 4e 45 62 67  |,X):INC&70:BNEbg|
000011c0  65 74 3a 49 4e 43 26 37  31 3a 4c 44 41 26 37 31  |et:INC&71:LDA&71|
000011d0  3a 43 4d 50 23 26 43 30  3a 42 45 51 73 75 62 3a  |:CMP#&C0:BEQsub:|
000011e0  43 4d 50 23 39 3a 42 4e  45 62 67 65 74 0d 01 2c  |CMP#9:BNEbget..,|
000011f0  50 20 4c 44 41 23 26 41  43 3a 53 54 41 26 37 31  |P LDA#&AC:STA&71|
00001200  3a 42 4e 45 62 67 65 74  3a 2e 73 75 62 20 4c 44  |:BNEbget:.sub LD|
00001210  41 23 26 31 44 3a 53 54  41 26 37 31 3a 42 4e 45  |A#&1D:STA&71:BNE|
00001220  62 67 65 74 3a 2e 65 6e  64 6c 6f 61 64 20 4c 44  |bget:.endload LD|
00001230  41 23 30 3a 4a 53 52 4f  53 46 49 4e 44 0d 01 36  |A#0:JSROSFIND..6|
00001240  97 20 2e 65 6e 64 20 4c  44 41 23 30 3a 53 54 41  |. .end LDA#0:STA|
00001250  26 37 30 3a 53 54 41 26  37 32 3a 4c 44 41 23 39  |&70:STA&72:LDA#9|
00001260  3a 53 54 41 26 37 31 3a  4c 44 41 23 26 38 39 3a  |:STA&71:LDA#&89:|
00001270  53 54 41 26 37 33 3a 4c  44 41 23 26 31 44 3a 53  |STA&73:LDA#&1D:S|
00001280  54 41 65 6e 64 61 64 64  3a 4c 44 59 23 30 3a 4a  |TAendadd:LDY#0:J|
00001290  53 52 6d 6f 76 65 6c 6f  6f 70 3a 4c 44 41 23 26  |SRmoveloop:LDA#&|
000012a0  41 43 3a 53 54 41 26 37  31 3a 4c 44 41 23 39 3a  |AC:STA&71:LDA#9:|
000012b0  53 54 41 26 37 33 3a 4c  44 41 23 26 43 30 3a 53  |STA&73:LDA#&C0:S|
000012c0  54 41 65 6e 64 61 64 64  3a 4a 53 52 6d 6f 76 65  |TAendadd:JSRmove|
000012d0  6c 6f 6f 70 0d 01 40 df  20 2e 72 65 74 20 4a 53  |loop..@. .ret JS|
000012e0  52 76 65 63 74 6f 72 73  32 3a 4a 4d 50 76 61 72  |Rvectors2:JMPvar|
000012f0  73 3a 5d 3a 76 65 63 74  6f 72 73 3d 4f 25 3a 5b  |s:]:vectors=O%:[|
00001300  4f 50 54 70 61 73 73 2b  34 3a 2e 76 65 63 74 6f  |OPTpass+4:.vecto|
00001310  72 73 32 20 4c 44 41 23  28 4f 42 72 6f 75 74 69  |rs2 LDA#(OBrouti|
00001320  6e 65 20 83 32 35 36 29  3a 53 54 41 26 32 30 41  |ne .256):STA&20A|
00001330  3a 4c 44 41 23 28 4f 42  72 6f 75 74 69 6e 65 20  |:LDA#(OBroutine |
00001340  81 32 35 36 29 3a 53 54  41 26 32 30 42 3a 4c 44  |.256):STA&20B:LD|
00001350  41 23 28 4f 46 49 4c 45  20 83 32 35 36 29 3a 53  |A#(OFILE .256):S|
00001360  54 41 26 32 31 32 3a 4c  44 41 23 28 4f 46 49 4c  |TA&212:LDA#(OFIL|
00001370  45 20 81 32 35 36 29 3a  53 54 41 26 32 31 33 3a  |E .256):STA&213:|
00001380  4c 44 41 23 28 4f 46 53  43 20 83 32 35 36 29 3a  |LDA#(OFSC .256):|
00001390  53 54 41 26 32 31 45 3a  4c 44 41 23 28 4f 46 53  |STA&21E:LDA#(OFS|
000013a0  43 20 81 32 35 36 29 3a  53 54 41 26 32 31 46 3a  |C .256):STA&21F:|
000013b0  52 54 53 0d 01 4a c7 20  2e 76 61 72 73 20 4c 44  |RTS..J. .vars LD|
000013c0  59 26 37 35 3a 4c 44 58  26 37 34 3a 53 54 58 65  |Y&75:LDX&74:STXe|
000013d0  6e 64 61 64 64 3a 4c 44  58 23 30 3a 2e 6c 6f 61  |ndadd:LDX#0:.loa|
000013e0  64 76 61 72 73 20 4c 44  41 74 65 6d 70 73 74 6f  |dvars LDAtempsto|
000013f0  72 65 2c 58 3a 53 54 41  26 37 30 2c 58 3a 49 4e  |re,X:STA&70,X:IN|
00001400  58 3a 43 50 58 23 36 3a  42 4e 45 6c 6f 61 64 76  |X:CPX#6:BNEloadv|
00001410  61 72 73 3a 4c 44 58 65  6e 64 61 64 64 3a 53 45  |ars:LDXendadd:SE|
00001420  49 3a 4c 44 41 69 6e 74  65 72 6e 65 77 4c 4f 3a  |I:LDAinternewLO:|
00001430  53 54 41 26 32 30 34 3a  4c 44 41 69 6e 74 65 72  |STA&204:LDAinter|
00001440  6e 65 77 48 49 3a 53 54  41 26 32 30 35 3a 43 4c  |newHI:STA&205:CL|
00001450  49 3a 4c 44 41 23 30 3a  53 54 41 26 46 43 44 44  |I:LDA#0:STA&FCDD|
00001460  3a 4a 4d 50 20 42 41 43  4b 2d 28 6f 73 62 79 74  |:JMP BACK-(osbyt|
00001470  65 2d 62 61 6e 6b 31 2d  31 29 0d 01 54 c1 20 2e  |e-bank1-1)..T. .|
00001480  66 73 63 72 6f 75 74 20  50 4c 41 3a 50 48 41 3a  |fscrout PLA:PHA:|
00001490  42 45 51 72 65 74 3a 43  4d 50 23 34 3a 42 45 51  |BEQret:CMP#4:BEQ|
000014a0  66 73 63 3a 43 4d 50 23  32 3a 42 45 51 66 73 63  |fsc:CMP#2:BEQfsc|
000014b0  3a 4a 53 52 6f 6c 64 4f  53 46 53 43 3a 4c 44 41  |:JSRoldOSFSC:LDA|
000014c0  26 37 30 3a 53 54 41 26  31 30 44 35 3a 4c 44 41  |&70:STA&10D5:LDA|
000014d0  26 37 31 3a 53 54 41 26  44 43 43 3a 4c 44 41 26  |&71:STA&DCC:LDA&|
000014e0  37 32 3a 53 54 41 26 44  43 44 3a 4c 44 41 26 37  |72:STA&DCD:LDA&7|
000014f0  33 3a 53 54 41 26 44 43  45 3a 4a 4d 50 72 65 74  |3:STA&DCE:JMPret|
00001500  3a 2e 66 73 63 20 4c 44  41 26 37 34 3a 53 54 41  |:.fsc LDA&74:STA|
00001510  26 37 30 3a 4c 44 41 26  37 35 3a 53 54 41 26 37  |&70:LDA&75:STA&7|
00001520  31 3a 4a 53 52 66 69 6c  65 6e 61 6d 65 3a 4c 44  |1:JSRfilename:LD|
00001530  58 23 31 3a 4a 4d 50 6c  6f 61 64 0d 01 59 8e 20  |X#1:JMPload..Y. |
00001540  2e 6f 6c 64 4f 53 46 53  43 20 4c 44 41 26 31 30  |.oldOSFSC LDA&10|
00001550  44 35 3a 53 54 41 26 37  30 3a 4c 44 41 26 44 43  |D5:STA&70:LDA&DC|
00001560  43 3a 53 54 41 26 37 31  3a 4c 44 41 26 44 43 44  |C:STA&71:LDA&DCD|
00001570  3a 53 54 41 26 37 32 3a  4c 44 41 26 44 43 45 3a  |:STA&72:LDA&DCE:|
00001580  53 54 41 26 37 33 3a 4c  44 41 23 26 36 30 3a 53  |STA&73:LDA#&60:S|
00001590  54 41 26 44 43 43 3a 4c  44 41 23 26 39 45 3a 53  |TA&DCC:LDA#&9E:S|
000015a0  54 41 26 44 43 44 3a 4c  44 41 23 34 3a 53 54 41  |TA&DCD:LDA#4:STA|
000015b0  26 44 43 45 3a 50 4c 41  3a 50 48 41 3a 4a 4d 50  |&DCE:PLA:PHA:JMP|
000015c0  28 6f 73 66 73 63 4c 4f  29 0d 01 5e cd 20 2e 66  |(osfscLO)..^. .f|
000015d0  69 6c 65 6e 61 6d 65 20  4c 44 59 23 30 3a 4c 44  |ilename LDY#0:LD|
000015e0  41 28 26 37 30 29 2c 59  3a 43 4d 50 23 26 44 3a  |A(&70),Y:CMP#&D:|
000015f0  42 45 51 6e 61 6d 65 3a  43 4d 50 23 26 32 30 3a  |BEQname:CMP#&20:|
00001600  42 45 51 6e 61 6d 65 3a  4a 4d 50 6e 6f 74 7a 65  |BEQname:JMPnotze|
00001610  72 6f 3a 2e 6e 61 6d 65  20 4c 44 41 6e 61 6d 65  |ro:.name LDAname|
00001620  4c 4f 3a 53 54 41 26 37  30 3a 53 54 41 26 37 32  |LO:STA&70:STA&72|
00001630  3a 4c 44 41 6e 61 6d 65  48 49 3a 53 54 41 26 37  |:LDAnameHI:STA&7|
00001640  31 3a 53 54 41 26 37 33  3a 4c 44 41 28 26 37 30  |1:STA&73:LDA(&70|
00001650  29 2c 59 3a 43 4d 50 23  30 3a 42 4e 45 6f 6b 32  |),Y:CMP#0:BNEok2|
00001660  3a 50 4c 41 3a 50 4c 41  3a 4a 4d 50 65 72 72 6f  |:PLA:PLA:JMPerro|
00001670  72 32 3a 2e 6f 6b 32 20  4c 44 41 28 26 37 32 29  |r2:.ok2 LDA(&72)|
00001680  2c 59 3a 49 4e 43 26 37  32 3a 42 4e 45 6e 6f 3a  |,Y:INC&72:BNEno:|
00001690  49 4e 43 26 37 33 0d 01  68 e9 20 2e 6e 6f 20 43  |INC&73..h. .no C|
000016a0  4d 50 23 26 44 3a 42 4e  45 6f 6b 32 3a 4c 44 41  |MP#&D:BNEok2:LDA|
000016b0  26 37 32 3a 53 54 41 6e  61 6d 65 4c 4f 3a 4c 44  |&72:STAnameLO:LD|
000016c0  41 26 37 33 3a 53 54 41  6e 61 6d 65 48 49 3a 2e  |A&73:STAnameHI:.|
000016d0  6e 6f 74 7a 65 72 6f 20  4c 44 41 23 30 3a 53 54  |notzero LDA#0:ST|
000016e0  41 26 37 32 3a 4c 44 41  23 26 38 42 3a 53 54 41  |A&72:LDA#&8B:STA|
000016f0  26 37 33 3a 2e 74 72 61  6e 73 6c 6f 6f 70 20 4c  |&73:.transloop L|
00001700  44 41 28 26 37 30 29 2c  59 3a 53 54 41 28 26 37  |DA(&70),Y:STA(&7|
00001710  32 29 2c 59 3a 43 4d 50  23 26 44 3a 42 45 51 65  |2),Y:CMP#&D:BEQe|
00001720  6e 64 66 69 6c 65 3a 43  4d 50 23 26 32 30 3a 42  |ndfile:CMP#&20:B|
00001730  4e 45 63 6f 6e 74 66 69  6c 65 3a 4c 44 41 23 26  |NEcontfile:LDA#&|
00001740  44 3a 53 54 41 28 26 37  32 29 2c 59 3a 42 4e 45  |D:STA(&72),Y:BNE|
00001750  65 6e 64 66 69 6c 65 3a  2e 63 6f 6e 74 66 69 6c  |endfile:.contfil|
00001760  65 20 49 4e 59 3a 4a 4d  50 74 72 61 6e 73 6c 6f  |e INY:JMPtranslo|
00001770  6f 70 3a 2e 65 6e 64 66  69 6c 65 20 52 54 53 0d  |op:.endfile RTS.|
00001780  01 72 d1 20 2e 65 72 72  6f 72 31 20 4c 44 41 23  |.r. .error1 LDA#|
00001790  28 6e 6f 74 66 6f 75 6e  64 20 83 32 35 36 29 3a  |(notfound .256):|
000017a0  53 54 41 26 37 30 3a 4c  44 41 23 28 6e 6f 74 66  |STA&70:LDA#(notf|
000017b0  6f 75 6e 64 20 81 32 35  36 29 3a 53 54 41 26 37  |ound .256):STA&7|
000017c0  31 3a 4a 4d 50 65 72 72  6f 72 3a 2e 65 72 72 6f  |1:JMPerror:.erro|
000017d0  72 32 20 4c 44 41 23 28  6e 6f 6d 6f 72 65 20 83  |r2 LDA#(nomore .|
000017e0  32 35 36 29 3a 53 54 41  26 37 30 3a 4c 44 41 23  |256):STA&70:LDA#|
000017f0  28 6e 6f 6d 6f 72 65 20  81 32 35 36 29 3a 53 54  |(nomore .256):ST|
00001800  41 26 37 31 3a 2e 65 72  72 6f 72 20 4c 44 59 23  |A&71:.error LDY#|
00001810  30 3a 2e 70 72 69 6e 74  6c 6f 6f 70 20 4c 44 41  |0:.printloop LDA|
00001820  28 26 37 30 29 2c 59 3a  49 4e 59 3a 4a 53 52 4f  |(&70),Y:INY:JSRO|
00001830  53 41 53 43 49 3a 43 4d  50 23 26 44 3a 42 4e 45  |SASCI:CMP#&D:BNE|
00001840  70 72 69 6e 74 6c 6f 6f  70 3a 4a 4d 50 72 65 74  |printloop:JMPret|
00001850  0d 01 7c e6 20 2e 6e 6f  74 66 6f 75 6e 64 20 45  |..|. .notfound E|
00001860  51 55 53 22 4e 6f 74 20  66 6f 75 6e 64 22 3a 45  |QUS"Not found":E|
00001870  51 55 42 31 33 3a 2e 6e  6f 6d 6f 72 65 20 45 51  |QUB13:.nomore EQ|
00001880  55 53 22 4e 6f 20 6d 6f  72 65 20 66 69 6c 65 6e  |US"No more filen|
00001890  61 6d 65 73 22 3a 45 51  55 42 31 33 3a 2e 6e 61  |ames":EQUB13:.na|
000018a0  6d 65 4c 4f 20 45 51 55  42 6e 61 6d 65 73 20 83  |meLO EQUBnames .|
000018b0  32 35 36 3a 2e 6e 61 6d  65 48 49 20 45 51 55 42  |256:.nameHI EQUB|
000018c0  6e 61 6d 65 73 20 81 32  35 36 3a 2e 65 6e 64 61  |names .256:.enda|
000018d0  64 64 20 45 51 55 42 30  3a 2e 6f 73 66 69 6c 65  |dd EQUB0:.osfile|
000018e0  4c 4f 20 45 51 55 42 30  3a 2e 6f 73 66 69 6c 65  |LO EQUB0:.osfile|
000018f0  48 49 20 45 51 55 42 30  3a 2e 6f 73 66 73 63 4c  |HI EQUB0:.osfscL|
00001900  4f 20 45 51 55 42 30 3a  2e 6f 73 66 73 63 48 49  |O EQUB0:.osfscHI|
00001910  20 45 51 55 42 30 3a 2e  6f 73 62 79 74 65 4c 4f  | EQUB0:.osbyteLO|
00001920  20 45 51 55 42 30 3a 2e  6f 73 62 79 74 65 48 49  | EQUB0:.osbyteHI|
00001930  20 45 51 55 42 30 0d 01  7e 46 20 2e 69 6e 74 65  | EQUB0..~F .inte|
00001940  72 4c 4f 20 45 51 55 42  30 3a 2e 69 6e 74 65 72  |rLO EQUB0:.inter|
00001950  48 49 20 45 51 55 42 30  3a 2e 69 6e 74 65 72 6e  |HI EQUB0:.intern|
00001960  65 77 4c 4f 20 45 51 55  42 30 3a 2e 69 6e 74 65  |ewLO EQUB0:.inte|
00001970  72 6e 65 77 48 49 20 45  51 55 42 30 0d 01 81 53  |rnewHI EQUB0...S|
00001980  20 2e 74 65 6d 70 73 74  6f 72 65 20 45 51 55 44  | .tempstore EQUD|
00001990  30 3a 45 51 55 57 30 3a  2e 6e 61 6d 65 73 3a 5d  |0:EQUW0:.names:]|
000019a0  3a 24 4f 25 3d 66 69 6c  65 6e 61 6d 65 73 24 3a  |:$O%=filenames$:|
000019b0  4f 25 3d 4f 25 2b a9 28  66 69 6c 65 6e 61 6d 65  |O%=O%+.(filename|
000019c0  73 24 29 2b 31 3a 3f 28  4f 25 2d 31 29 3d 30 0d  |s$)+1:?(O%-1)=0.|
000019d0  01 86 ba 20 62 61 6e 6b  31 3d 4f 25 3a 5b 4f 50  |... bank1=O%:[OP|
000019e0  54 70 61 73 73 2b 34 3a  4c 44 41 23 30 3a 53 54  |Tpass+4:LDA#0:ST|
000019f0  41 26 46 34 3a 53 54 41  26 46 45 30 35 3a 5d 3a  |A&F4:STA&FE05:]:|
00001a00  50 25 3d 4f 25 3a 5b 4f  50 54 70 61 73 73 2b 34  |P%=O%:[OPTpass+4|
00001a10  3a 52 54 53 3a 5d 3a 6f  73 62 79 74 65 3d 4f 25  |:RTS:]:osbyte=O%|
00001a20  3a 50 25 3d 4f 42 72 6f  75 74 69 6e 65 3a 5b 4f  |:P%=OBroutine:[O|
00001a30  50 54 70 61 73 73 2b 34  3a 43 4d 50 23 31 34 30  |PTpass+4:CMP#140|
00001a40  3a 42 45 51 74 61 70 65  3a 50 48 41 3a 4c 44 41  |:BEQtape:PHA:LDA|
00001a50  4f 42 72 6f 75 74 69 6e  65 2b 31 39 3a 53 54 41  |OBroutine+19:STA|
00001a60  26 32 30 41 3a 4c 44 41  4f 42 72 6f 75 74 69 6e  |&20A:LDAOBroutin|
00001a70  65 2b 32 30 3a 53 54 41  26 32 30 42 3a 50 4c 41  |e+20:STA&20B:PLA|
00001a80  3a 4a 53 52 26 30 30 30  30 0d 01 8b 52 20 50 48  |:JSR&0000...R PH|
00001a90  41 3a 4c 44 41 23 28 4f  42 72 6f 75 74 69 6e 65  |A:LDA#(OBroutine|
00001aa0  20 83 32 35 36 29 3a 53  54 41 26 32 30 41 3a 4c  | .256):STA&20A:L|
00001ab0  44 41 23 28 4f 42 72 6f  75 74 69 6e 65 20 81 32  |DA#(OBroutine .2|
00001ac0  35 36 29 3a 53 54 41 26  32 30 42 3a 50 4c 41 3a  |56):STA&20B:PLA:|
00001ad0  2e 74 61 70 65 20 52 54  53 3a 5d 0d 01 90 bd 20  |.tape RTS:].... |
00001ae0  66 69 6c 65 3d 4f 25 3a  50 25 3d 4f 46 49 4c 45  |file=O%:P%=OFILE|
00001af0  3a 5b 4f 50 54 70 61 73  73 2b 34 3a 43 4c 43 3a  |:[OPTpass+4:CLC:|
00001b00  42 43 43 6f 66 3a 2e 4f  46 53 43 20 53 45 43 3a  |BCCof:.OFSC SEC:|
00001b10  2e 6f 66 20 50 48 41 3a  5d 3a 62 61 6e 6b 32 3d  |.of PHA:]:bank2=|
00001b20  4f 25 3a 5b 4f 50 54 70  61 73 73 2b 34 3a 4c 44  |O%:[OPTpass+4:LD|
00001b30  41 23 30 3a 53 54 41 26  46 34 3a 53 54 41 26 46  |A#0:STA&F4:STA&F|
00001b40  45 30 35 3a 2e 65 6e 74  65 72 3a 5d 3a 50 25 3d  |E05:.enter:]:P%=|
00001b50  4f 25 3a 5b 4f 50 54 70  61 73 73 2b 34 3a 52 54  |O%:[OPTpass+4:RT|
00001b60  53 3a 5d 3a 66 69 6c 65  72 65 74 3d 4f 25 3a 50  |S:]:fileret=O%:P|
00001b70  25 3d 42 41 43 4b 3a 5b  4f 50 54 70 61 73 73 2b  |%=BACK:[OPTpass+|
00001b80  34 3a 50 4c 41 3a 52 54  53 3a 5d 3a 66 72 65 74  |4:PLA:RTS:]:fret|
00001b90  65 6e 64 3d 4f 25 3a ed  0d 01 9a 39 20 f1 22 53  |end=O%:....9 ."S|
00001ba0  61 76 65 20 28 59 2f 4e  29 3f 22 3a 41 24 3d be  |ave (Y/N)?":A$=.|
00001bb0  3a e7 20 41 24 3d 22 59  22 20 8c 20 ff 22 53 41  |:. A$="Y" . ."SA|
00001bc0  56 45 20 44 4c 20 33 30  30 30 20 22 2b c3 7e 4f  |VE DL 3000 "+.~O|
00001bd0  25 0d ff                                          |%..|
00001bd3
Dloader10.m0
Dloader10.m1
Dloader10.m2
Dloader10.m4
Dloader10.m5