Home » Personal collection » Acorn ADFS disks » Electron » Electron_disk_loader_B.ADF » Dloader11

Dloader11

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_B.ADF
Filename: Dloader11
Read OK:
File size: 1E67 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:OSBGET=&FFD7: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 LDA#0:STAflag:LDA&205:CMP#8:BCCleave:CMP#&1D:BCSleave:LDA#1:STAflag: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: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
  335 LDAflag:BEQleave2:SEI:LDAinternewLO:STA&204:LDAinternewHI:STA&205:CLI:.leave2 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:.flag 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:OSBGET=&FFD7: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
�� LDA#0:STAflag:LDA&205:CMP#8:BCCleave:CMP#&1D:BCSleave:LDA#1:STAflag: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: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
Jj .vars LDY&75:LDX&74:STXendadd:LDX#0:.loadvars LDAtempstore,X:STA&70,X:INX:CPX#6:BNEloadvars:LDXendadd
O� LDAflag:BEQleave2:SEI:LDAinternewLO:STA&204:LDAinternewHI:STA&205:CLI:.leave2 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
~` .interLO EQUB0:.interHI EQUB0:.internewLO EQUB0:.internewHI EQUB0:.status EQUB0:.flag 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  42 47 45 54 3d 26 46 46  44 37 3a 4f 53 46 49 4e  |BGET=&FFD7: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 a2 20 4c 44 41  |:STA&20B.... LDA|
00000d20  23 30 3a 53 54 41 66 6c  61 67 3a 4c 44 41 26 32  |#0:STAflag:LDA&2|
00000d30  30 35 3a 43 4d 50 23 38  3a 42 43 43 6c 65 61 76  |05:CMP#8:BCCleav|
00000d40  65 3a 43 4d 50 23 26 31  44 3a 42 43 53 6c 65 61  |e:CMP#&1D:BCSlea|
00000d50  76 65 3a 4c 44 41 23 31  3a 53 54 41 66 6c 61 67  |ve:LDA#1:STAflag|
00000d60  3a 53 45 49 3a 4c 44 41  26 32 30 34 3a 53 54 41  |:SEI:LDA&204:STA|
00000d70  69 6e 74 65 72 6e 65 77  4c 4f 3a 4c 44 41 26 32  |internewLO:LDA&2|
00000d80  30 35 3a 53 54 41 69 6e  74 65 72 6e 65 77 48 49  |05:STAinternewHI|
00000d90  3a 4c 44 41 69 6e 74 65  72 4c 4f 3a 53 54 41 26  |:LDAinterLO:STA&|
00000da0  32 30 34 3a 4c 44 41 69  6e 74 65 72 48 49 3a 53  |204:LDAinterHI:S|
00000db0  54 41 26 32 30 35 3a 43  4c 49 0d 00 c3 7f 20 53  |TA&205:CLI.... S|
00000dc0  54 58 65 6e 64 61 64 64  3a 4c 44 58 23 30 3a 2e  |TXendadd:LDX#0:.|
00000dd0  73 61 76 65 76 61 72 73  20 4c 44 41 26 37 30 2c  |savevars LDA&70,|
00000de0  58 3a 53 54 41 74 65 6d  70 73 74 6f 72 65 2c 58  |X:STAtempstore,X|
00000df0  3a 49 4e 58 3a 43 50 58  23 36 3a 42 4e 45 73 61  |:INX:CPX#6:BNEsa|
00000e00  76 65 76 61 72 73 3a 53  54 59 26 37 35 3a 4c 44  |vevars:STY&75:LD|
00000e10  58 65 6e 64 61 64 64 3a  53 54 58 26 37 34 3a 50  |Xendadd:STX&74:P|
00000e20  4c 41 3a 42 45 51 66 69  6c 65 72 6f 75 74 3a 4a  |LA:BEQfilerout:J|
00000e30  4d 50 66 73 63 72 6f 75  74 0d 00 c8 64 20 2e 66  |MPfscrout...d .f|
00000e40  69 6c 65 72 6f 75 74 20  50 4c 41 3a 4c 44 41 23  |ilerout PLA:LDA#|
00000e50  31 3a 50 48 41 3a 4c 44  59 23 30 3a 4c 44 41 28  |1:PHA:LDY#0:LDA(|
00000e60  26 37 34 29 2c 59 3a 54  41 58 3a 49 4e 59 3a 4c  |&74),Y:TAX:INY:L|
00000e70  44 41 28 26 37 34 29 2c  59 3a 53 54 58 26 37 30  |DA(&74),Y:STX&70|
00000e80  3a 53 54 41 26 37 31 3a  44 45 59 3a 4a 53 52 66  |:STA&71:DEY:JSRf|
00000e90  69 6c 65 6e 61 6d 65 3a  4c 44 58 23 30 0d 00 d2  |ilename:LDX#0...|
00000ea0  a9 20 2e 6c 6f 61 64 20  4c 44 41 23 30 3a 53 54  |. .load LDA#0:ST|
00000eb0  41 26 37 30 3a 53 54 41  26 37 32 3a 4c 44 41 23  |A&70:STA&72:LDA#|
00000ec0  39 3a 53 54 41 26 37 31  3a 4c 44 41 23 26 41 43  |9:STA&71:LDA#&AC|
00000ed0  3a 53 54 41 26 37 33 3a  4c 44 41 23 26 31 44 3a  |:STA&73:LDA#&1D:|
00000ee0  53 54 41 65 6e 64 61 64  64 3a 4c 44 59 23 30 3a  |STAendadd:LDY#0:|
00000ef0  4a 53 52 6d 6f 76 65 6c  6f 6f 70 3a 4c 44 41 23  |JSRmoveloop:LDA#|
00000f00  26 38 39 3a 53 54 41 26  37 31 3a 4c 44 41 23 39  |&89:STA&71:LDA#9|
00000f10  3a 53 54 41 26 37 33 3a  4c 44 41 23 26 39 44 3a  |:STA&73:LDA#&9D:|
00000f20  53 54 41 65 6e 64 61 64  64 3a 4c 44 59 23 30 3a  |STAendadd:LDY#0:|
00000f30  4a 53 52 6d 6f 76 65 6c  6f 6f 70 3a 4a 4d 50 6c  |JSRmoveloop:JMPl|
00000f40  6f 61 64 61 64 64 0d 00  dc 63 20 2e 6d 6f 76 65  |oadadd...c .move|
00000f50  6c 6f 6f 70 20 4c 44 41  28 26 37 30 29 2c 59 3a  |loop LDA(&70),Y:|
00000f60  53 54 41 28 26 37 32 29  2c 59 3a 49 4e 59 3a 42  |STA(&72),Y:INY:B|
00000f70  4e 45 6d 6f 76 65 6c 6f  6f 70 3a 49 4e 43 26 37  |NEmoveloop:INC&7|
00000f80  31 3a 49 4e 43 26 37 33  3a 4c 44 41 26 37 31 3a  |1:INC&73:LDA&71:|
00000f90  43 4d 50 65 6e 64 61 64  64 3a 42 4e 45 6d 6f 76  |CMPendadd:BNEmov|
00000fa0  65 6c 6f 6f 70 3a 52 54  53 0d 00 e6 e3 20 2e 6c  |eloop:RTS.... .l|
00000fb0  6f 61 64 61 64 64 20 4c  44 41 23 30 3a 53 54 41  |oadadd LDA#0:STA|
00000fc0  26 41 30 30 3a 4c 44 41  23 26 42 3a 53 54 41 26  |&A00:LDA#&B:STA&|
00000fd0  41 30 31 3a 53 54 58 65  6e 64 61 64 64 3a 43 50  |A01:STXendadd:CP|
00000fe0  58 23 31 3a 42 45 51 66  69 6e 64 61 64 64 3a 4c  |X#1:BEQfindadd:L|
00000ff0  44 41 23 30 3a 53 54 41  26 37 32 3a 4c 44 41 23  |DA#0:STA&72:LDA#|
00001000  26 41 3a 53 54 41 26 37  33 3a 4c 44 41 26 37 34  |&A:STA&73:LDA&74|
00001010  3a 53 54 41 26 37 30 3a  4c 44 41 23 33 3a 53 54  |:STA&70:LDA#3:ST|
00001020  41 65 6e 64 61 64 64 3a  4c 44 41 26 37 35 3a 4c  |Aendadd:LDA&75:L|
00001030  44 59 23 30 3a 2e 72 61  6d 20 43 4d 50 23 26 43  |DY#0:.ram CMP#&C|
00001040  30 3a 42 4e 45 6e 6f 31  3a 4c 44 41 23 26 31 44  |0:BNEno1:LDA#&1D|
00001050  3a 4a 4d 50 73 74 3a 2e  6e 6f 31 20 43 4d 50 23  |:JMPst:.no1 CMP#|
00001060  26 31 44 3a 42 43 53 73  74 3a 43 4d 50 23 39 3a  |&1D:BCSst:CMP#9:|
00001070  42 43 43 73 74 3a 43 4c  43 3a 41 44 43 23 26 41  |BCCst:CLC:ADC#&A|
00001080  33 3a 2e 73 74 20 53 54  41 26 37 31 0d 00 f0 5e  |3:.st STA&71...^|
00001090  20 2e 74 72 20 4c 44 41  28 26 37 30 29 2c 59 3a  | .tr LDA(&70),Y:|
000010a0  53 54 41 28 26 37 32 29  2c 59 3a 49 4e 43 26 37  |STA(&72),Y:INC&7|
000010b0  32 3a 4c 44 41 26 37 32  3a 43 4d 50 23 26 31 32  |2:LDA&72:CMP#&12|
000010c0  3a 42 45 51 65 78 65 63  3a 49 4e 43 26 37 30 3a  |:BEQexec:INC&70:|
000010d0  42 4e 45 74 72 3a 49 4e  43 26 37 31 3a 4c 44 41  |BNEtr:INC&71:LDA|
000010e0  26 37 31 3a 4a 4d 50 72  61 6d 0d 00 fa 68 20 2e  |&71:JMPram...h .|
000010f0  65 78 65 63 20 4c 44 41  23 30 3a 53 54 41 26 41  |exec LDA#0:STA&A|
00001100  30 30 3a 4c 44 41 23 26  42 3a 53 54 41 26 41 30  |00:LDA#&B:STA&A0|
00001110  31 3a 4c 44 41 26 41 30  36 3a 42 4e 45 66 69 6e  |1:LDA&A06:BNEfin|
00001120  64 61 64 64 3a 4c 44 41  26 41 30 32 3a 53 54 41  |dadd:LDA&A02:STA|
00001130  26 37 30 3a 4c 44 41 26  41 30 33 3a 53 54 41 26  |&70:LDA&A03:STA&|
00001140  37 31 3a 4c 44 41 23 32  3a 53 54 41 65 6e 64 61  |71:LDA#2:STAenda|
00001150  64 64 0d 01 04 bd 20 2e  66 69 6e 64 61 64 64 20  |dd.... .findadd |
00001160  4c 44 41 23 35 3a 4c 44  58 23 30 3a 4c 44 59 23  |LDA#5:LDX#0:LDY#|
00001170  26 41 3a 4a 53 52 4f 53  46 49 4c 45 3a 43 4d 50  |&A:JSROSFILE:CMP|
00001180  23 31 3a 42 45 51 72 75  6e 3a 4a 4d 50 65 72 72  |#1:BEQrun:JMPerr|
00001190  6f 72 31 3a 2e 72 75 6e  20 4c 44 58 65 6e 64 61  |or1:.run LDXenda|
000011a0  64 64 3a 43 50 58 23 31  3a 42 4e 45 6c 61 64 64  |dd:CPX#1:BNEladd|
000011b0  72 3a 50 4c 41 3a 53 54  41 26 37 32 3a 4c 44 58  |r:PLA:STA&72:LDX|
000011c0  26 41 30 36 3a 4c 44 59  26 41 30 37 3a 44 45 58  |&A06:LDY&A07:DEX|
000011d0  3a 43 50 58 23 26 46 46  3a 42 4e 45 73 74 61 63  |:CPX#&FF:BNEstac|
000011e0  6b 3a 44 45 59 3a 2e 73  74 61 63 6b 20 54 59 41  |k:DEY:.stack TYA|
000011f0  3a 50 48 41 3a 54 58 41  3a 50 48 41 3a 4c 44 41  |:PHA:TXA:PHA:LDA|
00001200  26 37 32 3a 50 48 41 3a  4a 4d 50 61 72 65 61 0d  |&72:PHA:JMParea.|
00001210  01 0e ac 20 2e 6c 61 64  64 72 20 43 50 58 23 32  |... .laddr CPX#2|
00001220  3a 42 4e 45 61 72 65 61  3a 4c 44 41 26 37 30 3a  |:BNEarea:LDA&70:|
00001230  53 54 41 26 41 30 32 3a  4c 44 41 26 37 31 3a 53  |STA&A02:LDA&71:S|
00001240  54 41 26 41 30 33 3a 4c  44 41 23 30 3a 53 54 41  |TA&A03:LDA#0:STA|
00001250  26 41 30 36 3a 2e 61 72  65 61 20 4c 44 41 26 41  |&A06:.area LDA&A|
00001260  30 33 3a 43 4d 50 23 26  31 44 3a 42 43 53 6c 6f  |03:CMP#&1D:BCSlo|
00001270  61 64 32 3a 43 4d 50 23  39 3a 42 43 53 62 79 74  |ad2:CMP#9:BCSbyt|
00001280  65 6c 6f 61 64 3a 43 4c  43 3a 4c 44 41 26 41 30  |eload:CLC:LDA&A0|
00001290  32 3a 41 44 43 26 41 30  41 3a 4c 44 41 26 41 30  |2:ADC&A0A:LDA&A0|
000012a0  33 3a 41 44 43 26 41 30  42 3a 43 4d 50 23 39 3a  |3:ADC&A0B:CMP#9:|
000012b0  42 43 53 62 79 74 65 6c  6f 61 64 0d 01 18 31 20  |BCSbyteload...1 |
000012c0  2e 6c 6f 61 64 32 20 4c  44 41 23 26 46 46 3a 4c  |.load2 LDA#&FF:L|
000012d0  44 58 23 30 3a 4c 44 59  23 26 41 3a 4a 53 52 4f  |DX#0:LDY#&A:JSRO|
000012e0  53 46 49 4c 45 3a 4a 4d  50 65 6e 64 0d 01 22 ed  |SFILE:JMPend..".|
000012f0  20 2e 62 79 74 65 6c 6f  61 64 20 4c 44 41 23 26  | .byteload LDA#&|
00001300  34 30 3a 4c 44 58 23 30  3a 4c 44 59 23 26 42 3a  |40:LDX#0:LDY#&B:|
00001310  4a 53 52 4f 53 46 49 4e  44 3a 54 41 59 3a 43 4d  |JSROSFIND:TAY:CM|
00001320  50 23 30 3a 42 4e 45 6f  6b 3a 4a 4d 50 65 72 72  |P#0:BNEok:JMPerr|
00001330  6f 72 31 3a 2e 6f 6b 20  4c 44 41 26 41 30 32 3a  |or1:.ok LDA&A02:|
00001340  53 54 41 26 37 30 3a 4c  44 41 26 41 30 33 3a 43  |STA&70:LDA&A03:C|
00001350  4d 50 23 39 3a 42 43 43  6e 6f 72 6d 3a 43 4c 43  |MP#9:BCCnorm:CLC|
00001360  3a 41 44 43 23 26 41 33  3a 2e 6e 6f 72 6d 20 53  |:ADC#&A3:.norm S|
00001370  54 41 26 37 31 3a 2e 62  67 65 74 20 43 4c 43 3a  |TA&71:.bget CLC:|
00001380  4a 53 52 4f 53 42 47 45  54 3a 42 43 53 65 6e 64  |JSROSBGET:BCSend|
00001390  6c 6f 61 64 3a 53 54 41  28 26 37 30 2c 58 29 3a  |load:STA(&70,X):|
000013a0  49 4e 43 26 37 30 3a 42  4e 45 62 67 65 74 3a 49  |INC&70:BNEbget:I|
000013b0  4e 43 26 37 31 3a 4c 44  41 26 37 31 3a 43 4d 50  |NC&71:LDA&71:CMP|
000013c0  23 26 43 30 3a 42 45 51  73 75 62 3a 43 4d 50 23  |#&C0:BEQsub:CMP#|
000013d0  39 3a 42 4e 45 62 67 65  74 0d 01 2c 50 20 4c 44  |9:BNEbget..,P LD|
000013e0  41 23 26 41 43 3a 53 54  41 26 37 31 3a 42 4e 45  |A#&AC:STA&71:BNE|
000013f0  62 67 65 74 3a 2e 73 75  62 20 4c 44 41 23 26 31  |bget:.sub LDA#&1|
00001400  44 3a 53 54 41 26 37 31  3a 42 4e 45 62 67 65 74  |D:STA&71:BNEbget|
00001410  3a 2e 65 6e 64 6c 6f 61  64 20 4c 44 41 23 30 3a  |:.endload LDA#0:|
00001420  4a 53 52 4f 53 46 49 4e  44 0d 01 36 97 20 2e 65  |JSROSFIND..6. .e|
00001430  6e 64 20 4c 44 41 23 30  3a 53 54 41 26 37 30 3a  |nd LDA#0:STA&70:|
00001440  53 54 41 26 37 32 3a 4c  44 41 23 39 3a 53 54 41  |STA&72:LDA#9:STA|
00001450  26 37 31 3a 4c 44 41 23  26 38 39 3a 53 54 41 26  |&71:LDA#&89:STA&|
00001460  37 33 3a 4c 44 41 23 26  31 44 3a 53 54 41 65 6e  |73:LDA#&1D:STAen|
00001470  64 61 64 64 3a 4c 44 59  23 30 3a 4a 53 52 6d 6f  |dadd:LDY#0:JSRmo|
00001480  76 65 6c 6f 6f 70 3a 4c  44 41 23 26 41 43 3a 53  |veloop:LDA#&AC:S|
00001490  54 41 26 37 31 3a 4c 44  41 23 39 3a 53 54 41 26  |TA&71:LDA#9:STA&|
000014a0  37 33 3a 4c 44 41 23 26  43 30 3a 53 54 41 65 6e  |73:LDA#&C0:STAen|
000014b0  64 61 64 64 3a 4a 53 52  6d 6f 76 65 6c 6f 6f 70  |dadd:JSRmoveloop|
000014c0  0d 01 40 df 20 2e 72 65  74 20 4a 53 52 76 65 63  |..@. .ret JSRvec|
000014d0  74 6f 72 73 32 3a 4a 4d  50 76 61 72 73 3a 5d 3a  |tors2:JMPvars:]:|
000014e0  76 65 63 74 6f 72 73 3d  4f 25 3a 5b 4f 50 54 70  |vectors=O%:[OPTp|
000014f0  61 73 73 2b 34 3a 2e 76  65 63 74 6f 72 73 32 20  |ass+4:.vectors2 |
00001500  4c 44 41 23 28 4f 42 72  6f 75 74 69 6e 65 20 83  |LDA#(OBroutine .|
00001510  32 35 36 29 3a 53 54 41  26 32 30 41 3a 4c 44 41  |256):STA&20A:LDA|
00001520  23 28 4f 42 72 6f 75 74  69 6e 65 20 81 32 35 36  |#(OBroutine .256|
00001530  29 3a 53 54 41 26 32 30  42 3a 4c 44 41 23 28 4f  |):STA&20B:LDA#(O|
00001540  46 49 4c 45 20 83 32 35  36 29 3a 53 54 41 26 32  |FILE .256):STA&2|
00001550  31 32 3a 4c 44 41 23 28  4f 46 49 4c 45 20 81 32  |12:LDA#(OFILE .2|
00001560  35 36 29 3a 53 54 41 26  32 31 33 3a 4c 44 41 23  |56):STA&213:LDA#|
00001570  28 4f 46 53 43 20 83 32  35 36 29 3a 53 54 41 26  |(OFSC .256):STA&|
00001580  32 31 45 3a 4c 44 41 23  28 4f 46 53 43 20 81 32  |21E:LDA#(OFSC .2|
00001590  35 36 29 3a 53 54 41 26  32 31 46 3a 52 54 53 0d  |56):STA&21F:RTS.|
000015a0  01 4a 6a 20 2e 76 61 72  73 20 4c 44 59 26 37 35  |.Jj .vars LDY&75|
000015b0  3a 4c 44 58 26 37 34 3a  53 54 58 65 6e 64 61 64  |:LDX&74:STXendad|
000015c0  64 3a 4c 44 58 23 30 3a  2e 6c 6f 61 64 76 61 72  |d:LDX#0:.loadvar|
000015d0  73 20 4c 44 41 74 65 6d  70 73 74 6f 72 65 2c 58  |s LDAtempstore,X|
000015e0  3a 53 54 41 26 37 30 2c  58 3a 49 4e 58 3a 43 50  |:STA&70,X:INX:CP|
000015f0  58 23 36 3a 42 4e 45 6c  6f 61 64 76 61 72 73 3a  |X#6:BNEloadvars:|
00001600  4c 44 58 65 6e 64 61 64  64 0d 01 4f 8d 20 4c 44  |LDXendadd..O. LD|
00001610  41 66 6c 61 67 3a 42 45  51 6c 65 61 76 65 32 3a  |Aflag:BEQleave2:|
00001620  53 45 49 3a 4c 44 41 69  6e 74 65 72 6e 65 77 4c  |SEI:LDAinternewL|
00001630  4f 3a 53 54 41 26 32 30  34 3a 4c 44 41 69 6e 74  |O:STA&204:LDAint|
00001640  65 72 6e 65 77 48 49 3a  53 54 41 26 32 30 35 3a  |ernewHI:STA&205:|
00001650  43 4c 49 3a 2e 6c 65 61  76 65 32 20 4c 44 41 73  |CLI:.leave2 LDAs|
00001660  74 61 74 75 73 3a 50 48  41 3a 50 4c 50 3a 4c 44  |tatus:PHA:PLP:LD|
00001670  41 23 30 3a 53 54 41 26  46 43 44 44 3a 4a 4d 50  |A#0:STA&FCDD:JMP|
00001680  20 42 41 43 4b 2d 28 6f  73 62 79 74 65 2d 62 61  | BACK-(osbyte-ba|
00001690  6e 6b 31 2d 31 29 0d 01  54 c1 20 2e 66 73 63 72  |nk1-1)..T. .fscr|
000016a0  6f 75 74 20 50 4c 41 3a  50 48 41 3a 42 45 51 72  |out PLA:PHA:BEQr|
000016b0  65 74 3a 43 4d 50 23 34  3a 42 45 51 66 73 63 3a  |et:CMP#4:BEQfsc:|
000016c0  43 4d 50 23 32 3a 42 45  51 66 73 63 3a 4a 53 52  |CMP#2:BEQfsc:JSR|
000016d0  6f 6c 64 4f 53 46 53 43  3a 4c 44 41 26 37 30 3a  |oldOSFSC:LDA&70:|
000016e0  53 54 41 26 31 30 44 35  3a 4c 44 41 26 37 31 3a  |STA&10D5:LDA&71:|
000016f0  53 54 41 26 44 43 43 3a  4c 44 41 26 37 32 3a 53  |STA&DCC:LDA&72:S|
00001700  54 41 26 44 43 44 3a 4c  44 41 26 37 33 3a 53 54  |TA&DCD:LDA&73:ST|
00001710  41 26 44 43 45 3a 4a 4d  50 72 65 74 3a 2e 66 73  |A&DCE:JMPret:.fs|
00001720  63 20 4c 44 41 26 37 34  3a 53 54 41 26 37 30 3a  |c LDA&74:STA&70:|
00001730  4c 44 41 26 37 35 3a 53  54 41 26 37 31 3a 4a 53  |LDA&75:STA&71:JS|
00001740  52 66 69 6c 65 6e 61 6d  65 3a 4c 44 58 23 31 3a  |Rfilename:LDX#1:|
00001750  4a 4d 50 6c 6f 61 64 0d  01 59 8e 20 2e 6f 6c 64  |JMPload..Y. .old|
00001760  4f 53 46 53 43 20 4c 44  41 26 31 30 44 35 3a 53  |OSFSC LDA&10D5:S|
00001770  54 41 26 37 30 3a 4c 44  41 26 44 43 43 3a 53 54  |TA&70:LDA&DCC:ST|
00001780  41 26 37 31 3a 4c 44 41  26 44 43 44 3a 53 54 41  |A&71:LDA&DCD:STA|
00001790  26 37 32 3a 4c 44 41 26  44 43 45 3a 53 54 41 26  |&72:LDA&DCE:STA&|
000017a0  37 33 3a 4c 44 41 23 26  36 30 3a 53 54 41 26 44  |73:LDA#&60:STA&D|
000017b0  43 43 3a 4c 44 41 23 26  39 45 3a 53 54 41 26 44  |CC:LDA#&9E:STA&D|
000017c0  43 44 3a 4c 44 41 23 34  3a 53 54 41 26 44 43 45  |CD:LDA#4:STA&DCE|
000017d0  3a 50 4c 41 3a 50 48 41  3a 4a 4d 50 28 6f 73 66  |:PLA:PHA:JMP(osf|
000017e0  73 63 4c 4f 29 0d 01 5e  cd 20 2e 66 69 6c 65 6e  |scLO)..^. .filen|
000017f0  61 6d 65 20 4c 44 59 23  30 3a 4c 44 41 28 26 37  |ame LDY#0:LDA(&7|
00001800  30 29 2c 59 3a 43 4d 50  23 26 44 3a 42 45 51 6e  |0),Y:CMP#&D:BEQn|
00001810  61 6d 65 3a 43 4d 50 23  26 32 30 3a 42 45 51 6e  |ame:CMP#&20:BEQn|
00001820  61 6d 65 3a 4a 4d 50 6e  6f 74 7a 65 72 6f 3a 2e  |ame:JMPnotzero:.|
00001830  6e 61 6d 65 20 4c 44 41  6e 61 6d 65 4c 4f 3a 53  |name LDAnameLO:S|
00001840  54 41 26 37 30 3a 53 54  41 26 37 32 3a 4c 44 41  |TA&70:STA&72:LDA|
00001850  6e 61 6d 65 48 49 3a 53  54 41 26 37 31 3a 53 54  |nameHI:STA&71:ST|
00001860  41 26 37 33 3a 4c 44 41  28 26 37 30 29 2c 59 3a  |A&73:LDA(&70),Y:|
00001870  43 4d 50 23 30 3a 42 4e  45 6f 6b 32 3a 50 4c 41  |CMP#0:BNEok2:PLA|
00001880  3a 50 4c 41 3a 4a 4d 50  65 72 72 6f 72 32 3a 2e  |:PLA:JMPerror2:.|
00001890  6f 6b 32 20 4c 44 41 28  26 37 32 29 2c 59 3a 49  |ok2 LDA(&72),Y:I|
000018a0  4e 43 26 37 32 3a 42 4e  45 6e 6f 3a 49 4e 43 26  |NC&72:BNEno:INC&|
000018b0  37 33 0d 01 68 e9 20 2e  6e 6f 20 43 4d 50 23 26  |73..h. .no CMP#&|
000018c0  44 3a 42 4e 45 6f 6b 32  3a 4c 44 41 26 37 32 3a  |D:BNEok2:LDA&72:|
000018d0  53 54 41 6e 61 6d 65 4c  4f 3a 4c 44 41 26 37 33  |STAnameLO:LDA&73|
000018e0  3a 53 54 41 6e 61 6d 65  48 49 3a 2e 6e 6f 74 7a  |:STAnameHI:.notz|
000018f0  65 72 6f 20 4c 44 41 23  30 3a 53 54 41 26 37 32  |ero LDA#0:STA&72|
00001900  3a 4c 44 41 23 26 38 42  3a 53 54 41 26 37 33 3a  |:LDA#&8B:STA&73:|
00001910  2e 74 72 61 6e 73 6c 6f  6f 70 20 4c 44 41 28 26  |.transloop LDA(&|
00001920  37 30 29 2c 59 3a 53 54  41 28 26 37 32 29 2c 59  |70),Y:STA(&72),Y|
00001930  3a 43 4d 50 23 26 44 3a  42 45 51 65 6e 64 66 69  |:CMP#&D:BEQendfi|
00001940  6c 65 3a 43 4d 50 23 26  32 30 3a 42 4e 45 63 6f  |le:CMP#&20:BNEco|
00001950  6e 74 66 69 6c 65 3a 4c  44 41 23 26 44 3a 53 54  |ntfile:LDA#&D:ST|
00001960  41 28 26 37 32 29 2c 59  3a 42 4e 45 65 6e 64 66  |A(&72),Y:BNEendf|
00001970  69 6c 65 3a 2e 63 6f 6e  74 66 69 6c 65 20 49 4e  |ile:.contfile IN|
00001980  59 3a 4a 4d 50 74 72 61  6e 73 6c 6f 6f 70 3a 2e  |Y:JMPtransloop:.|
00001990  65 6e 64 66 69 6c 65 20  52 54 53 0d 01 72 d1 20  |endfile RTS..r. |
000019a0  2e 65 72 72 6f 72 31 20  4c 44 41 23 28 6e 6f 74  |.error1 LDA#(not|
000019b0  66 6f 75 6e 64 20 83 32  35 36 29 3a 53 54 41 26  |found .256):STA&|
000019c0  37 30 3a 4c 44 41 23 28  6e 6f 74 66 6f 75 6e 64  |70:LDA#(notfound|
000019d0  20 81 32 35 36 29 3a 53  54 41 26 37 31 3a 4a 4d  | .256):STA&71:JM|
000019e0  50 65 72 72 6f 72 3a 2e  65 72 72 6f 72 32 20 4c  |Perror:.error2 L|
000019f0  44 41 23 28 6e 6f 6d 6f  72 65 20 83 32 35 36 29  |DA#(nomore .256)|
00001a00  3a 53 54 41 26 37 30 3a  4c 44 41 23 28 6e 6f 6d  |:STA&70:LDA#(nom|
00001a10  6f 72 65 20 81 32 35 36  29 3a 53 54 41 26 37 31  |ore .256):STA&71|
00001a20  3a 2e 65 72 72 6f 72 20  4c 44 59 23 30 3a 2e 70  |:.error LDY#0:.p|
00001a30  72 69 6e 74 6c 6f 6f 70  20 4c 44 41 28 26 37 30  |rintloop LDA(&70|
00001a40  29 2c 59 3a 49 4e 59 3a  4a 53 52 4f 53 41 53 43  |),Y:INY:JSROSASC|
00001a50  49 3a 43 4d 50 23 26 44  3a 42 4e 45 70 72 69 6e  |I:CMP#&D:BNEprin|
00001a60  74 6c 6f 6f 70 3a 4a 4d  50 72 65 74 0d 01 7c e6  |tloop:JMPret..|.|
00001a70  20 2e 6e 6f 74 66 6f 75  6e 64 20 45 51 55 53 22  | .notfound EQUS"|
00001a80  4e 6f 74 20 66 6f 75 6e  64 22 3a 45 51 55 42 31  |Not found":EQUB1|
00001a90  33 3a 2e 6e 6f 6d 6f 72  65 20 45 51 55 53 22 4e  |3:.nomore EQUS"N|
00001aa0  6f 20 6d 6f 72 65 20 66  69 6c 65 6e 61 6d 65 73  |o more filenames|
00001ab0  22 3a 45 51 55 42 31 33  3a 2e 6e 61 6d 65 4c 4f  |":EQUB13:.nameLO|
00001ac0  20 45 51 55 42 6e 61 6d  65 73 20 83 32 35 36 3a  | EQUBnames .256:|
00001ad0  2e 6e 61 6d 65 48 49 20  45 51 55 42 6e 61 6d 65  |.nameHI EQUBname|
00001ae0  73 20 81 32 35 36 3a 2e  65 6e 64 61 64 64 20 45  |s .256:.endadd E|
00001af0  51 55 42 30 3a 2e 6f 73  66 69 6c 65 4c 4f 20 45  |QUB0:.osfileLO E|
00001b00  51 55 42 30 3a 2e 6f 73  66 69 6c 65 48 49 20 45  |QUB0:.osfileHI E|
00001b10  51 55 42 30 3a 2e 6f 73  66 73 63 4c 4f 20 45 51  |QUB0:.osfscLO EQ|
00001b20  55 42 30 3a 2e 6f 73 66  73 63 48 49 20 45 51 55  |UB0:.osfscHI EQU|
00001b30  42 30 3a 2e 6f 73 62 79  74 65 4c 4f 20 45 51 55  |B0:.osbyteLO EQU|
00001b40  42 30 3a 2e 6f 73 62 79  74 65 48 49 20 45 51 55  |B0:.osbyteHI EQU|
00001b50  42 30 0d 01 7e 60 20 2e  69 6e 74 65 72 4c 4f 20  |B0..~` .interLO |
00001b60  45 51 55 42 30 3a 2e 69  6e 74 65 72 48 49 20 45  |EQUB0:.interHI E|
00001b70  51 55 42 30 3a 2e 69 6e  74 65 72 6e 65 77 4c 4f  |QUB0:.internewLO|
00001b80  20 45 51 55 42 30 3a 2e  69 6e 74 65 72 6e 65 77  | EQUB0:.internew|
00001b90  48 49 20 45 51 55 42 30  3a 2e 73 74 61 74 75 73  |HI EQUB0:.status|
00001ba0  20 45 51 55 42 30 3a 2e  66 6c 61 67 20 45 51 55  | EQUB0:.flag EQU|
00001bb0  42 30 0d 01 81 53 20 2e  74 65 6d 70 73 74 6f 72  |B0...S .tempstor|
00001bc0  65 20 45 51 55 44 30 3a  45 51 55 57 30 3a 2e 6e  |e EQUD0:EQUW0:.n|
00001bd0  61 6d 65 73 3a 5d 3a 24  4f 25 3d 66 69 6c 65 6e  |ames:]:$O%=filen|
00001be0  61 6d 65 73 24 3a 4f 25  3d 4f 25 2b a9 28 66 69  |ames$:O%=O%+.(fi|
00001bf0  6c 65 6e 61 6d 65 73 24  29 2b 31 3a 3f 28 4f 25  |lenames$)+1:?(O%|
00001c00  2d 31 29 3d 30 0d 01 86  ca 20 62 61 6e 6b 31 3d  |-1)=0.... bank1=|
00001c10  4f 25 3a 5b 4f 50 54 70  61 73 73 2b 34 3a 4c 44  |O%:[OPTpass+4:LD|
00001c20  41 23 30 3a 53 54 41 26  46 34 3a 53 54 41 26 46  |A#0:STA&F4:STA&F|
00001c30  45 30 35 3a 5d 3a 50 25  3d 4f 25 3a 5b 4f 50 54  |E05:]:P%=O%:[OPT|
00001c40  70 61 73 73 2b 34 3a 52  54 53 3a 5d 3a 6f 73 62  |pass+4:RTS:]:osb|
00001c50  79 74 65 3d 4f 25 3a 50  25 3d 4f 42 72 6f 75 74  |yte=O%:P%=OBrout|
00001c60  69 6e 65 3a 5b 4f 50 54  70 61 73 73 2b 34 3a 43  |ine:[OPTpass+4:C|
00001c70  4d 50 23 31 34 30 3a 42  45 51 74 61 70 65 3a 50  |MP#140:BEQtape:P|
00001c80  48 41 3a 4c 44 41 4f 42  72 6f 75 74 32 2b 38 3a  |HA:LDAOBrout2+8:|
00001c90  53 54 41 26 32 30 41 3a  4a 4d 50 4f 42 72 6f 75  |STA&20A:JMPOBrou|
00001ca0  74 32 3a 2e 74 61 70 65  20 52 54 53 3a 5d 3a 6f  |t2:.tape RTS:]:o|
00001cb0  73 62 79 74 65 32 3d 4f  25 3a 50 25 3d 4f 42 72  |sbyte2=O%:P%=OBr|
00001cc0  6f 75 74 32 3a 5b 4f 50  54 70 61 73 73 2b 34 0d  |out2:[OPTpass+4.|
00001cd0  01 8b a0 20 4c 44 41 4f  42 72 6f 75 74 32 2b 39  |... LDAOBrout2+9|
00001ce0  3a 53 54 41 26 32 30 42  3a 50 4c 41 3a 4a 53 52  |:STA&20B:PLA:JSR|
00001cf0  26 30 30 30 30 3a 4a 4d  50 4f 42 72 6f 75 74 33  |&0000:JMPOBrout3|
00001d00  3a 5d 3a 6f 73 62 79 74  65 33 3d 4f 25 3a 50 25  |:]:osbyte3=O%:P%|
00001d10  3d 4f 42 72 6f 75 74 33  3a 5b 4f 50 54 70 61 73  |=OBrout3:[OPTpas|
00001d20  73 2b 34 3a 50 48 41 3a  4c 44 41 23 28 4f 42 72  |s+4:PHA:LDA#(OBr|
00001d30  6f 75 74 69 6e 65 20 83  32 35 36 29 3a 53 54 41  |outine .256):STA|
00001d40  26 32 30 41 3a 4c 44 41  23 28 4f 42 72 6f 75 74  |&20A:LDA#(OBrout|
00001d50  69 6e 65 20 81 32 35 36  29 3a 53 54 41 26 32 30  |ine .256):STA&20|
00001d60  42 3a 50 4c 41 3a 4a 4d  50 74 61 70 65 3a 5d 0d  |B:PLA:JMPtape:].|
00001d70  01 90 bd 20 66 69 6c 65  3d 4f 25 3a 50 25 3d 4f  |... file=O%:P%=O|
00001d80  46 49 4c 45 3a 5b 4f 50  54 70 61 73 73 2b 34 3a  |FILE:[OPTpass+4:|
00001d90  43 4c 43 3a 42 43 43 6f  66 3a 2e 4f 46 53 43 20  |CLC:BCCof:.OFSC |
00001da0  53 45 43 3a 2e 6f 66 20  50 48 41 3a 5d 3a 62 61  |SEC:.of PHA:]:ba|
00001db0  6e 6b 32 3d 4f 25 3a 5b  4f 50 54 70 61 73 73 2b  |nk2=O%:[OPTpass+|
00001dc0  34 3a 4c 44 41 23 30 3a  53 54 41 26 46 34 3a 53  |4:LDA#0:STA&F4:S|
00001dd0  54 41 26 46 45 30 35 3a  2e 65 6e 74 65 72 3a 5d  |TA&FE05:.enter:]|
00001de0  3a 50 25 3d 4f 25 3a 5b  4f 50 54 70 61 73 73 2b  |:P%=O%:[OPTpass+|
00001df0  34 3a 52 54 53 3a 5d 3a  66 69 6c 65 72 65 74 3d  |4:RTS:]:fileret=|
00001e00  4f 25 3a 50 25 3d 42 41  43 4b 3a 5b 4f 50 54 70  |O%:P%=BACK:[OPTp|
00001e10  61 73 73 2b 34 3a 50 4c  41 3a 52 54 53 3a 5d 3a  |ass+4:PLA:RTS:]:|
00001e20  66 72 65 74 65 6e 64 3d  4f 25 3a ed 0d 01 9a 39  |fretend=O%:....9|
00001e30  20 f1 22 53 61 76 65 20  28 59 2f 4e 29 3f 22 3a  | ."Save (Y/N)?":|
00001e40  41 24 3d be 3a e7 20 41  24 3d 22 59 22 20 8c 20  |A$=.:. A$="Y" . |
00001e50  ff 22 53 41 56 45 20 44  4c 20 32 30 30 30 20 22  |."SAVE DL 2000 "|
00001e60  2b c3 7e 4f 25 0d ff                              |+.~O%..|
00001e67
Dloader11.m0
Dloader11.m1
Dloader11.m2
Dloader11.m4
Dloader11.m5