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

Dloader12

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: Dloader12
Read OK:
File size: 1EF0 bytes
Load address: FFFF2800
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$="CRAZEE"+CHR$13+"CRAZEER"+CHR$13
    5 OFILE=&AA3A:BACK=&8698:OBroutine=&9C05:OBrout2=&8C10:OBrout3=&99A9:B2routine=&A000
    6 OSFILE=&FFDD:OSGBPB=&FFD1:OSFIND=&FFCE:OSASCI=&FFE3
   10 FORpass=0 TO 2 STEP 2:P%=&2000:[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#(osbyte2 MOD256):STA&74:LDA#(osbyte2 DIV256):STA&75:JSRmoveloop2
  112 .b1osbyte2 LDA#(osbyte2 MOD256):STA&70:LDA#(osbyte2 DIV256):STA&71:LDA#(OBrout2 MOD256):STA&72:LDA#(OBrout2 DIV256):STA&73:LDA#(osbyte3 MOD256):STA&74:LDA#(osbyte3 DIV256):STA&75:JSRmoveloop2
  114 .b1osbyte3 LDA#(osbyte3 MOD256):STA&70:LDA#(osbyte3 DIV256):STA&71:LDA#(OBrout3 MOD256):STA&72:LDA#(OBrout3 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:STAOBrout2+8:LDA&20B:STAOBrout2+9: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:PHP:PLA:STAstatus:LDAosfscLO:STA&21E:LDAosfscHI:STA&21F:LDAosfileLO:STA&212:LDAosfileHI:STA&213:LDAosbyteLO:STA&20A:LDAosbyteHI:STA&20B
  192 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 PLA:LDA#1:PHA: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:JMPopen
  270 .laddr CPX#2:BNEopen:LDA&70:STA&A02:LDA&71:STA&A03:.open CLC:LDA&A02:ADC&A0A:STA&A20:LDA&A03:ADC&A0B:STA&A21:LDA#&40:LDX#0:LDY#&B:JSROSFIND
  280 .load2 STA&A80:LDA#&FF:STA&A83:STA&A84:LDA#0:STA&A87:STA&A88:LDA&A02:STA&A81:LDA&A03:STA&A82:.ldloop LDA#0:STA&A86:
  285 LDA&A82:CMP&A21:BEQlast:LDA&A81:BNEnotwhole:INC&A86:.notwhole LDA#0:BEQstore2:.last LDA&A20:.store2 STA&A23:SEC:SBC&A81:STA&A85
  290 LDX#&80:LDY#&A:LDA&A82:CMP#9:BCCnorm:CMP#&1D:BCSnorm:CLC:ADC#&A3:STA&73:LDA#&C:STA&A82:STA&71:LDA#4:JSROSGBPB:LDA#0:STA&70:STA&72:LDY&A81
  295 .tranloop LDA(&70),Y:STA(&72),Y:INY:CPY&A23:BNEtranloop:LDA&73:SEC:SBC#&A3:STA&A82:INC&A82:JMPnextpage
  300 .norm LDA#4:JSROSGBPB:.nextpage LDA&A82:CMP&A21:BNEback:LDA&A81:CMP&A20:BEQendload:.back JMPldloop:.endload LDA#0:LDY&A80: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
  335 SEI:LDAinternewLO:STA&204:LDAinternewHI:STA&205:CLI:LDAstatus:PHA:PLP: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:.status 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:LDAOBrout2+8:STA&20A:JMPOBrout2:.tape RTS:]:osbyte2=O%:P%=OBrout2:[OPTpass+4
  395 LDAOBrout2+9:STA&20B:PLA:JSR&0000:JMPOBrout3:]:osbyte3=O%:P%=OBrout3:[OPTpass+4:PHA:LDA#(OBroutine MOD256):STA&20A:LDA#(OBroutine DIV256):STA&20B:PLA:JMPtape:]
  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 2000 "+STR$~O%
K �    TAPE -> ADFS   L O A D E R                 by  M. FORD , 15/2/94 
* filenames$="CRAZEE"+�13+"CRAZEER"+�13
W OFILE=&AA3A:BACK=&8698:OBroutine=&9C05:OBrout2=&8C10:OBrout3=&99A9:B2routine=&A000
8 OSFILE=&FFDD:OSGBPB=&FFD1:OSFIND=&FFCE:OSASCI=&FFE3

& �pass=0 � 2 � 2:P%=&2000:[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#(osbyte2 �256):STA&74:LDA#(osbyte2 �256):STA&75:JSRmoveloop2
p� .b1osbyte2 LDA#(osbyte2 �256):STA&70:LDA#(osbyte2 �256):STA&71:LDA#(OBrout2 �256):STA&72:LDA#(OBrout2 �256):STA&73:LDA#(osbyte3 �256):STA&74:LDA#(osbyte3 �256):STA&75:JSRmoveloop2
r� .b1osbyte3 LDA#(osbyte3 �256):STA&70:LDA#(osbyte3 �256):STA&71:LDA#(OBrout3 �256):STA&72:LDA#(OBrout3 �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:STAOBrout2+8:LDA&20B:STAOBrout2+9: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:PHP:PLA:STAstatus: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
�d .filerout PLA:LDA#1:PHA: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:JMPopen
� .laddr CPX#2:BNEopen:LDA&70:STA&A02:LDA&71:STA&A03:.open CLC:LDA&A02:ADC&A0A:STA&A20:LDA&A03:ADC&A0B:STA&A21:LDA#&40:LDX#0:LDY#&B:JSROSFIND
x .load2 STA&A80:LDA#&FF:STA&A83:STA&A84:LDA#0:STA&A87:STA&A88:LDA&A02:STA&A81:LDA&A03:STA&A82:.ldloop LDA#0:STA&A86:
� LDA&A82:CMP&A21:BEQlast:LDA&A81:BNEnotwhole:INC&A86:.notwhole LDA#0:BEQstore2:.last LDA&A20:.store2 STA&A23:SEC:SBC&A81:STA&A85
"� LDX#&80:LDY#&A:LDA&A82:CMP#9:BCCnorm:CMP#&1D:BCSnorm:CLC:ADC#&A3:STA&73:LDA#&C:STA&A82:STA&71:LDA#4:JSROSGBPB:LDA#0:STA&70:STA&72:LDY&A81
'k .tranloop LDA(&70),Y:STA(&72),Y:INY:CPY&A23:BNEtranloop:LDA&73:SEC:SBC#&A3:STA&A82:INC&A82:JMPnextpage
,� .norm LDA#4:JSROSGBPB:.nextpage LDA&A82:CMP&A21:BNEback:LDA&A81:CMP&A20:BEQendload:.back JMPldloop:.endload LDA#0:LDY&A80: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
Jj .vars LDY&75:LDX&74:STXendadd:LDX#0:.loadvars LDAtempstore,X:STA&70,X:INX:CPX#6:BNEloadvars:LDXendadd
Os SEI:LDAinternewLO:STA&204:LDAinternewHI:STA&205:CLI:LDAstatus:PHA:PLP: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
~T .interLO EQUB0:.interHI EQUB0:.internewLO EQUB0:.internewHI EQUB0:.status 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:LDAOBrout2+8:STA&20A:JMPOBrout2:.tape RTS:]:osbyte2=O%:P%=OBrout2:[OPTpass+4
�� LDAOBrout2+9:STA&20B:PLA:JSR&0000:JMPOBrout3:]:osbyte3=O%:P%=OBrout3:[OPTpass+4:PHA:LDA#(OBroutine �256):STA&20A:LDA#(OBroutine �256):STA&20B:PLA:JMPtape:]
�� 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 2000 "+�~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 2a 20  | , 15/2/94 ...* |
00000050  66 69 6c 65 6e 61 6d 65  73 24 3d 22 43 52 41 5a  |filenames$="CRAZ|
00000060  45 45 22 2b bd 31 33 2b  22 43 52 41 5a 45 45 52  |EE"+.13+"CRAZEER|
00000070  22 2b bd 31 33 0d 00 05  57 20 4f 46 49 4c 45 3d  |"+.13...W OFILE=|
00000080  26 41 41 33 41 3a 42 41  43 4b 3d 26 38 36 39 38  |&AA3A:BACK=&8698|
00000090  3a 4f 42 72 6f 75 74 69  6e 65 3d 26 39 43 30 35  |:OBroutine=&9C05|
000000a0  3a 4f 42 72 6f 75 74 32  3d 26 38 43 31 30 3a 4f  |:OBrout2=&8C10:O|
000000b0  42 72 6f 75 74 33 3d 26  39 39 41 39 3a 42 32 72  |Brout3=&99A9:B2r|
000000c0  6f 75 74 69 6e 65 3d 26  41 30 30 30 0d 00 06 38  |outine=&A000...8|
000000d0  20 4f 53 46 49 4c 45 3d  26 46 46 44 44 3a 4f 53  | OSFILE=&FFDD:OS|
000000e0  47 42 50 42 3d 26 46 46  44 31 3a 4f 53 46 49 4e  |GBPB=&FFD1:OSFIN|
000000f0  44 3d 26 46 46 43 45 3a  4f 53 41 53 43 49 3d 26  |D=&FFCE:OSASCI=&|
00000100  46 46 45 33 0d 00 0a 26  20 e3 70 61 73 73 3d 30  |FFE3...& .pass=0|
00000110  20 b8 20 32 20 88 20 32  3a 50 25 3d 26 32 30 30  | . 2 . 2:P%=&200|
00000120  30 3a 5b 4f 50 54 70 61  73 73 0d 00 14 66 20 4c  |0:[OPTpass...f L|
00000130  44 41 23 30 3a 53 54 41  26 46 43 44 43 3a 53 54  |DA#0:STA&FCDC:ST|
00000140  41 26 46 43 44 45 3a 4c  44 41 23 31 35 3a 53 54  |A&FCDE:LDA#15:ST|
00000150  41 26 46 34 3a 53 54 41  26 46 45 30 35 3a 4c 44  |A&F4:STA&FE05:LD|
00000160  58 23 32 3a 53 45 49 3a  2e 74 65 73 74 20 54 58  |X#2:SEI:.test TX|
00000170  41 3a 53 54 41 26 46 34  3a 53 54 41 26 46 45 30  |A:STA&F4:STA&FE0|
00000180  35 3a 4c 44 41 23 30 3a  4c 44 41 26 38 38 30 30  |5:LDA#0:LDA&8800|
00000190  0d 00 1e 37 20 49 4e 43  26 38 38 30 30 3a 43 4d  |...7 INC&8800:CM|
000001a0  50 26 38 38 30 30 3a 42  4e 45 66 6f 75 6e 64 3a  |P&8800:BNEfound:|
000001b0  44 45 58 3a 44 45 58 3a  42 50 4c 74 65 73 74 3a  |DEX:DEX:BPLtest:|
000001c0  4c 44 58 23 26 46 46 0d  00 28 32 20 2e 66 6f 75  |LDX#&FF..(2 .fou|
000001d0  6e 64 20 44 45 43 26 38  38 30 30 3a 43 4c 49 3a  |nd DEC&8800:CLI:|
000001e0  53 54 58 62 61 6e 6b 31  2b 31 3a 49 4e 58 3a 53  |STXbank1+1:INX:S|
000001f0  54 58 62 61 6e 6b 32 2b  31 0d 00 32 ef 20 2e 42  |TXbank2+1..2. .B|
00000200  41 53 49 43 72 6f 6d 20  4c 44 41 23 31 31 3a 53  |ASICrom LDA#11:S|
00000210  54 41 26 46 34 3a 53 54  41 26 46 45 30 35 3a 4c  |TA&F4:STA&FE05:L|
00000220  44 41 23 30 3a 53 54 41  26 37 30 3a 53 54 41 26  |DA#0:STA&70:STA&|
00000230  37 32 3a 53 54 41 26 37  34 3a 4c 44 41 23 26 38  |72:STA&74:LDA#&8|
00000240  30 3a 53 54 41 26 37 31  3a 4c 44 41 23 26 34 30  |0:STA&71:LDA#&40|
00000250  3a 53 54 41 26 37 33 3a  4c 44 41 23 26 41 30 3a  |:STA&73:LDA#&A0:|
00000260  53 54 41 26 37 35 3a 4a  53 52 6d 6f 76 65 6c 6f  |STA&75:JSRmovelo|
00000270  6f 70 32 3a 4c 44 41 23  31 35 3a 53 54 41 26 46  |op2:LDA#15:STA&F|
00000280  34 3a 53 54 41 26 46 45  30 35 3a 4a 53 52 62 61  |4:STA&FE05:JSRba|
00000290  6e 6b 31 3a 4c 44 41 23  30 3a 53 54 41 26 37 30  |nk1:LDA#0:STA&70|
000002a0  3a 53 54 41 26 37 32 3a  53 54 41 26 37 34 3a 4c  |:STA&72:STA&74:L|
000002b0  44 41 23 26 34 30 3a 53  54 41 26 37 31 3a 4c 44  |DA#&40:STA&71:LD|
000002c0  41 23 26 38 30 3a 53 54  41 26 37 33 3a 4c 44 41  |A#&80:STA&73:LDA|
000002d0  23 26 36 30 3a 53 54 41  26 37 35 3a 4a 53 52 6d  |#&60:STA&75:JSRm|
000002e0  6f 76 65 6c 6f 6f 70 32  0d 00 3c e4 4c 44 41 23  |oveloop2..<.LDA#|
000002f0  31 31 3a 53 54 41 26 46  34 3a 53 54 41 26 46 45  |11:STA&F4:STA&FE|
00000300  30 35 3a 4c 44 41 23 30  3a 53 54 41 26 37 30 3a  |05:LDA#0:STA&70:|
00000310  53 54 41 26 37 32 3a 53  54 41 26 37 34 3a 4c 44  |STA&72:STA&74:LD|
00000320  41 23 26 41 30 3a 53 54  41 26 37 31 3a 4c 44 41  |A#&A0:STA&71:LDA|
00000330  23 26 34 30 3a 53 54 41  26 37 33 3a 4c 44 41 23  |#&40:STA&73:LDA#|
00000340  26 43 30 3a 53 54 41 26  37 35 3a 4a 53 52 6d 6f  |&C0:STA&75:JSRmo|
00000350  76 65 6c 6f 6f 70 32 3a  4c 44 41 23 31 35 3a 53  |veloop2:LDA#15:S|
00000360  54 41 26 46 34 3a 53 54  41 26 46 45 30 35 3a 4a  |TA&F4:STA&FE05:J|
00000370  53 52 62 61 6e 6b 31 3a  4c 44 41 23 30 3a 53 54  |SRbank1:LDA#0:ST|
00000380  41 26 37 30 3a 53 54 41  26 37 32 3a 53 54 41 26  |A&70:STA&72:STA&|
00000390  37 34 3a 4c 44 41 23 26  34 30 3a 53 54 41 26 37  |74:LDA#&40:STA&7|
000003a0  31 3a 4c 44 41 23 26 41  30 3a 53 54 41 26 37 33  |1:LDA#&A0:STA&73|
000003b0  3a 4c 44 41 23 26 36 30  3a 53 54 41 26 37 35 3a  |:LDA#&60:STA&75:|
000003c0  4a 53 52 6d 6f 76 65 6c  6f 6f 70 32 0d 00 46 aa  |JSRmoveloop2..F.|
000003d0  20 2e 62 61 6e 6b 32 65  6e 74 72 79 20 4a 53 52  | .bank2entry JSR|
000003e0  62 61 6e 6b 32 3a 4c 44  41 23 28 65 6e 74 65 72  |bank2:LDA#(enter|
000003f0  20 83 32 35 36 29 3a 53  54 41 26 37 30 3a 4c 44  | .256):STA&70:LD|
00000400  41 23 28 65 6e 74 65 72  20 81 32 35 36 29 3a 53  |A#(enter .256):S|
00000410  54 41 26 37 31 3a 4c 44  59 23 30 3a 4c 44 41 23  |TA&71:LDY#0:LDA#|
00000420  26 34 43 3a 53 54 41 28  26 37 30 29 2c 59 3a 49  |&4C:STA(&70),Y:I|
00000430  4e 59 3a 4c 44 41 23 28  42 32 72 6f 75 74 69 6e  |NY:LDA#(B2routin|
00000440  65 20 83 32 35 36 29 3a  53 54 41 28 26 37 30 29  |e .256):STA(&70)|
00000450  2c 59 3a 49 4e 59 3a 4c  44 41 23 28 42 32 72 6f  |,Y:INY:LDA#(B2ro|
00000460  75 74 69 6e 65 20 81 32  35 36 29 3a 53 54 41 28  |utine .256):STA(|
00000470  26 37 30 29 2c 59 0d 00  50 b4 20 2e 62 61 6e 6b  |&70),Y..P. .bank|
00000480  32 6d 61 69 6e 20 4c 44  41 23 28 73 74 61 72 74  |2main LDA#(start|
00000490  20 83 32 35 36 29 3a 53  54 41 26 37 30 3a 4c 44  | .256):STA&70:LD|
000004a0  41 23 28 73 74 61 72 74  20 81 32 35 36 29 3a 53  |A#(start .256):S|
000004b0  54 41 26 37 31 3a 4c 44  41 23 28 62 61 6e 6b 31  |TA&71:LDA#(bank1|
000004c0  20 83 32 35 36 29 3a 53  54 41 26 37 34 3a 4c 44  | .256):STA&74:LD|
000004d0  41 23 28 62 61 6e 6b 31  20 81 32 35 36 29 3a 53  |A#(bank1 .256):S|
000004e0  54 41 26 37 35 3a 4c 44  41 23 28 42 32 72 6f 75  |TA&75:LDA#(B2rou|
000004f0  74 69 6e 65 20 83 32 35  36 29 3a 53 54 41 26 37  |tine .256):STA&7|
00000500  32 3a 4c 44 41 23 28 42  32 72 6f 75 74 69 6e 65  |2:LDA#(B2routine|
00000510  20 81 32 35 36 29 3a 53  54 41 26 37 33 3a 4a 53  | .256):STA&73:JS|
00000520  52 6d 6f 76 65 6c 6f 6f  70 32 0d 00 5a 61 20 2e  |Rmoveloop2..Za .|
00000530  41 44 46 53 64 61 74 61  20 4c 44 41 23 30 3a 53  |ADFSdata LDA#0:S|
00000540  54 41 26 37 30 3a 53 54  41 26 37 32 3a 53 54 41  |TA&70:STA&72:STA|
00000550  26 37 34 3a 4c 44 41 23  39 3a 53 54 41 26 37 31  |&74:LDA#9:STA&71|
00000560  3a 4c 44 41 23 26 38 39  3a 53 54 41 26 37 33 3a  |:LDA#&89:STA&73:|
00000570  4c 44 41 23 26 31 44 3a  53 54 41 26 37 35 3a 4a  |LDA#&1D:STA&75:J|
00000580  53 52 6d 6f 76 65 6c 6f  6f 70 32 0d 00 64 d7 20  |SRmoveloop2..d. |
00000590  2e 62 31 72 65 74 75 72  6e 20 4c 44 41 23 28 62  |.b1return LDA#(b|
000005a0  61 6e 6b 31 20 83 32 35  36 29 3a 53 54 41 26 37  |ank1 .256):STA&7|
000005b0  30 3a 4c 44 41 23 28 62  61 6e 6b 31 20 81 32 35  |0:LDA#(bank1 .25|
000005c0  36 29 3a 53 54 41 26 37  31 3a 4c 44 41 23 28 42  |6):STA&71:LDA#(B|
000005d0  41 43 4b 2d 28 6f 73 62  79 74 65 2d 62 61 6e 6b  |ACK-(osbyte-bank|
000005e0  31 2d 31 29 29 20 83 32  35 36 29 3a 53 54 41 26  |1-1)) .256):STA&|
000005f0  37 32 3a 4c 44 41 23 28  42 41 43 4b 2d 28 6f 73  |72:LDA#(BACK-(os|
00000600  62 79 74 65 2d 62 61 6e  6b 31 2d 31 29 29 20 81  |byte-bank1-1)) .|
00000610  32 35 36 29 3a 53 54 41  26 37 33 3a 4c 44 41 23  |256):STA&73:LDA#|
00000620  28 28 6f 73 62 79 74 65  2d 31 29 20 83 32 35 36  |((osbyte-1) .256|
00000630  29 3a 53 54 41 26 37 34  3a 4c 44 41 23 28 28 6f  |):STA&74:LDA#((o|
00000640  73 62 79 74 65 2d 31 29  20 81 32 35 36 29 3a 53  |sbyte-1) .256):S|
00000650  54 41 26 37 35 3a 4a 53  52 6d 6f 76 65 6c 6f 6f  |TA&75:JSRmoveloo|
00000660  70 32 0d 00 6e c2 20 2e  62 31 6f 73 62 79 74 65  |p2..n. .b1osbyte|
00000670  20 4a 53 52 62 61 6e 6b  31 3a 4c 44 41 23 28 6f  | JSRbank1:LDA#(o|
00000680  73 62 79 74 65 20 83 32  35 36 29 3a 53 54 41 26  |sbyte .256):STA&|
00000690  37 30 3a 4c 44 41 23 28  6f 73 62 79 74 65 20 81  |70:LDA#(osbyte .|
000006a0  32 35 36 29 3a 53 54 41  26 37 31 3a 4c 44 41 23  |256):STA&71:LDA#|
000006b0  28 4f 42 72 6f 75 74 69  6e 65 20 83 32 35 36 29  |(OBroutine .256)|
000006c0  3a 53 54 41 26 37 32 3a  4c 44 41 23 28 4f 42 72  |:STA&72:LDA#(OBr|
000006d0  6f 75 74 69 6e 65 20 81  32 35 36 29 3a 53 54 41  |outine .256):STA|
000006e0  26 37 33 3a 4c 44 41 23  28 6f 73 62 79 74 65 32  |&73:LDA#(osbyte2|
000006f0  20 83 32 35 36 29 3a 53  54 41 26 37 34 3a 4c 44  | .256):STA&74:LD|
00000700  41 23 28 6f 73 62 79 74  65 32 20 81 32 35 36 29  |A#(osbyte2 .256)|
00000710  3a 53 54 41 26 37 35 3a  4a 53 52 6d 6f 76 65 6c  |:STA&75:JSRmovel|
00000720  6f 6f 70 32 0d 00 70 b8  20 2e 62 31 6f 73 62 79  |oop2..p. .b1osby|
00000730  74 65 32 20 4c 44 41 23  28 6f 73 62 79 74 65 32  |te2 LDA#(osbyte2|
00000740  20 83 32 35 36 29 3a 53  54 41 26 37 30 3a 4c 44  | .256):STA&70:LD|
00000750  41 23 28 6f 73 62 79 74  65 32 20 81 32 35 36 29  |A#(osbyte2 .256)|
00000760  3a 53 54 41 26 37 31 3a  4c 44 41 23 28 4f 42 72  |:STA&71:LDA#(OBr|
00000770  6f 75 74 32 20 83 32 35  36 29 3a 53 54 41 26 37  |out2 .256):STA&7|
00000780  32 3a 4c 44 41 23 28 4f  42 72 6f 75 74 32 20 81  |2:LDA#(OBrout2 .|
00000790  32 35 36 29 3a 53 54 41  26 37 33 3a 4c 44 41 23  |256):STA&73:LDA#|
000007a0  28 6f 73 62 79 74 65 33  20 83 32 35 36 29 3a 53  |(osbyte3 .256):S|
000007b0  54 41 26 37 34 3a 4c 44  41 23 28 6f 73 62 79 74  |TA&74:LDA#(osbyt|
000007c0  65 33 20 81 32 35 36 29  3a 53 54 41 26 37 35 3a  |e3 .256):STA&75:|
000007d0  4a 53 52 6d 6f 76 65 6c  6f 6f 70 32 0d 00 72 b2  |JSRmoveloop2..r.|
000007e0  20 2e 62 31 6f 73 62 79  74 65 33 20 4c 44 41 23  | .b1osbyte3 LDA#|
000007f0  28 6f 73 62 79 74 65 33  20 83 32 35 36 29 3a 53  |(osbyte3 .256):S|
00000800  54 41 26 37 30 3a 4c 44  41 23 28 6f 73 62 79 74  |TA&70:LDA#(osbyt|
00000810  65 33 20 81 32 35 36 29  3a 53 54 41 26 37 31 3a  |e3 .256):STA&71:|
00000820  4c 44 41 23 28 4f 42 72  6f 75 74 33 20 83 32 35  |LDA#(OBrout3 .25|
00000830  36 29 3a 53 54 41 26 37  32 3a 4c 44 41 23 28 4f  |6):STA&72:LDA#(O|
00000840  42 72 6f 75 74 33 20 81  32 35 36 29 3a 53 54 41  |Brout3 .256):STA|
00000850  26 37 33 3a 4c 44 41 23  28 66 69 6c 65 20 83 32  |&73:LDA#(file .2|
00000860  35 36 29 3a 53 54 41 26  37 34 3a 4c 44 41 23 28  |56):STA&74:LDA#(|
00000870  66 69 6c 65 20 81 32 35  36 29 3a 53 54 41 26 37  |file .256):STA&7|
00000880  35 3a 4a 53 52 6d 6f 76  65 6c 6f 6f 70 32 0d 00  |5:JSRmoveloop2..|
00000890  78 ad 20 2e 62 31 6f 73  66 69 6c 65 20 4c 44 41  |x. .b1osfile LDA|
000008a0  23 28 66 69 6c 65 20 83  32 35 36 29 3a 53 54 41  |#(file .256):STA|
000008b0  26 37 30 3a 4c 44 41 23  28 66 69 6c 65 20 81 32  |&70:LDA#(file .2|
000008c0  35 36 29 3a 53 54 41 26  37 31 3a 4c 44 41 23 28  |56):STA&71:LDA#(|
000008d0  4f 46 49 4c 45 20 83 32  35 36 29 3a 53 54 41 26  |OFILE .256):STA&|
000008e0  37 32 3a 4c 44 41 23 28  4f 46 49 4c 45 20 81 32  |72:LDA#(OFILE .2|
000008f0  35 36 29 3a 53 54 41 26  37 33 3a 4c 44 41 23 28  |56):STA&73:LDA#(|
00000900  66 69 6c 65 72 65 74 20  83 32 35 36 29 3a 53 54  |fileret .256):ST|
00000910  41 26 37 34 3a 4c 44 41  23 28 66 69 6c 65 72 65  |A&74:LDA#(filere|
00000920  74 20 81 32 35 36 29 3a  53 54 41 26 37 35 3a 4a  |t .256):STA&75:J|
00000930  53 52 6d 6f 76 65 6c 6f  6f 70 32 0d 00 82 b2 20  |SRmoveloop2.... |
00000940  2e 62 31 66 69 6c 65 72  65 74 20 4c 44 41 23 28  |.b1fileret LDA#(|
00000950  66 69 6c 65 72 65 74 20  83 32 35 36 29 3a 53 54  |fileret .256):ST|
00000960  41 26 37 30 3a 4c 44 41  23 28 66 69 6c 65 72 65  |A&70:LDA#(filere|
00000970  74 20 81 32 35 36 29 3a  53 54 41 26 37 31 3a 4c  |t .256):STA&71:L|
00000980  44 41 23 28 42 41 43 4b  20 83 32 35 36 29 3a 53  |DA#(BACK .256):S|
00000990  54 41 26 37 32 3a 4c 44  41 23 28 42 41 43 4b 20  |TA&72:LDA#(BACK |
000009a0  81 32 35 36 29 3a 53 54  41 26 37 33 3a 4c 44 41  |.256):STA&73:LDA|
000009b0  23 28 66 72 65 74 65 6e  64 20 83 32 35 36 29 3a  |#(fretend .256):|
000009c0  53 54 41 26 37 34 3a 4c  44 41 23 28 66 72 65 74  |STA&74:LDA#(fret|
000009d0  65 6e 64 20 81 32 35 36  29 3a 53 54 41 26 37 35  |end .256):STA&75|
000009e0  3a 4a 53 52 6d 6f 76 65  6c 6f 6f 70 32 0d 00 8c  |:JSRmoveloop2...|
000009f0  6a 20 2e 70 61 67 65 20  4c 44 41 23 30 3a 53 54  |j .page LDA#0:ST|
00000a00  41 26 37 30 3a 53 54 41  26 37 32 3a 4c 44 41 26  |A&70:STA&72:LDA&|
00000a10  31 38 3a 53 54 41 26 37  31 3a 4c 44 41 23 26 45  |18:STA&71:LDA#&E|
00000a20  3a 53 54 41 26 37 33 3a  53 54 41 26 31 38 3a 4c  |:STA&73:STA&18:L|
00000a30  44 41 26 31 32 3a 53 54  41 26 37 34 3a 4c 44 41  |DA&12:STA&74:LDA|
00000a40  26 31 33 3a 53 54 41 26  37 35 3a 4a 53 52 6d 6f  |&13:STA&75:JSRmo|
00000a50  76 65 6c 6f 6f 70 32 0d  00 96 67 20 2e 6c 61 6e  |veloop2...g .lan|
00000a60  67 52 4f 4d 20 4c 44 41  62 61 6e 6b 31 2b 31 3a  |gROM LDAbank1+1:|
00000a70  53 54 41 26 32 38 43 3a  43 4c 43 3a 41 44 43 23  |STA&28C:CLC:ADC#|
00000a80  26 41 30 3a 53 54 41 26  37 30 3a 4c 44 41 23 32  |&A0:STA&70:LDA#2|
00000a90  3a 53 54 41 26 37 31 3a  4c 44 59 23 30 3a 4c 44  |:STA&71:LDY#0:LD|
00000aa0  41 23 26 36 30 3a 53 54  41 28 26 37 30 29 2c 59  |A#&60:STA(&70),Y|
00000ab0  3a 4c 44 41 23 30 3a 53  54 41 26 32 41 42 0d 00  |:LDA#0:STA&2AB..|
00000ac0  a0 d9 20 2e 76 65 63 74  20 4c 44 41 26 32 30 41  |.. .vect LDA&20A|
00000ad0  3a 53 54 41 4f 42 72 6f  75 74 32 2b 38 3a 4c 44  |:STAOBrout2+8:LD|
00000ae0  41 26 32 30 42 3a 53 54  41 4f 42 72 6f 75 74 32  |A&20B:STAOBrout2|
00000af0  2b 39 3a 4a 53 52 62 61  6e 6b 32 3a 4c 44 41 26  |+9:JSRbank2:LDA&|
00000b00  32 30 34 3a 53 54 41 69  6e 74 65 72 4c 4f 3a 4c  |204:STAinterLO:L|
00000b10  44 41 26 32 30 35 3a 53  54 41 69 6e 74 65 72 48  |DA&205:STAinterH|
00000b20  49 3a 4c 44 41 26 32 30  41 3a 53 54 41 6f 73 62  |I:LDA&20A:STAosb|
00000b30  79 74 65 4c 4f 3a 4c 44  41 26 32 30 42 3a 53 54  |yteLO:LDA&20B:ST|
00000b40  41 6f 73 62 79 74 65 48  49 3a 4c 44 41 26 32 31  |AosbyteHI:LDA&21|
00000b50  32 3a 53 54 41 6f 73 66  69 6c 65 4c 4f 3a 4c 44  |2:STAosfileLO:LD|
00000b60  41 26 32 31 33 3a 53 54  41 6f 73 66 69 6c 65 48  |A&213:STAosfileH|
00000b70  49 3a 4c 44 41 26 32 31  45 3a 53 54 41 6f 73 66  |I:LDA&21E:STAosf|
00000b80  73 63 4c 4f 3a 4c 44 41  26 32 31 46 3a 53 54 41  |scLO:LDA&21F:STA|
00000b90  6f 73 66 73 63 48 49 0d  00 a5 2b 20 4a 53 52 76  |osfscHI...+ JSRv|
00000ba0  65 63 74 6f 72 73 3a 4a  53 52 62 61 6e 6b 31 3a  |ectors:JSRbank1:|
00000bb0  4c 44 41 23 30 3a 53 54  41 26 46 43 44 44 3a 52  |LDA#0:STA&FCDD:R|
00000bc0  54 53 0d 00 aa 8d 20 2e  6d 6f 76 65 6c 6f 6f 70  |TS.... .moveloop|
00000bd0  32 20 4c 44 59 23 30 3a  2e 6c 6f 6f 70 20 4c 44  |2 LDY#0:.loop LD|
00000be0  41 28 26 37 30 29 2c 59  3a 53 54 41 28 26 37 32  |A(&70),Y:STA(&72|
00000bf0  29 2c 59 3a 49 4e 43 26  37 30 3a 42 4e 45 61 3a  |),Y:INC&70:BNEa:|
00000c00  49 4e 43 26 37 31 3a 2e  61 20 49 4e 43 26 37 32  |INC&71:.a INC&72|
00000c10  3a 42 4e 45 62 3a 49 4e  43 26 37 33 3a 2e 62 20  |:BNEb:INC&73:.b |
00000c20  4c 44 41 26 37 30 3a 43  4d 50 26 37 34 3a 42 4e  |LDA&70:CMP&74:BN|
00000c30  45 6c 6f 6f 70 3a 4c 44  41 26 37 31 3a 43 4d 50  |Eloop:LDA&71:CMP|
00000c40  26 37 35 3a 42 4e 45 6c  6f 6f 70 3a 52 54 53 0d  |&75:BNEloop:RTS.|
00000c50  00 b4 2d 20 5d 3a 4f 25  3d 50 25 3a 73 74 61 72  |..- ]:O%=P%:star|
00000c60  74 3d 4f 25 3a 50 25 3d  42 32 72 6f 75 74 69 6e  |t=O%:P%=B2routin|
00000c70  65 3a 5b 4f 50 54 70 61  73 73 2b 34 0d 00 be 9c  |e:[OPTpass+4....|
00000c80  20 4c 44 41 23 30 3a 41  44 43 23 30 3a 50 48 41  | LDA#0:ADC#0:PHA|
00000c90  3a 50 48 50 3a 50 4c 41  3a 53 54 41 73 74 61 74  |:PHP:PLA:STAstat|
00000ca0  75 73 3a 4c 44 41 6f 73  66 73 63 4c 4f 3a 53 54  |us:LDAosfscLO:ST|
00000cb0  41 26 32 31 45 3a 4c 44  41 6f 73 66 73 63 48 49  |A&21E:LDAosfscHI|
00000cc0  3a 53 54 41 26 32 31 46  3a 4c 44 41 6f 73 66 69  |:STA&21F:LDAosfi|
00000cd0  6c 65 4c 4f 3a 53 54 41  26 32 31 32 3a 4c 44 41  |leLO:STA&212:LDA|
00000ce0  6f 73 66 69 6c 65 48 49  3a 53 54 41 26 32 31 33  |osfileHI:STA&213|
00000cf0  3a 4c 44 41 6f 73 62 79  74 65 4c 4f 3a 53 54 41  |:LDAosbyteLO:STA|
00000d00  26 32 30 41 3a 4c 44 41  6f 73 62 79 74 65 48 49  |&20A:LDAosbyteHI|
00000d10  3a 53 54 41 26 32 30 42  0d 00 c0 5e 20 53 45 49  |:STA&20B...^ SEI|
00000d20  3a 4c 44 41 26 32 30 34  3a 53 54 41 69 6e 74 65  |:LDA&204:STAinte|
00000d30  72 6e 65 77 4c 4f 3a 4c  44 41 26 32 30 35 3a 53  |rnewLO:LDA&205:S|
00000d40  54 41 69 6e 74 65 72 6e  65 77 48 49 3a 4c 44 41  |TAinternewHI:LDA|
00000d50  69 6e 74 65 72 4c 4f 3a  53 54 41 26 32 30 34 3a  |interLO:STA&204:|
00000d60  4c 44 41 69 6e 74 65 72  48 49 3a 53 54 41 26 32  |LDAinterHI:STA&2|
00000d70  30 35 3a 43 4c 49 0d 00  c3 7f 20 53 54 58 65 6e  |05:CLI.... STXen|
00000d80  64 61 64 64 3a 4c 44 58  23 30 3a 2e 73 61 76 65  |dadd:LDX#0:.save|
00000d90  76 61 72 73 20 4c 44 41  26 37 30 2c 58 3a 53 54  |vars LDA&70,X:ST|
00000da0  41 74 65 6d 70 73 74 6f  72 65 2c 58 3a 49 4e 58  |Atempstore,X:INX|
00000db0  3a 43 50 58 23 36 3a 42  4e 45 73 61 76 65 76 61  |:CPX#6:BNEsaveva|
00000dc0  72 73 3a 53 54 59 26 37  35 3a 4c 44 58 65 6e 64  |rs:STY&75:LDXend|
00000dd0  61 64 64 3a 53 54 58 26  37 34 3a 50 4c 41 3a 42  |add:STX&74:PLA:B|
00000de0  45 51 66 69 6c 65 72 6f  75 74 3a 4a 4d 50 66 73  |EQfilerout:JMPfs|
00000df0  63 72 6f 75 74 0d 00 c8  64 20 2e 66 69 6c 65 72  |crout...d .filer|
00000e00  6f 75 74 20 50 4c 41 3a  4c 44 41 23 31 3a 50 48  |out PLA:LDA#1:PH|
00000e10  41 3a 4c 44 59 23 30 3a  4c 44 41 28 26 37 34 29  |A:LDY#0:LDA(&74)|
00000e20  2c 59 3a 54 41 58 3a 49  4e 59 3a 4c 44 41 28 26  |,Y:TAX:INY:LDA(&|
00000e30  37 34 29 2c 59 3a 53 54  58 26 37 30 3a 53 54 41  |74),Y:STX&70:STA|
00000e40  26 37 31 3a 44 45 59 3a  4a 53 52 66 69 6c 65 6e  |&71:DEY:JSRfilen|
00000e50  61 6d 65 3a 4c 44 58 23  30 0d 00 d2 a9 20 2e 6c  |ame:LDX#0.... .l|
00000e60  6f 61 64 20 4c 44 41 23  30 3a 53 54 41 26 37 30  |oad LDA#0:STA&70|
00000e70  3a 53 54 41 26 37 32 3a  4c 44 41 23 39 3a 53 54  |:STA&72:LDA#9:ST|
00000e80  41 26 37 31 3a 4c 44 41  23 26 41 43 3a 53 54 41  |A&71:LDA#&AC:STA|
00000e90  26 37 33 3a 4c 44 41 23  26 31 44 3a 53 54 41 65  |&73:LDA#&1D:STAe|
00000ea0  6e 64 61 64 64 3a 4c 44  59 23 30 3a 4a 53 52 6d  |ndadd:LDY#0:JSRm|
00000eb0  6f 76 65 6c 6f 6f 70 3a  4c 44 41 23 26 38 39 3a  |oveloop:LDA#&89:|
00000ec0  53 54 41 26 37 31 3a 4c  44 41 23 39 3a 53 54 41  |STA&71:LDA#9:STA|
00000ed0  26 37 33 3a 4c 44 41 23  26 39 44 3a 53 54 41 65  |&73:LDA#&9D:STAe|
00000ee0  6e 64 61 64 64 3a 4c 44  59 23 30 3a 4a 53 52 6d  |ndadd:LDY#0:JSRm|
00000ef0  6f 76 65 6c 6f 6f 70 3a  4a 4d 50 6c 6f 61 64 61  |oveloop:JMPloada|
00000f00  64 64 0d 00 dc 63 20 2e  6d 6f 76 65 6c 6f 6f 70  |dd...c .moveloop|
00000f10  20 4c 44 41 28 26 37 30  29 2c 59 3a 53 54 41 28  | LDA(&70),Y:STA(|
00000f20  26 37 32 29 2c 59 3a 49  4e 59 3a 42 4e 45 6d 6f  |&72),Y:INY:BNEmo|
00000f30  76 65 6c 6f 6f 70 3a 49  4e 43 26 37 31 3a 49 4e  |veloop:INC&71:IN|
00000f40  43 26 37 33 3a 4c 44 41  26 37 31 3a 43 4d 50 65  |C&73:LDA&71:CMPe|
00000f50  6e 64 61 64 64 3a 42 4e  45 6d 6f 76 65 6c 6f 6f  |ndadd:BNEmoveloo|
00000f60  70 3a 52 54 53 0d 00 e6  e3 20 2e 6c 6f 61 64 61  |p:RTS.... .loada|
00000f70  64 64 20 4c 44 41 23 30  3a 53 54 41 26 41 30 30  |dd LDA#0:STA&A00|
00000f80  3a 4c 44 41 23 26 42 3a  53 54 41 26 41 30 31 3a  |:LDA#&B:STA&A01:|
00000f90  53 54 58 65 6e 64 61 64  64 3a 43 50 58 23 31 3a  |STXendadd:CPX#1:|
00000fa0  42 45 51 66 69 6e 64 61  64 64 3a 4c 44 41 23 30  |BEQfindadd:LDA#0|
00000fb0  3a 53 54 41 26 37 32 3a  4c 44 41 23 26 41 3a 53  |:STA&72:LDA#&A:S|
00000fc0  54 41 26 37 33 3a 4c 44  41 26 37 34 3a 53 54 41  |TA&73:LDA&74:STA|
00000fd0  26 37 30 3a 4c 44 41 23  33 3a 53 54 41 65 6e 64  |&70:LDA#3:STAend|
00000fe0  61 64 64 3a 4c 44 41 26  37 35 3a 4c 44 59 23 30  |add:LDA&75:LDY#0|
00000ff0  3a 2e 72 61 6d 20 43 4d  50 23 26 43 30 3a 42 4e  |:.ram CMP#&C0:BN|
00001000  45 6e 6f 31 3a 4c 44 41  23 26 31 44 3a 4a 4d 50  |Eno1:LDA#&1D:JMP|
00001010  73 74 3a 2e 6e 6f 31 20  43 4d 50 23 26 31 44 3a  |st:.no1 CMP#&1D:|
00001020  42 43 53 73 74 3a 43 4d  50 23 39 3a 42 43 43 73  |BCSst:CMP#9:BCCs|
00001030  74 3a 43 4c 43 3a 41 44  43 23 26 41 33 3a 2e 73  |t:CLC:ADC#&A3:.s|
00001040  74 20 53 54 41 26 37 31  0d 00 f0 5e 20 2e 74 72  |t STA&71...^ .tr|
00001050  20 4c 44 41 28 26 37 30  29 2c 59 3a 53 54 41 28  | LDA(&70),Y:STA(|
00001060  26 37 32 29 2c 59 3a 49  4e 43 26 37 32 3a 4c 44  |&72),Y:INC&72:LD|
00001070  41 26 37 32 3a 43 4d 50  23 26 31 32 3a 42 45 51  |A&72:CMP#&12:BEQ|
00001080  65 78 65 63 3a 49 4e 43  26 37 30 3a 42 4e 45 74  |exec:INC&70:BNEt|
00001090  72 3a 49 4e 43 26 37 31  3a 4c 44 41 26 37 31 3a  |r:INC&71:LDA&71:|
000010a0  4a 4d 50 72 61 6d 0d 00  fa 68 20 2e 65 78 65 63  |JMPram...h .exec|
000010b0  20 4c 44 41 23 30 3a 53  54 41 26 41 30 30 3a 4c  | LDA#0:STA&A00:L|
000010c0  44 41 23 26 42 3a 53 54  41 26 41 30 31 3a 4c 44  |DA#&B:STA&A01:LD|
000010d0  41 26 41 30 36 3a 42 4e  45 66 69 6e 64 61 64 64  |A&A06:BNEfindadd|
000010e0  3a 4c 44 41 26 41 30 32  3a 53 54 41 26 37 30 3a  |:LDA&A02:STA&70:|
000010f0  4c 44 41 26 41 30 33 3a  53 54 41 26 37 31 3a 4c  |LDA&A03:STA&71:L|
00001100  44 41 23 32 3a 53 54 41  65 6e 64 61 64 64 0d 01  |DA#2:STAendadd..|
00001110  04 bd 20 2e 66 69 6e 64  61 64 64 20 4c 44 41 23  |.. .findadd LDA#|
00001120  35 3a 4c 44 58 23 30 3a  4c 44 59 23 26 41 3a 4a  |5:LDX#0:LDY#&A:J|
00001130  53 52 4f 53 46 49 4c 45  3a 43 4d 50 23 31 3a 42  |SROSFILE:CMP#1:B|
00001140  45 51 72 75 6e 3a 4a 4d  50 65 72 72 6f 72 31 3a  |EQrun:JMPerror1:|
00001150  2e 72 75 6e 20 4c 44 58  65 6e 64 61 64 64 3a 43  |.run LDXendadd:C|
00001160  50 58 23 31 3a 42 4e 45  6c 61 64 64 72 3a 50 4c  |PX#1:BNEladdr:PL|
00001170  41 3a 53 54 41 26 37 32  3a 4c 44 58 26 41 30 36  |A:STA&72:LDX&A06|
00001180  3a 4c 44 59 26 41 30 37  3a 44 45 58 3a 43 50 58  |:LDY&A07:DEX:CPX|
00001190  23 26 46 46 3a 42 4e 45  73 74 61 63 6b 3a 44 45  |#&FF:BNEstack:DE|
000011a0  59 3a 2e 73 74 61 63 6b  20 54 59 41 3a 50 48 41  |Y:.stack TYA:PHA|
000011b0  3a 54 58 41 3a 50 48 41  3a 4c 44 41 26 37 32 3a  |:TXA:PHA:LDA&72:|
000011c0  50 48 41 3a 4a 4d 50 6f  70 65 6e 0d 01 0e 90 20  |PHA:JMPopen.... |
000011d0  2e 6c 61 64 64 72 20 43  50 58 23 32 3a 42 4e 45  |.laddr CPX#2:BNE|
000011e0  6f 70 65 6e 3a 4c 44 41  26 37 30 3a 53 54 41 26  |open:LDA&70:STA&|
000011f0  41 30 32 3a 4c 44 41 26  37 31 3a 53 54 41 26 41  |A02:LDA&71:STA&A|
00001200  30 33 3a 2e 6f 70 65 6e  20 43 4c 43 3a 4c 44 41  |03:.open CLC:LDA|
00001210  26 41 30 32 3a 41 44 43  26 41 30 41 3a 53 54 41  |&A02:ADC&A0A:STA|
00001220  26 41 32 30 3a 4c 44 41  26 41 30 33 3a 41 44 43  |&A20:LDA&A03:ADC|
00001230  26 41 30 42 3a 53 54 41  26 41 32 31 3a 4c 44 41  |&A0B:STA&A21:LDA|
00001240  23 26 34 30 3a 4c 44 58  23 30 3a 4c 44 59 23 26  |#&40:LDX#0:LDY#&|
00001250  42 3a 4a 53 52 4f 53 46  49 4e 44 0d 01 18 78 20  |B:JSROSFIND...x |
00001260  2e 6c 6f 61 64 32 20 53  54 41 26 41 38 30 3a 4c  |.load2 STA&A80:L|
00001270  44 41 23 26 46 46 3a 53  54 41 26 41 38 33 3a 53  |DA#&FF:STA&A83:S|
00001280  54 41 26 41 38 34 3a 4c  44 41 23 30 3a 53 54 41  |TA&A84:LDA#0:STA|
00001290  26 41 38 37 3a 53 54 41  26 41 38 38 3a 4c 44 41  |&A87:STA&A88:LDA|
000012a0  26 41 30 32 3a 53 54 41  26 41 38 31 3a 4c 44 41  |&A02:STA&A81:LDA|
000012b0  26 41 30 33 3a 53 54 41  26 41 38 32 3a 2e 6c 64  |&A03:STA&A82:.ld|
000012c0  6c 6f 6f 70 20 4c 44 41  23 30 3a 53 54 41 26 41  |loop LDA#0:STA&A|
000012d0  38 36 3a 0d 01 1d 84 20  4c 44 41 26 41 38 32 3a  |86:.... LDA&A82:|
000012e0  43 4d 50 26 41 32 31 3a  42 45 51 6c 61 73 74 3a  |CMP&A21:BEQlast:|
000012f0  4c 44 41 26 41 38 31 3a  42 4e 45 6e 6f 74 77 68  |LDA&A81:BNEnotwh|
00001300  6f 6c 65 3a 49 4e 43 26  41 38 36 3a 2e 6e 6f 74  |ole:INC&A86:.not|
00001310  77 68 6f 6c 65 20 4c 44  41 23 30 3a 42 45 51 73  |whole LDA#0:BEQs|
00001320  74 6f 72 65 32 3a 2e 6c  61 73 74 20 4c 44 41 26  |tore2:.last LDA&|
00001330  41 32 30 3a 2e 73 74 6f  72 65 32 20 53 54 41 26  |A20:.store2 STA&|
00001340  41 32 33 3a 53 45 43 3a  53 42 43 26 41 38 31 3a  |A23:SEC:SBC&A81:|
00001350  53 54 41 26 41 38 35 0d  01 22 8e 20 4c 44 58 23  |STA&A85..". LDX#|
00001360  26 38 30 3a 4c 44 59 23  26 41 3a 4c 44 41 26 41  |&80:LDY#&A:LDA&A|
00001370  38 32 3a 43 4d 50 23 39  3a 42 43 43 6e 6f 72 6d  |82:CMP#9:BCCnorm|
00001380  3a 43 4d 50 23 26 31 44  3a 42 43 53 6e 6f 72 6d  |:CMP#&1D:BCSnorm|
00001390  3a 43 4c 43 3a 41 44 43  23 26 41 33 3a 53 54 41  |:CLC:ADC#&A3:STA|
000013a0  26 37 33 3a 4c 44 41 23  26 43 3a 53 54 41 26 41  |&73:LDA#&C:STA&A|
000013b0  38 32 3a 53 54 41 26 37  31 3a 4c 44 41 23 34 3a  |82:STA&71:LDA#4:|
000013c0  4a 53 52 4f 53 47 42 50  42 3a 4c 44 41 23 30 3a  |JSROSGBPB:LDA#0:|
000013d0  53 54 41 26 37 30 3a 53  54 41 26 37 32 3a 4c 44  |STA&70:STA&72:LD|
000013e0  59 26 41 38 31 0d 01 27  6b 20 2e 74 72 61 6e 6c  |Y&A81..'k .tranl|
000013f0  6f 6f 70 20 4c 44 41 28  26 37 30 29 2c 59 3a 53  |oop LDA(&70),Y:S|
00001400  54 41 28 26 37 32 29 2c  59 3a 49 4e 59 3a 43 50  |TA(&72),Y:INY:CP|
00001410  59 26 41 32 33 3a 42 4e  45 74 72 61 6e 6c 6f 6f  |Y&A23:BNEtranloo|
00001420  70 3a 4c 44 41 26 37 33  3a 53 45 43 3a 53 42 43  |p:LDA&73:SEC:SBC|
00001430  23 26 41 33 3a 53 54 41  26 41 38 32 3a 49 4e 43  |#&A3:STA&A82:INC|
00001440  26 41 38 32 3a 4a 4d 50  6e 65 78 74 70 61 67 65  |&A82:JMPnextpage|
00001450  0d 01 2c 88 20 2e 6e 6f  72 6d 20 4c 44 41 23 34  |..,. .norm LDA#4|
00001460  3a 4a 53 52 4f 53 47 42  50 42 3a 2e 6e 65 78 74  |:JSROSGBPB:.next|
00001470  70 61 67 65 20 4c 44 41  26 41 38 32 3a 43 4d 50  |page LDA&A82:CMP|
00001480  26 41 32 31 3a 42 4e 45  62 61 63 6b 3a 4c 44 41  |&A21:BNEback:LDA|
00001490  26 41 38 31 3a 43 4d 50  26 41 32 30 3a 42 45 51  |&A81:CMP&A20:BEQ|
000014a0  65 6e 64 6c 6f 61 64 3a  2e 62 61 63 6b 20 4a 4d  |endload:.back JM|
000014b0  50 6c 64 6c 6f 6f 70 3a  2e 65 6e 64 6c 6f 61 64  |Pldloop:.endload|
000014c0  20 4c 44 41 23 30 3a 4c  44 59 26 41 38 30 3a 4a  | LDA#0:LDY&A80:J|
000014d0  53 52 4f 53 46 49 4e 44  0d 01 36 97 20 2e 65 6e  |SROSFIND..6. .en|
000014e0  64 20 4c 44 41 23 30 3a  53 54 41 26 37 30 3a 53  |d LDA#0:STA&70:S|
000014f0  54 41 26 37 32 3a 4c 44  41 23 39 3a 53 54 41 26  |TA&72:LDA#9:STA&|
00001500  37 31 3a 4c 44 41 23 26  38 39 3a 53 54 41 26 37  |71:LDA#&89:STA&7|
00001510  33 3a 4c 44 41 23 26 31  44 3a 53 54 41 65 6e 64  |3:LDA#&1D:STAend|
00001520  61 64 64 3a 4c 44 59 23  30 3a 4a 53 52 6d 6f 76  |add:LDY#0:JSRmov|
00001530  65 6c 6f 6f 70 3a 4c 44  41 23 26 41 43 3a 53 54  |eloop:LDA#&AC:ST|
00001540  41 26 37 31 3a 4c 44 41  23 39 3a 53 54 41 26 37  |A&71:LDA#9:STA&7|
00001550  33 3a 4c 44 41 23 26 43  30 3a 53 54 41 65 6e 64  |3:LDA#&C0:STAend|
00001560  61 64 64 3a 4a 53 52 6d  6f 76 65 6c 6f 6f 70 0d  |add:JSRmoveloop.|
00001570  01 40 df 20 2e 72 65 74  20 4a 53 52 76 65 63 74  |.@. .ret JSRvect|
00001580  6f 72 73 32 3a 4a 4d 50  76 61 72 73 3a 5d 3a 76  |ors2:JMPvars:]:v|
00001590  65 63 74 6f 72 73 3d 4f  25 3a 5b 4f 50 54 70 61  |ectors=O%:[OPTpa|
000015a0  73 73 2b 34 3a 2e 76 65  63 74 6f 72 73 32 20 4c  |ss+4:.vectors2 L|
000015b0  44 41 23 28 4f 42 72 6f  75 74 69 6e 65 20 83 32  |DA#(OBroutine .2|
000015c0  35 36 29 3a 53 54 41 26  32 30 41 3a 4c 44 41 23  |56):STA&20A:LDA#|
000015d0  28 4f 42 72 6f 75 74 69  6e 65 20 81 32 35 36 29  |(OBroutine .256)|
000015e0  3a 53 54 41 26 32 30 42  3a 4c 44 41 23 28 4f 46  |:STA&20B:LDA#(OF|
000015f0  49 4c 45 20 83 32 35 36  29 3a 53 54 41 26 32 31  |ILE .256):STA&21|
00001600  32 3a 4c 44 41 23 28 4f  46 49 4c 45 20 81 32 35  |2:LDA#(OFILE .25|
00001610  36 29 3a 53 54 41 26 32  31 33 3a 4c 44 41 23 28  |6):STA&213:LDA#(|
00001620  4f 46 53 43 20 83 32 35  36 29 3a 53 54 41 26 32  |OFSC .256):STA&2|
00001630  31 45 3a 4c 44 41 23 28  4f 46 53 43 20 81 32 35  |1E:LDA#(OFSC .25|
00001640  36 29 3a 53 54 41 26 32  31 46 3a 52 54 53 0d 01  |6):STA&21F:RTS..|
00001650  4a 6a 20 2e 76 61 72 73  20 4c 44 59 26 37 35 3a  |Jj .vars LDY&75:|
00001660  4c 44 58 26 37 34 3a 53  54 58 65 6e 64 61 64 64  |LDX&74:STXendadd|
00001670  3a 4c 44 58 23 30 3a 2e  6c 6f 61 64 76 61 72 73  |:LDX#0:.loadvars|
00001680  20 4c 44 41 74 65 6d 70  73 74 6f 72 65 2c 58 3a  | LDAtempstore,X:|
00001690  53 54 41 26 37 30 2c 58  3a 49 4e 58 3a 43 50 58  |STA&70,X:INX:CPX|
000016a0  23 36 3a 42 4e 45 6c 6f  61 64 76 61 72 73 3a 4c  |#6:BNEloadvars:L|
000016b0  44 58 65 6e 64 61 64 64  0d 01 4f 73 20 53 45 49  |DXendadd..Os SEI|
000016c0  3a 4c 44 41 69 6e 74 65  72 6e 65 77 4c 4f 3a 53  |:LDAinternewLO:S|
000016d0  54 41 26 32 30 34 3a 4c  44 41 69 6e 74 65 72 6e  |TA&204:LDAintern|
000016e0  65 77 48 49 3a 53 54 41  26 32 30 35 3a 43 4c 49  |ewHI:STA&205:CLI|
000016f0  3a 4c 44 41 73 74 61 74  75 73 3a 50 48 41 3a 50  |:LDAstatus:PHA:P|
00001700  4c 50 3a 4c 44 41 23 30  3a 53 54 41 26 46 43 44  |LP:LDA#0:STA&FCD|
00001710  44 3a 4a 4d 50 20 42 41  43 4b 2d 28 6f 73 62 79  |D:JMP BACK-(osby|
00001720  74 65 2d 62 61 6e 6b 31  2d 31 29 0d 01 54 c1 20  |te-bank1-1)..T. |
00001730  2e 66 73 63 72 6f 75 74  20 50 4c 41 3a 50 48 41  |.fscrout PLA:PHA|
00001740  3a 42 45 51 72 65 74 3a  43 4d 50 23 34 3a 42 45  |:BEQret:CMP#4:BE|
00001750  51 66 73 63 3a 43 4d 50  23 32 3a 42 45 51 66 73  |Qfsc:CMP#2:BEQfs|
00001760  63 3a 4a 53 52 6f 6c 64  4f 53 46 53 43 3a 4c 44  |c:JSRoldOSFSC:LD|
00001770  41 26 37 30 3a 53 54 41  26 31 30 44 35 3a 4c 44  |A&70:STA&10D5:LD|
00001780  41 26 37 31 3a 53 54 41  26 44 43 43 3a 4c 44 41  |A&71:STA&DCC:LDA|
00001790  26 37 32 3a 53 54 41 26  44 43 44 3a 4c 44 41 26  |&72:STA&DCD:LDA&|
000017a0  37 33 3a 53 54 41 26 44  43 45 3a 4a 4d 50 72 65  |73:STA&DCE:JMPre|
000017b0  74 3a 2e 66 73 63 20 4c  44 41 26 37 34 3a 53 54  |t:.fsc LDA&74:ST|
000017c0  41 26 37 30 3a 4c 44 41  26 37 35 3a 53 54 41 26  |A&70:LDA&75:STA&|
000017d0  37 31 3a 4a 53 52 66 69  6c 65 6e 61 6d 65 3a 4c  |71:JSRfilename:L|
000017e0  44 58 23 31 3a 4a 4d 50  6c 6f 61 64 0d 01 59 8e  |DX#1:JMPload..Y.|
000017f0  20 2e 6f 6c 64 4f 53 46  53 43 20 4c 44 41 26 31  | .oldOSFSC LDA&1|
00001800  30 44 35 3a 53 54 41 26  37 30 3a 4c 44 41 26 44  |0D5:STA&70:LDA&D|
00001810  43 43 3a 53 54 41 26 37  31 3a 4c 44 41 26 44 43  |CC:STA&71:LDA&DC|
00001820  44 3a 53 54 41 26 37 32  3a 4c 44 41 26 44 43 45  |D:STA&72:LDA&DCE|
00001830  3a 53 54 41 26 37 33 3a  4c 44 41 23 26 36 30 3a  |:STA&73:LDA#&60:|
00001840  53 54 41 26 44 43 43 3a  4c 44 41 23 26 39 45 3a  |STA&DCC:LDA#&9E:|
00001850  53 54 41 26 44 43 44 3a  4c 44 41 23 34 3a 53 54  |STA&DCD:LDA#4:ST|
00001860  41 26 44 43 45 3a 50 4c  41 3a 50 48 41 3a 4a 4d  |A&DCE:PLA:PHA:JM|
00001870  50 28 6f 73 66 73 63 4c  4f 29 0d 01 5e cd 20 2e  |P(osfscLO)..^. .|
00001880  66 69 6c 65 6e 61 6d 65  20 4c 44 59 23 30 3a 4c  |filename LDY#0:L|
00001890  44 41 28 26 37 30 29 2c  59 3a 43 4d 50 23 26 44  |DA(&70),Y:CMP#&D|
000018a0  3a 42 45 51 6e 61 6d 65  3a 43 4d 50 23 26 32 30  |:BEQname:CMP#&20|
000018b0  3a 42 45 51 6e 61 6d 65  3a 4a 4d 50 6e 6f 74 7a  |:BEQname:JMPnotz|
000018c0  65 72 6f 3a 2e 6e 61 6d  65 20 4c 44 41 6e 61 6d  |ero:.name LDAnam|
000018d0  65 4c 4f 3a 53 54 41 26  37 30 3a 53 54 41 26 37  |eLO:STA&70:STA&7|
000018e0  32 3a 4c 44 41 6e 61 6d  65 48 49 3a 53 54 41 26  |2:LDAnameHI:STA&|
000018f0  37 31 3a 53 54 41 26 37  33 3a 4c 44 41 28 26 37  |71:STA&73:LDA(&7|
00001900  30 29 2c 59 3a 43 4d 50  23 30 3a 42 4e 45 6f 6b  |0),Y:CMP#0:BNEok|
00001910  32 3a 50 4c 41 3a 50 4c  41 3a 4a 4d 50 65 72 72  |2:PLA:PLA:JMPerr|
00001920  6f 72 32 3a 2e 6f 6b 32  20 4c 44 41 28 26 37 32  |or2:.ok2 LDA(&72|
00001930  29 2c 59 3a 49 4e 43 26  37 32 3a 42 4e 45 6e 6f  |),Y:INC&72:BNEno|
00001940  3a 49 4e 43 26 37 33 0d  01 68 e9 20 2e 6e 6f 20  |:INC&73..h. .no |
00001950  43 4d 50 23 26 44 3a 42  4e 45 6f 6b 32 3a 4c 44  |CMP#&D:BNEok2:LD|
00001960  41 26 37 32 3a 53 54 41  6e 61 6d 65 4c 4f 3a 4c  |A&72:STAnameLO:L|
00001970  44 41 26 37 33 3a 53 54  41 6e 61 6d 65 48 49 3a  |DA&73:STAnameHI:|
00001980  2e 6e 6f 74 7a 65 72 6f  20 4c 44 41 23 30 3a 53  |.notzero LDA#0:S|
00001990  54 41 26 37 32 3a 4c 44  41 23 26 38 42 3a 53 54  |TA&72:LDA#&8B:ST|
000019a0  41 26 37 33 3a 2e 74 72  61 6e 73 6c 6f 6f 70 20  |A&73:.transloop |
000019b0  4c 44 41 28 26 37 30 29  2c 59 3a 53 54 41 28 26  |LDA(&70),Y:STA(&|
000019c0  37 32 29 2c 59 3a 43 4d  50 23 26 44 3a 42 45 51  |72),Y:CMP#&D:BEQ|
000019d0  65 6e 64 66 69 6c 65 3a  43 4d 50 23 26 32 30 3a  |endfile:CMP#&20:|
000019e0  42 4e 45 63 6f 6e 74 66  69 6c 65 3a 4c 44 41 23  |BNEcontfile:LDA#|
000019f0  26 44 3a 53 54 41 28 26  37 32 29 2c 59 3a 42 4e  |&D:STA(&72),Y:BN|
00001a00  45 65 6e 64 66 69 6c 65  3a 2e 63 6f 6e 74 66 69  |Eendfile:.contfi|
00001a10  6c 65 20 49 4e 59 3a 4a  4d 50 74 72 61 6e 73 6c  |le INY:JMPtransl|
00001a20  6f 6f 70 3a 2e 65 6e 64  66 69 6c 65 20 52 54 53  |oop:.endfile RTS|
00001a30  0d 01 72 d1 20 2e 65 72  72 6f 72 31 20 4c 44 41  |..r. .error1 LDA|
00001a40  23 28 6e 6f 74 66 6f 75  6e 64 20 83 32 35 36 29  |#(notfound .256)|
00001a50  3a 53 54 41 26 37 30 3a  4c 44 41 23 28 6e 6f 74  |:STA&70:LDA#(not|
00001a60  66 6f 75 6e 64 20 81 32  35 36 29 3a 53 54 41 26  |found .256):STA&|
00001a70  37 31 3a 4a 4d 50 65 72  72 6f 72 3a 2e 65 72 72  |71:JMPerror:.err|
00001a80  6f 72 32 20 4c 44 41 23  28 6e 6f 6d 6f 72 65 20  |or2 LDA#(nomore |
00001a90  83 32 35 36 29 3a 53 54  41 26 37 30 3a 4c 44 41  |.256):STA&70:LDA|
00001aa0  23 28 6e 6f 6d 6f 72 65  20 81 32 35 36 29 3a 53  |#(nomore .256):S|
00001ab0  54 41 26 37 31 3a 2e 65  72 72 6f 72 20 4c 44 59  |TA&71:.error LDY|
00001ac0  23 30 3a 2e 70 72 69 6e  74 6c 6f 6f 70 20 4c 44  |#0:.printloop LD|
00001ad0  41 28 26 37 30 29 2c 59  3a 49 4e 59 3a 4a 53 52  |A(&70),Y:INY:JSR|
00001ae0  4f 53 41 53 43 49 3a 43  4d 50 23 26 44 3a 42 4e  |OSASCI:CMP#&D:BN|
00001af0  45 70 72 69 6e 74 6c 6f  6f 70 3a 4a 4d 50 72 65  |Eprintloop:JMPre|
00001b00  74 0d 01 7c e6 20 2e 6e  6f 74 66 6f 75 6e 64 20  |t..|. .notfound |
00001b10  45 51 55 53 22 4e 6f 74  20 66 6f 75 6e 64 22 3a  |EQUS"Not found":|
00001b20  45 51 55 42 31 33 3a 2e  6e 6f 6d 6f 72 65 20 45  |EQUB13:.nomore E|
00001b30  51 55 53 22 4e 6f 20 6d  6f 72 65 20 66 69 6c 65  |QUS"No more file|
00001b40  6e 61 6d 65 73 22 3a 45  51 55 42 31 33 3a 2e 6e  |names":EQUB13:.n|
00001b50  61 6d 65 4c 4f 20 45 51  55 42 6e 61 6d 65 73 20  |ameLO EQUBnames |
00001b60  83 32 35 36 3a 2e 6e 61  6d 65 48 49 20 45 51 55  |.256:.nameHI EQU|
00001b70  42 6e 61 6d 65 73 20 81  32 35 36 3a 2e 65 6e 64  |Bnames .256:.end|
00001b80  61 64 64 20 45 51 55 42  30 3a 2e 6f 73 66 69 6c  |add EQUB0:.osfil|
00001b90  65 4c 4f 20 45 51 55 42  30 3a 2e 6f 73 66 69 6c  |eLO EQUB0:.osfil|
00001ba0  65 48 49 20 45 51 55 42  30 3a 2e 6f 73 66 73 63  |eHI EQUB0:.osfsc|
00001bb0  4c 4f 20 45 51 55 42 30  3a 2e 6f 73 66 73 63 48  |LO EQUB0:.osfscH|
00001bc0  49 20 45 51 55 42 30 3a  2e 6f 73 62 79 74 65 4c  |I EQUB0:.osbyteL|
00001bd0  4f 20 45 51 55 42 30 3a  2e 6f 73 62 79 74 65 48  |O EQUB0:.osbyteH|
00001be0  49 20 45 51 55 42 30 0d  01 7e 54 20 2e 69 6e 74  |I EQUB0..~T .int|
00001bf0  65 72 4c 4f 20 45 51 55  42 30 3a 2e 69 6e 74 65  |erLO EQUB0:.inte|
00001c00  72 48 49 20 45 51 55 42  30 3a 2e 69 6e 74 65 72  |rHI EQUB0:.inter|
00001c10  6e 65 77 4c 4f 20 45 51  55 42 30 3a 2e 69 6e 74  |newLO EQUB0:.int|
00001c20  65 72 6e 65 77 48 49 20  45 51 55 42 30 3a 2e 73  |ernewHI EQUB0:.s|
00001c30  74 61 74 75 73 20 45 51  55 42 30 0d 01 81 53 20  |tatus EQUB0...S |
00001c40  2e 74 65 6d 70 73 74 6f  72 65 20 45 51 55 44 30  |.tempstore EQUD0|
00001c50  3a 45 51 55 57 30 3a 2e  6e 61 6d 65 73 3a 5d 3a  |:EQUW0:.names:]:|
00001c60  24 4f 25 3d 66 69 6c 65  6e 61 6d 65 73 24 3a 4f  |$O%=filenames$:O|
00001c70  25 3d 4f 25 2b a9 28 66  69 6c 65 6e 61 6d 65 73  |%=O%+.(filenames|
00001c80  24 29 2b 31 3a 3f 28 4f  25 2d 31 29 3d 30 0d 01  |$)+1:?(O%-1)=0..|
00001c90  86 ca 20 62 61 6e 6b 31  3d 4f 25 3a 5b 4f 50 54  |.. bank1=O%:[OPT|
00001ca0  70 61 73 73 2b 34 3a 4c  44 41 23 30 3a 53 54 41  |pass+4:LDA#0:STA|
00001cb0  26 46 34 3a 53 54 41 26  46 45 30 35 3a 5d 3a 50  |&F4:STA&FE05:]:P|
00001cc0  25 3d 4f 25 3a 5b 4f 50  54 70 61 73 73 2b 34 3a  |%=O%:[OPTpass+4:|
00001cd0  52 54 53 3a 5d 3a 6f 73  62 79 74 65 3d 4f 25 3a  |RTS:]:osbyte=O%:|
00001ce0  50 25 3d 4f 42 72 6f 75  74 69 6e 65 3a 5b 4f 50  |P%=OBroutine:[OP|
00001cf0  54 70 61 73 73 2b 34 3a  43 4d 50 23 31 34 30 3a  |Tpass+4:CMP#140:|
00001d00  42 45 51 74 61 70 65 3a  50 48 41 3a 4c 44 41 4f  |BEQtape:PHA:LDAO|
00001d10  42 72 6f 75 74 32 2b 38  3a 53 54 41 26 32 30 41  |Brout2+8:STA&20A|
00001d20  3a 4a 4d 50 4f 42 72 6f  75 74 32 3a 2e 74 61 70  |:JMPOBrout2:.tap|
00001d30  65 20 52 54 53 3a 5d 3a  6f 73 62 79 74 65 32 3d  |e RTS:]:osbyte2=|
00001d40  4f 25 3a 50 25 3d 4f 42  72 6f 75 74 32 3a 5b 4f  |O%:P%=OBrout2:[O|
00001d50  50 54 70 61 73 73 2b 34  0d 01 8b a0 20 4c 44 41  |PTpass+4.... LDA|
00001d60  4f 42 72 6f 75 74 32 2b  39 3a 53 54 41 26 32 30  |OBrout2+9:STA&20|
00001d70  42 3a 50 4c 41 3a 4a 53  52 26 30 30 30 30 3a 4a  |B:PLA:JSR&0000:J|
00001d80  4d 50 4f 42 72 6f 75 74  33 3a 5d 3a 6f 73 62 79  |MPOBrout3:]:osby|
00001d90  74 65 33 3d 4f 25 3a 50  25 3d 4f 42 72 6f 75 74  |te3=O%:P%=OBrout|
00001da0  33 3a 5b 4f 50 54 70 61  73 73 2b 34 3a 50 48 41  |3:[OPTpass+4:PHA|
00001db0  3a 4c 44 41 23 28 4f 42  72 6f 75 74 69 6e 65 20  |:LDA#(OBroutine |
00001dc0  83 32 35 36 29 3a 53 54  41 26 32 30 41 3a 4c 44  |.256):STA&20A:LD|
00001dd0  41 23 28 4f 42 72 6f 75  74 69 6e 65 20 81 32 35  |A#(OBroutine .25|
00001de0  36 29 3a 53 54 41 26 32  30 42 3a 50 4c 41 3a 4a  |6):STA&20B:PLA:J|
00001df0  4d 50 74 61 70 65 3a 5d  0d 01 90 bd 20 66 69 6c  |MPtape:].... fil|
00001e00  65 3d 4f 25 3a 50 25 3d  4f 46 49 4c 45 3a 5b 4f  |e=O%:P%=OFILE:[O|
00001e10  50 54 70 61 73 73 2b 34  3a 43 4c 43 3a 42 43 43  |PTpass+4:CLC:BCC|
00001e20  6f 66 3a 2e 4f 46 53 43  20 53 45 43 3a 2e 6f 66  |of:.OFSC SEC:.of|
00001e30  20 50 48 41 3a 5d 3a 62  61 6e 6b 32 3d 4f 25 3a  | PHA:]:bank2=O%:|
00001e40  5b 4f 50 54 70 61 73 73  2b 34 3a 4c 44 41 23 30  |[OPTpass+4:LDA#0|
00001e50  3a 53 54 41 26 46 34 3a  53 54 41 26 46 45 30 35  |:STA&F4:STA&FE05|
00001e60  3a 2e 65 6e 74 65 72 3a  5d 3a 50 25 3d 4f 25 3a  |:.enter:]:P%=O%:|
00001e70  5b 4f 50 54 70 61 73 73  2b 34 3a 52 54 53 3a 5d  |[OPTpass+4:RTS:]|
00001e80  3a 66 69 6c 65 72 65 74  3d 4f 25 3a 50 25 3d 42  |:fileret=O%:P%=B|
00001e90  41 43 4b 3a 5b 4f 50 54  70 61 73 73 2b 34 3a 50  |ACK:[OPTpass+4:P|
00001ea0  4c 41 3a 52 54 53 3a 5d  3a 66 72 65 74 65 6e 64  |LA:RTS:]:fretend|
00001eb0  3d 4f 25 3a ed 0d 01 9a  39 20 f1 22 53 61 76 65  |=O%:....9 ."Save|
00001ec0  20 28 59 2f 4e 29 3f 22  3a 41 24 3d be 3a e7 20  | (Y/N)?":A$=.:. |
00001ed0  41 24 3d 22 59 22 20 8c  20 ff 22 53 41 56 45 20  |A$="Y" . ."SAVE |
00001ee0  44 4c 20 32 30 30 30 20  22 2b c3 7e 4f 25 0d ff  |DL 2000 "+.~O%..|
00001ef0
Dloader12.m0
Dloader12.m1
Dloader12.m2
Dloader12.m4
Dloader12.m5