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

colour

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: colour
Read OK:
File size: 1EB6 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$="RAVENSKULL"+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 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:LDA#0:STA&8101:LDX#1:LDY#&81:LDA#&B:JSR&FFF1:LDA&8102:CMP#7:BNEabc:LDA#123:STA&8100:JMP0:.abc 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:LDA#0:STA&8101:LDX#1:LDY#&81:LDA#&B:JSR&FFF1:LDA&8102:CMP#7:BNEbcd:LDA#234:STA&8100:JMP0:.bcd JMPvars:]:vectors=O%:[OPTpass+4:.vectors2 LDA#(OBroutine MOD256):STA&20A:LDA#(OBroutine DIV256):STA&20B
  325 LDA#(OFILE MOD256):STA&212:LDA#(OFILE DIV256):STA&213:LDA#(OFSC MOD256):STA&21E:LDA#(OFSC DIV256):STA&21F:RTS
  330 .vars LDY&75:LDX&74:STXendadd:LDX#0:.loadvars LDAtempstore,X:STA&70,X:INX:CPX#6:BNEloadvars:LDXendadd:SEI:LDAinternewLO:STA&204:LDAinternewHI:STA&205:CLI
  331 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 DLcol 2000 "+STR$~O%
K �    TAPE -> ADFS   L O A D E R                 by  M. FORD , 15/2/94 
  filenames$="RAVENSKULL"+�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
�^ 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:LDA#0:STA&8101:LDX#1:LDY#&81:LDA#&B:JSR&FFF1:LDA&8102:CMP#7:BNEabc:LDA#123:STA&8100:JMP0:.abc 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:LDA#0:STA&8101:LDX#1:LDY#&81:LDA#&B:JSR&FFF1:LDA&8102:CMP#7:BNEbcd:LDA#234:STA&8100:JMP0:.bcd JMPvars:]:vectors=O%:[OPTpass+4:.vectors2 LDA#(OBroutine �256):STA&20A:LDA#(OBroutine �256):STA&20B
Ej LDA#(OFILE �256):STA&212:LDA#(OFILE �256):STA&213:LDA#(OFSC �256):STA&21E:LDA#(OFSC �256):STA&21F:RTS
J� .vars LDY&75:LDX&74:STXendadd:LDX#0:.loadvars LDAtempstore,X:STA&70,X:INX:CPX#6:BNEloadvars:LDXendadd:SEI:LDAinternewLO:STA&204:LDAinternewHI:STA&205:CLI
K? 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%:�
�< �"Save (Y/N)?":A$=�:� A$="Y" � �"SAVE DLcol 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 20 20  | , 15/2/94 ...  |
00000050  66 69 6c 65 6e 61 6d 65  73 24 3d 22 52 41 56 45  |filenames$="RAVE|
00000060  4e 53 4b 55 4c 4c 22 2b  bd 31 33 0d 00 05 57 20  |NSKULL"+.13...W |
00000070  4f 46 49 4c 45 3d 26 41  41 33 41 3a 42 41 43 4b  |OFILE=&AA3A:BACK|
00000080  3d 26 38 36 39 38 3a 4f  42 72 6f 75 74 69 6e 65  |=&8698:OBroutine|
00000090  3d 26 39 43 30 35 3a 4f  42 72 6f 75 74 32 3d 26  |=&9C05:OBrout2=&|
000000a0  38 43 31 30 3a 4f 42 72  6f 75 74 33 3d 26 39 39  |8C10:OBrout3=&99|
000000b0  41 39 3a 42 32 72 6f 75  74 69 6e 65 3d 26 41 30  |A9:B2routine=&A0|
000000c0  30 30 0d 00 06 38 20 4f  53 46 49 4c 45 3d 26 46  |00...8 OSFILE=&F|
000000d0  46 44 44 3a 4f 53 42 47  45 54 3d 26 46 46 44 37  |FDD:OSBGET=&FFD7|
000000e0  3a 4f 53 46 49 4e 44 3d  26 46 46 43 45 3a 4f 53  |:OSFIND=&FFCE:OS|
000000f0  41 53 43 49 3d 26 46 46  45 33 0d 00 0a 26 20 e3  |ASCI=&FFE3...& .|
00000100  70 61 73 73 3d 30 20 b8  20 32 20 88 20 32 3a 50  |pass=0 . 2 . 2:P|
00000110  25 3d 26 32 30 30 30 3a  5b 4f 50 54 70 61 73 73  |%=&2000:[OPTpass|
00000120  0d 00 14 66 20 4c 44 41  23 30 3a 53 54 41 26 46  |...f LDA#0:STA&F|
00000130  43 44 43 3a 53 54 41 26  46 43 44 45 3a 4c 44 41  |CDC:STA&FCDE:LDA|
00000140  23 31 35 3a 53 54 41 26  46 34 3a 53 54 41 26 46  |#15:STA&F4:STA&F|
00000150  45 30 35 3a 4c 44 58 23  32 3a 53 45 49 3a 2e 74  |E05:LDX#2:SEI:.t|
00000160  65 73 74 20 54 58 41 3a  53 54 41 26 46 34 3a 53  |est TXA:STA&F4:S|
00000170  54 41 26 46 45 30 35 3a  4c 44 41 23 30 3a 4c 44  |TA&FE05:LDA#0:LD|
00000180  41 26 38 38 30 30 0d 00  1e 37 20 49 4e 43 26 38  |A&8800...7 INC&8|
00000190  38 30 30 3a 43 4d 50 26  38 38 30 30 3a 42 4e 45  |800:CMP&8800:BNE|
000001a0  66 6f 75 6e 64 3a 44 45  58 3a 44 45 58 3a 42 50  |found:DEX:DEX:BP|
000001b0  4c 74 65 73 74 3a 4c 44  58 23 26 46 46 0d 00 28  |Ltest:LDX#&FF..(|
000001c0  32 20 2e 66 6f 75 6e 64  20 44 45 43 26 38 38 30  |2 .found DEC&880|
000001d0  30 3a 43 4c 49 3a 53 54  58 62 61 6e 6b 31 2b 31  |0:CLI:STXbank1+1|
000001e0  3a 49 4e 58 3a 53 54 58  62 61 6e 6b 32 2b 31 0d  |:INX:STXbank2+1.|
000001f0  00 32 ef 20 2e 42 41 53  49 43 72 6f 6d 20 4c 44  |.2. .BASICrom LD|
00000200  41 23 31 31 3a 53 54 41  26 46 34 3a 53 54 41 26  |A#11:STA&F4:STA&|
00000210  46 45 30 35 3a 4c 44 41  23 30 3a 53 54 41 26 37  |FE05:LDA#0:STA&7|
00000220  30 3a 53 54 41 26 37 32  3a 53 54 41 26 37 34 3a  |0:STA&72:STA&74:|
00000230  4c 44 41 23 26 38 30 3a  53 54 41 26 37 31 3a 4c  |LDA#&80:STA&71:L|
00000240  44 41 23 26 34 30 3a 53  54 41 26 37 33 3a 4c 44  |DA#&40:STA&73:LD|
00000250  41 23 26 41 30 3a 53 54  41 26 37 35 3a 4a 53 52  |A#&A0:STA&75:JSR|
00000260  6d 6f 76 65 6c 6f 6f 70  32 3a 4c 44 41 23 31 35  |moveloop2:LDA#15|
00000270  3a 53 54 41 26 46 34 3a  53 54 41 26 46 45 30 35  |:STA&F4:STA&FE05|
00000280  3a 4a 53 52 62 61 6e 6b  31 3a 4c 44 41 23 30 3a  |:JSRbank1:LDA#0:|
00000290  53 54 41 26 37 30 3a 53  54 41 26 37 32 3a 53 54  |STA&70:STA&72:ST|
000002a0  41 26 37 34 3a 4c 44 41  23 26 34 30 3a 53 54 41  |A&74:LDA#&40:STA|
000002b0  26 37 31 3a 4c 44 41 23  26 38 30 3a 53 54 41 26  |&71:LDA#&80:STA&|
000002c0  37 33 3a 4c 44 41 23 26  36 30 3a 53 54 41 26 37  |73:LDA#&60:STA&7|
000002d0  35 3a 4a 53 52 6d 6f 76  65 6c 6f 6f 70 32 0d 00  |5:JSRmoveloop2..|
000002e0  3c e4 4c 44 41 23 31 31  3a 53 54 41 26 46 34 3a  |<.LDA#11:STA&F4:|
000002f0  53 54 41 26 46 45 30 35  3a 4c 44 41 23 30 3a 53  |STA&FE05:LDA#0:S|
00000300  54 41 26 37 30 3a 53 54  41 26 37 32 3a 53 54 41  |TA&70:STA&72:STA|
00000310  26 37 34 3a 4c 44 41 23  26 41 30 3a 53 54 41 26  |&74:LDA#&A0:STA&|
00000320  37 31 3a 4c 44 41 23 26  34 30 3a 53 54 41 26 37  |71:LDA#&40:STA&7|
00000330  33 3a 4c 44 41 23 26 43  30 3a 53 54 41 26 37 35  |3:LDA#&C0:STA&75|
00000340  3a 4a 53 52 6d 6f 76 65  6c 6f 6f 70 32 3a 4c 44  |:JSRmoveloop2:LD|
00000350  41 23 31 35 3a 53 54 41  26 46 34 3a 53 54 41 26  |A#15:STA&F4:STA&|
00000360  46 45 30 35 3a 4a 53 52  62 61 6e 6b 31 3a 4c 44  |FE05:JSRbank1:LD|
00000370  41 23 30 3a 53 54 41 26  37 30 3a 53 54 41 26 37  |A#0:STA&70:STA&7|
00000380  32 3a 53 54 41 26 37 34  3a 4c 44 41 23 26 34 30  |2:STA&74:LDA#&40|
00000390  3a 53 54 41 26 37 31 3a  4c 44 41 23 26 41 30 3a  |:STA&71:LDA#&A0:|
000003a0  53 54 41 26 37 33 3a 4c  44 41 23 26 36 30 3a 53  |STA&73:LDA#&60:S|
000003b0  54 41 26 37 35 3a 4a 53  52 6d 6f 76 65 6c 6f 6f  |TA&75:JSRmoveloo|
000003c0  70 32 0d 00 46 aa 20 2e  62 61 6e 6b 32 65 6e 74  |p2..F. .bank2ent|
000003d0  72 79 20 4a 53 52 62 61  6e 6b 32 3a 4c 44 41 23  |ry JSRbank2:LDA#|
000003e0  28 65 6e 74 65 72 20 83  32 35 36 29 3a 53 54 41  |(enter .256):STA|
000003f0  26 37 30 3a 4c 44 41 23  28 65 6e 74 65 72 20 81  |&70:LDA#(enter .|
00000400  32 35 36 29 3a 53 54 41  26 37 31 3a 4c 44 59 23  |256):STA&71:LDY#|
00000410  30 3a 4c 44 41 23 26 34  43 3a 53 54 41 28 26 37  |0:LDA#&4C:STA(&7|
00000420  30 29 2c 59 3a 49 4e 59  3a 4c 44 41 23 28 42 32  |0),Y:INY:LDA#(B2|
00000430  72 6f 75 74 69 6e 65 20  83 32 35 36 29 3a 53 54  |routine .256):ST|
00000440  41 28 26 37 30 29 2c 59  3a 49 4e 59 3a 4c 44 41  |A(&70),Y:INY:LDA|
00000450  23 28 42 32 72 6f 75 74  69 6e 65 20 81 32 35 36  |#(B2routine .256|
00000460  29 3a 53 54 41 28 26 37  30 29 2c 59 0d 00 50 b4  |):STA(&70),Y..P.|
00000470  20 2e 62 61 6e 6b 32 6d  61 69 6e 20 4c 44 41 23  | .bank2main LDA#|
00000480  28 73 74 61 72 74 20 83  32 35 36 29 3a 53 54 41  |(start .256):STA|
00000490  26 37 30 3a 4c 44 41 23  28 73 74 61 72 74 20 81  |&70:LDA#(start .|
000004a0  32 35 36 29 3a 53 54 41  26 37 31 3a 4c 44 41 23  |256):STA&71:LDA#|
000004b0  28 62 61 6e 6b 31 20 83  32 35 36 29 3a 53 54 41  |(bank1 .256):STA|
000004c0  26 37 34 3a 4c 44 41 23  28 62 61 6e 6b 31 20 81  |&74:LDA#(bank1 .|
000004d0  32 35 36 29 3a 53 54 41  26 37 35 3a 4c 44 41 23  |256):STA&75:LDA#|
000004e0  28 42 32 72 6f 75 74 69  6e 65 20 83 32 35 36 29  |(B2routine .256)|
000004f0  3a 53 54 41 26 37 32 3a  4c 44 41 23 28 42 32 72  |:STA&72:LDA#(B2r|
00000500  6f 75 74 69 6e 65 20 81  32 35 36 29 3a 53 54 41  |outine .256):STA|
00000510  26 37 33 3a 4a 53 52 6d  6f 76 65 6c 6f 6f 70 32  |&73:JSRmoveloop2|
00000520  0d 00 5a 61 20 2e 41 44  46 53 64 61 74 61 20 4c  |..Za .ADFSdata L|
00000530  44 41 23 30 3a 53 54 41  26 37 30 3a 53 54 41 26  |DA#0:STA&70:STA&|
00000540  37 32 3a 53 54 41 26 37  34 3a 4c 44 41 23 39 3a  |72:STA&74:LDA#9:|
00000550  53 54 41 26 37 31 3a 4c  44 41 23 26 38 39 3a 53  |STA&71:LDA#&89:S|
00000560  54 41 26 37 33 3a 4c 44  41 23 26 31 44 3a 53 54  |TA&73:LDA#&1D:ST|
00000570  41 26 37 35 3a 4a 53 52  6d 6f 76 65 6c 6f 6f 70  |A&75:JSRmoveloop|
00000580  32 0d 00 64 d7 20 2e 62  31 72 65 74 75 72 6e 20  |2..d. .b1return |
00000590  4c 44 41 23 28 62 61 6e  6b 31 20 83 32 35 36 29  |LDA#(bank1 .256)|
000005a0  3a 53 54 41 26 37 30 3a  4c 44 41 23 28 62 61 6e  |:STA&70:LDA#(ban|
000005b0  6b 31 20 81 32 35 36 29  3a 53 54 41 26 37 31 3a  |k1 .256):STA&71:|
000005c0  4c 44 41 23 28 42 41 43  4b 2d 28 6f 73 62 79 74  |LDA#(BACK-(osbyt|
000005d0  65 2d 62 61 6e 6b 31 2d  31 29 29 20 83 32 35 36  |e-bank1-1)) .256|
000005e0  29 3a 53 54 41 26 37 32  3a 4c 44 41 23 28 42 41  |):STA&72:LDA#(BA|
000005f0  43 4b 2d 28 6f 73 62 79  74 65 2d 62 61 6e 6b 31  |CK-(osbyte-bank1|
00000600  2d 31 29 29 20 81 32 35  36 29 3a 53 54 41 26 37  |-1)) .256):STA&7|
00000610  33 3a 4c 44 41 23 28 28  6f 73 62 79 74 65 2d 31  |3:LDA#((osbyte-1|
00000620  29 20 83 32 35 36 29 3a  53 54 41 26 37 34 3a 4c  |) .256):STA&74:L|
00000630  44 41 23 28 28 6f 73 62  79 74 65 2d 31 29 20 81  |DA#((osbyte-1) .|
00000640  32 35 36 29 3a 53 54 41  26 37 35 3a 4a 53 52 6d  |256):STA&75:JSRm|
00000650  6f 76 65 6c 6f 6f 70 32  0d 00 6e c2 20 2e 62 31  |oveloop2..n. .b1|
00000660  6f 73 62 79 74 65 20 4a  53 52 62 61 6e 6b 31 3a  |osbyte JSRbank1:|
00000670  4c 44 41 23 28 6f 73 62  79 74 65 20 83 32 35 36  |LDA#(osbyte .256|
00000680  29 3a 53 54 41 26 37 30  3a 4c 44 41 23 28 6f 73  |):STA&70:LDA#(os|
00000690  62 79 74 65 20 81 32 35  36 29 3a 53 54 41 26 37  |byte .256):STA&7|
000006a0  31 3a 4c 44 41 23 28 4f  42 72 6f 75 74 69 6e 65  |1:LDA#(OBroutine|
000006b0  20 83 32 35 36 29 3a 53  54 41 26 37 32 3a 4c 44  | .256):STA&72:LD|
000006c0  41 23 28 4f 42 72 6f 75  74 69 6e 65 20 81 32 35  |A#(OBroutine .25|
000006d0  36 29 3a 53 54 41 26 37  33 3a 4c 44 41 23 28 6f  |6):STA&73:LDA#(o|
000006e0  73 62 79 74 65 32 20 83  32 35 36 29 3a 53 54 41  |sbyte2 .256):STA|
000006f0  26 37 34 3a 4c 44 41 23  28 6f 73 62 79 74 65 32  |&74:LDA#(osbyte2|
00000700  20 81 32 35 36 29 3a 53  54 41 26 37 35 3a 4a 53  | .256):STA&75:JS|
00000710  52 6d 6f 76 65 6c 6f 6f  70 32 0d 00 70 b8 20 2e  |Rmoveloop2..p. .|
00000720  62 31 6f 73 62 79 74 65  32 20 4c 44 41 23 28 6f  |b1osbyte2 LDA#(o|
00000730  73 62 79 74 65 32 20 83  32 35 36 29 3a 53 54 41  |sbyte2 .256):STA|
00000740  26 37 30 3a 4c 44 41 23  28 6f 73 62 79 74 65 32  |&70:LDA#(osbyte2|
00000750  20 81 32 35 36 29 3a 53  54 41 26 37 31 3a 4c 44  | .256):STA&71:LD|
00000760  41 23 28 4f 42 72 6f 75  74 32 20 83 32 35 36 29  |A#(OBrout2 .256)|
00000770  3a 53 54 41 26 37 32 3a  4c 44 41 23 28 4f 42 72  |:STA&72:LDA#(OBr|
00000780  6f 75 74 32 20 81 32 35  36 29 3a 53 54 41 26 37  |out2 .256):STA&7|
00000790  33 3a 4c 44 41 23 28 6f  73 62 79 74 65 33 20 83  |3:LDA#(osbyte3 .|
000007a0  32 35 36 29 3a 53 54 41  26 37 34 3a 4c 44 41 23  |256):STA&74:LDA#|
000007b0  28 6f 73 62 79 74 65 33  20 81 32 35 36 29 3a 53  |(osbyte3 .256):S|
000007c0  54 41 26 37 35 3a 4a 53  52 6d 6f 76 65 6c 6f 6f  |TA&75:JSRmoveloo|
000007d0  70 32 0d 00 72 b2 20 2e  62 31 6f 73 62 79 74 65  |p2..r. .b1osbyte|
000007e0  33 20 4c 44 41 23 28 6f  73 62 79 74 65 33 20 83  |3 LDA#(osbyte3 .|
000007f0  32 35 36 29 3a 53 54 41  26 37 30 3a 4c 44 41 23  |256):STA&70:LDA#|
00000800  28 6f 73 62 79 74 65 33  20 81 32 35 36 29 3a 53  |(osbyte3 .256):S|
00000810  54 41 26 37 31 3a 4c 44  41 23 28 4f 42 72 6f 75  |TA&71:LDA#(OBrou|
00000820  74 33 20 83 32 35 36 29  3a 53 54 41 26 37 32 3a  |t3 .256):STA&72:|
00000830  4c 44 41 23 28 4f 42 72  6f 75 74 33 20 81 32 35  |LDA#(OBrout3 .25|
00000840  36 29 3a 53 54 41 26 37  33 3a 4c 44 41 23 28 66  |6):STA&73:LDA#(f|
00000850  69 6c 65 20 83 32 35 36  29 3a 53 54 41 26 37 34  |ile .256):STA&74|
00000860  3a 4c 44 41 23 28 66 69  6c 65 20 81 32 35 36 29  |:LDA#(file .256)|
00000870  3a 53 54 41 26 37 35 3a  4a 53 52 6d 6f 76 65 6c  |:STA&75:JSRmovel|
00000880  6f 6f 70 32 0d 00 78 ad  20 2e 62 31 6f 73 66 69  |oop2..x. .b1osfi|
00000890  6c 65 20 4c 44 41 23 28  66 69 6c 65 20 83 32 35  |le LDA#(file .25|
000008a0  36 29 3a 53 54 41 26 37  30 3a 4c 44 41 23 28 66  |6):STA&70:LDA#(f|
000008b0  69 6c 65 20 81 32 35 36  29 3a 53 54 41 26 37 31  |ile .256):STA&71|
000008c0  3a 4c 44 41 23 28 4f 46  49 4c 45 20 83 32 35 36  |:LDA#(OFILE .256|
000008d0  29 3a 53 54 41 26 37 32  3a 4c 44 41 23 28 4f 46  |):STA&72:LDA#(OF|
000008e0  49 4c 45 20 81 32 35 36  29 3a 53 54 41 26 37 33  |ILE .256):STA&73|
000008f0  3a 4c 44 41 23 28 66 69  6c 65 72 65 74 20 83 32  |:LDA#(fileret .2|
00000900  35 36 29 3a 53 54 41 26  37 34 3a 4c 44 41 23 28  |56):STA&74:LDA#(|
00000910  66 69 6c 65 72 65 74 20  81 32 35 36 29 3a 53 54  |fileret .256):ST|
00000920  41 26 37 35 3a 4a 53 52  6d 6f 76 65 6c 6f 6f 70  |A&75:JSRmoveloop|
00000930  32 0d 00 82 b2 20 2e 62  31 66 69 6c 65 72 65 74  |2.... .b1fileret|
00000940  20 4c 44 41 23 28 66 69  6c 65 72 65 74 20 83 32  | LDA#(fileret .2|
00000950  35 36 29 3a 53 54 41 26  37 30 3a 4c 44 41 23 28  |56):STA&70:LDA#(|
00000960  66 69 6c 65 72 65 74 20  81 32 35 36 29 3a 53 54  |fileret .256):ST|
00000970  41 26 37 31 3a 4c 44 41  23 28 42 41 43 4b 20 83  |A&71:LDA#(BACK .|
00000980  32 35 36 29 3a 53 54 41  26 37 32 3a 4c 44 41 23  |256):STA&72:LDA#|
00000990  28 42 41 43 4b 20 81 32  35 36 29 3a 53 54 41 26  |(BACK .256):STA&|
000009a0  37 33 3a 4c 44 41 23 28  66 72 65 74 65 6e 64 20  |73:LDA#(fretend |
000009b0  83 32 35 36 29 3a 53 54  41 26 37 34 3a 4c 44 41  |.256):STA&74:LDA|
000009c0  23 28 66 72 65 74 65 6e  64 20 81 32 35 36 29 3a  |#(fretend .256):|
000009d0  53 54 41 26 37 35 3a 4a  53 52 6d 6f 76 65 6c 6f  |STA&75:JSRmovelo|
000009e0  6f 70 32 0d 00 8c 6a 20  2e 70 61 67 65 20 4c 44  |op2...j .page LD|
000009f0  41 23 30 3a 53 54 41 26  37 30 3a 53 54 41 26 37  |A#0:STA&70:STA&7|
00000a00  32 3a 4c 44 41 26 31 38  3a 53 54 41 26 37 31 3a  |2:LDA&18:STA&71:|
00000a10  4c 44 41 23 26 45 3a 53  54 41 26 37 33 3a 53 54  |LDA#&E:STA&73:ST|
00000a20  41 26 31 38 3a 4c 44 41  26 31 32 3a 53 54 41 26  |A&18:LDA&12:STA&|
00000a30  37 34 3a 4c 44 41 26 31  33 3a 53 54 41 26 37 35  |74:LDA&13:STA&75|
00000a40  3a 4a 53 52 6d 6f 76 65  6c 6f 6f 70 32 0d 00 96  |:JSRmoveloop2...|
00000a50  67 20 2e 6c 61 6e 67 52  4f 4d 20 4c 44 41 62 61  |g .langROM LDAba|
00000a60  6e 6b 31 2b 31 3a 53 54  41 26 32 38 43 3a 43 4c  |nk1+1:STA&28C:CL|
00000a70  43 3a 41 44 43 23 26 41  30 3a 53 54 41 26 37 30  |C:ADC#&A0:STA&70|
00000a80  3a 4c 44 41 23 32 3a 53  54 41 26 37 31 3a 4c 44  |:LDA#2:STA&71:LD|
00000a90  59 23 30 3a 4c 44 41 23  26 36 30 3a 53 54 41 28  |Y#0:LDA#&60:STA(|
00000aa0  26 37 30 29 2c 59 3a 4c  44 41 23 30 3a 53 54 41  |&70),Y:LDA#0:STA|
00000ab0  26 32 41 42 0d 00 a0 d9  20 2e 76 65 63 74 20 4c  |&2AB.... .vect L|
00000ac0  44 41 26 32 30 41 3a 53  54 41 4f 42 72 6f 75 74  |DA&20A:STAOBrout|
00000ad0  32 2b 38 3a 4c 44 41 26  32 30 42 3a 53 54 41 4f  |2+8:LDA&20B:STAO|
00000ae0  42 72 6f 75 74 32 2b 39  3a 4a 53 52 62 61 6e 6b  |Brout2+9:JSRbank|
00000af0  32 3a 4c 44 41 26 32 30  34 3a 53 54 41 69 6e 74  |2:LDA&204:STAint|
00000b00  65 72 4c 4f 3a 4c 44 41  26 32 30 35 3a 53 54 41  |erLO:LDA&205:STA|
00000b10  69 6e 74 65 72 48 49 3a  4c 44 41 26 32 30 41 3a  |interHI:LDA&20A:|
00000b20  53 54 41 6f 73 62 79 74  65 4c 4f 3a 4c 44 41 26  |STAosbyteLO:LDA&|
00000b30  32 30 42 3a 53 54 41 6f  73 62 79 74 65 48 49 3a  |20B:STAosbyteHI:|
00000b40  4c 44 41 26 32 31 32 3a  53 54 41 6f 73 66 69 6c  |LDA&212:STAosfil|
00000b50  65 4c 4f 3a 4c 44 41 26  32 31 33 3a 53 54 41 6f  |eLO:LDA&213:STAo|
00000b60  73 66 69 6c 65 48 49 3a  4c 44 41 26 32 31 45 3a  |sfileHI:LDA&21E:|
00000b70  53 54 41 6f 73 66 73 63  4c 4f 3a 4c 44 41 26 32  |STAosfscLO:LDA&2|
00000b80  31 46 3a 53 54 41 6f 73  66 73 63 48 49 0d 00 a5  |1F:STAosfscHI...|
00000b90  2b 20 4a 53 52 76 65 63  74 6f 72 73 3a 4a 53 52  |+ JSRvectors:JSR|
00000ba0  62 61 6e 6b 31 3a 4c 44  41 23 30 3a 53 54 41 26  |bank1:LDA#0:STA&|
00000bb0  46 43 44 44 3a 52 54 53  0d 00 aa 8d 20 2e 6d 6f  |FCDD:RTS.... .mo|
00000bc0  76 65 6c 6f 6f 70 32 20  4c 44 59 23 30 3a 2e 6c  |veloop2 LDY#0:.l|
00000bd0  6f 6f 70 20 4c 44 41 28  26 37 30 29 2c 59 3a 53  |oop LDA(&70),Y:S|
00000be0  54 41 28 26 37 32 29 2c  59 3a 49 4e 43 26 37 30  |TA(&72),Y:INC&70|
00000bf0  3a 42 4e 45 61 3a 49 4e  43 26 37 31 3a 2e 61 20  |:BNEa:INC&71:.a |
00000c00  49 4e 43 26 37 32 3a 42  4e 45 62 3a 49 4e 43 26  |INC&72:BNEb:INC&|
00000c10  37 33 3a 2e 62 20 4c 44  41 26 37 30 3a 43 4d 50  |73:.b LDA&70:CMP|
00000c20  26 37 34 3a 42 4e 45 6c  6f 6f 70 3a 4c 44 41 26  |&74:BNEloop:LDA&|
00000c30  37 31 3a 43 4d 50 26 37  35 3a 42 4e 45 6c 6f 6f  |71:CMP&75:BNEloo|
00000c40  70 3a 52 54 53 0d 00 b4  2d 20 5d 3a 4f 25 3d 50  |p:RTS...- ]:O%=P|
00000c50  25 3a 73 74 61 72 74 3d  4f 25 3a 50 25 3d 42 32  |%:start=O%:P%=B2|
00000c60  72 6f 75 74 69 6e 65 3a  5b 4f 50 54 70 61 73 73  |routine:[OPTpass|
00000c70  2b 34 0d 00 be 9c 20 4c  44 41 23 30 3a 41 44 43  |+4.... LDA#0:ADC|
00000c80  23 30 3a 50 48 41 3a 50  48 50 3a 50 4c 41 3a 53  |#0:PHA:PHP:PLA:S|
00000c90  54 41 73 74 61 74 75 73  3a 4c 44 41 6f 73 66 73  |TAstatus:LDAosfs|
00000ca0  63 4c 4f 3a 53 54 41 26  32 31 45 3a 4c 44 41 6f  |cLO:STA&21E:LDAo|
00000cb0  73 66 73 63 48 49 3a 53  54 41 26 32 31 46 3a 4c  |sfscHI:STA&21F:L|
00000cc0  44 41 6f 73 66 69 6c 65  4c 4f 3a 53 54 41 26 32  |DAosfileLO:STA&2|
00000cd0  31 32 3a 4c 44 41 6f 73  66 69 6c 65 48 49 3a 53  |12:LDAosfileHI:S|
00000ce0  54 41 26 32 31 33 3a 4c  44 41 6f 73 62 79 74 65  |TA&213:LDAosbyte|
00000cf0  4c 4f 3a 53 54 41 26 32  30 41 3a 4c 44 41 6f 73  |LO:STA&20A:LDAos|
00000d00  62 79 74 65 48 49 3a 53  54 41 26 32 30 42 0d 00  |byteHI:STA&20B..|
00000d10  c0 5e 20 53 45 49 3a 4c  44 41 26 32 30 34 3a 53  |.^ SEI:LDA&204:S|
00000d20  54 41 69 6e 74 65 72 6e  65 77 4c 4f 3a 4c 44 41  |TAinternewLO:LDA|
00000d30  26 32 30 35 3a 53 54 41  69 6e 74 65 72 6e 65 77  |&205:STAinternew|
00000d40  48 49 3a 4c 44 41 69 6e  74 65 72 4c 4f 3a 53 54  |HI:LDAinterLO:ST|
00000d50  41 26 32 30 34 3a 4c 44  41 69 6e 74 65 72 48 49  |A&204:LDAinterHI|
00000d60  3a 53 54 41 26 32 30 35  3a 43 4c 49 0d 00 c3 dd  |:STA&205:CLI....|
00000d70  20 53 54 58 65 6e 64 61  64 64 3a 4c 44 58 23 30  | STXendadd:LDX#0|
00000d80  3a 2e 73 61 76 65 76 61  72 73 20 4c 44 41 26 37  |:.savevars LDA&7|
00000d90  30 2c 58 3a 53 54 41 74  65 6d 70 73 74 6f 72 65  |0,X:STAtempstore|
00000da0  2c 58 3a 49 4e 58 3a 43  50 58 23 36 3a 42 4e 45  |,X:INX:CPX#6:BNE|
00000db0  73 61 76 65 76 61 72 73  3a 53 54 59 26 37 35 3a  |savevars:STY&75:|
00000dc0  4c 44 58 65 6e 64 61 64  64 3a 53 54 58 26 37 34  |LDXendadd:STX&74|
00000dd0  3a 4c 44 41 23 30 3a 53  54 41 26 38 31 30 31 3a  |:LDA#0:STA&8101:|
00000de0  4c 44 58 23 31 3a 4c 44  59 23 26 38 31 3a 4c 44  |LDX#1:LDY#&81:LD|
00000df0  41 23 26 42 3a 4a 53 52  26 46 46 46 31 3a 4c 44  |A#&B:JSR&FFF1:LD|
00000e00  41 26 38 31 30 32 3a 43  4d 50 23 37 3a 42 4e 45  |A&8102:CMP#7:BNE|
00000e10  61 62 63 3a 4c 44 41 23  31 32 33 3a 53 54 41 26  |abc:LDA#123:STA&|
00000e20  38 31 30 30 3a 4a 4d 50  30 3a 2e 61 62 63 20 50  |8100:JMP0:.abc P|
00000e30  4c 41 3a 42 45 51 66 69  6c 65 72 6f 75 74 3a 4a  |LA:BEQfilerout:J|
00000e40  4d 50 66 73 63 72 6f 75  74 0d 00 c8 64 20 2e 66  |MPfscrout...d .f|
00000e50  69 6c 65 72 6f 75 74 20  50 4c 41 3a 4c 44 41 23  |ilerout PLA:LDA#|
00000e60  31 3a 50 48 41 3a 4c 44  59 23 30 3a 4c 44 41 28  |1:PHA:LDY#0:LDA(|
00000e70  26 37 34 29 2c 59 3a 54  41 58 3a 49 4e 59 3a 4c  |&74),Y:TAX:INY:L|
00000e80  44 41 28 26 37 34 29 2c  59 3a 53 54 58 26 37 30  |DA(&74),Y:STX&70|
00000e90  3a 53 54 41 26 37 31 3a  44 45 59 3a 4a 53 52 66  |:STA&71:DEY:JSRf|
00000ea0  69 6c 65 6e 61 6d 65 3a  4c 44 58 23 30 0d 00 d2  |ilename:LDX#0...|
00000eb0  a9 20 2e 6c 6f 61 64 20  4c 44 41 23 30 3a 53 54  |. .load LDA#0:ST|
00000ec0  41 26 37 30 3a 53 54 41  26 37 32 3a 4c 44 41 23  |A&70:STA&72:LDA#|
00000ed0  39 3a 53 54 41 26 37 31  3a 4c 44 41 23 26 41 43  |9:STA&71:LDA#&AC|
00000ee0  3a 53 54 41 26 37 33 3a  4c 44 41 23 26 31 44 3a  |:STA&73:LDA#&1D:|
00000ef0  53 54 41 65 6e 64 61 64  64 3a 4c 44 59 23 30 3a  |STAendadd:LDY#0:|
00000f00  4a 53 52 6d 6f 76 65 6c  6f 6f 70 3a 4c 44 41 23  |JSRmoveloop:LDA#|
00000f10  26 38 39 3a 53 54 41 26  37 31 3a 4c 44 41 23 39  |&89:STA&71:LDA#9|
00000f20  3a 53 54 41 26 37 33 3a  4c 44 41 23 26 39 44 3a  |:STA&73:LDA#&9D:|
00000f30  53 54 41 65 6e 64 61 64  64 3a 4c 44 59 23 30 3a  |STAendadd:LDY#0:|
00000f40  4a 53 52 6d 6f 76 65 6c  6f 6f 70 3a 4a 4d 50 6c  |JSRmoveloop:JMPl|
00000f50  6f 61 64 61 64 64 0d 00  dc 63 20 2e 6d 6f 76 65  |oadadd...c .move|
00000f60  6c 6f 6f 70 20 4c 44 41  28 26 37 30 29 2c 59 3a  |loop LDA(&70),Y:|
00000f70  53 54 41 28 26 37 32 29  2c 59 3a 49 4e 59 3a 42  |STA(&72),Y:INY:B|
00000f80  4e 45 6d 6f 76 65 6c 6f  6f 70 3a 49 4e 43 26 37  |NEmoveloop:INC&7|
00000f90  31 3a 49 4e 43 26 37 33  3a 4c 44 41 26 37 31 3a  |1:INC&73:LDA&71:|
00000fa0  43 4d 50 65 6e 64 61 64  64 3a 42 4e 45 6d 6f 76  |CMPendadd:BNEmov|
00000fb0  65 6c 6f 6f 70 3a 52 54  53 0d 00 e6 e3 20 2e 6c  |eloop:RTS.... .l|
00000fc0  6f 61 64 61 64 64 20 4c  44 41 23 30 3a 53 54 41  |oadadd LDA#0:STA|
00000fd0  26 41 30 30 3a 4c 44 41  23 26 42 3a 53 54 41 26  |&A00:LDA#&B:STA&|
00000fe0  41 30 31 3a 53 54 58 65  6e 64 61 64 64 3a 43 50  |A01:STXendadd:CP|
00000ff0  58 23 31 3a 42 45 51 66  69 6e 64 61 64 64 3a 4c  |X#1:BEQfindadd:L|
00001000  44 41 23 30 3a 53 54 41  26 37 32 3a 4c 44 41 23  |DA#0:STA&72:LDA#|
00001010  26 41 3a 53 54 41 26 37  33 3a 4c 44 41 26 37 34  |&A:STA&73:LDA&74|
00001020  3a 53 54 41 26 37 30 3a  4c 44 41 23 33 3a 53 54  |:STA&70:LDA#3:ST|
00001030  41 65 6e 64 61 64 64 3a  4c 44 41 26 37 35 3a 4c  |Aendadd:LDA&75:L|
00001040  44 59 23 30 3a 2e 72 61  6d 20 43 4d 50 23 26 43  |DY#0:.ram CMP#&C|
00001050  30 3a 42 4e 45 6e 6f 31  3a 4c 44 41 23 26 31 44  |0:BNEno1:LDA#&1D|
00001060  3a 4a 4d 50 73 74 3a 2e  6e 6f 31 20 43 4d 50 23  |:JMPst:.no1 CMP#|
00001070  26 31 44 3a 42 43 53 73  74 3a 43 4d 50 23 39 3a  |&1D:BCSst:CMP#9:|
00001080  42 43 43 73 74 3a 43 4c  43 3a 41 44 43 23 26 41  |BCCst:CLC:ADC#&A|
00001090  33 3a 2e 73 74 20 53 54  41 26 37 31 0d 00 f0 5e  |3:.st STA&71...^|
000010a0  20 2e 74 72 20 4c 44 41  28 26 37 30 29 2c 59 3a  | .tr LDA(&70),Y:|
000010b0  53 54 41 28 26 37 32 29  2c 59 3a 49 4e 43 26 37  |STA(&72),Y:INC&7|
000010c0  32 3a 4c 44 41 26 37 32  3a 43 4d 50 23 26 31 32  |2:LDA&72:CMP#&12|
000010d0  3a 42 45 51 65 78 65 63  3a 49 4e 43 26 37 30 3a  |:BEQexec:INC&70:|
000010e0  42 4e 45 74 72 3a 49 4e  43 26 37 31 3a 4c 44 41  |BNEtr:INC&71:LDA|
000010f0  26 37 31 3a 4a 4d 50 72  61 6d 0d 00 fa 68 20 2e  |&71:JMPram...h .|
00001100  65 78 65 63 20 4c 44 41  23 30 3a 53 54 41 26 41  |exec LDA#0:STA&A|
00001110  30 30 3a 4c 44 41 23 26  42 3a 53 54 41 26 41 30  |00:LDA#&B:STA&A0|
00001120  31 3a 4c 44 41 26 41 30  36 3a 42 4e 45 66 69 6e  |1:LDA&A06:BNEfin|
00001130  64 61 64 64 3a 4c 44 41  26 41 30 32 3a 53 54 41  |dadd:LDA&A02:STA|
00001140  26 37 30 3a 4c 44 41 26  41 30 33 3a 53 54 41 26  |&70:LDA&A03:STA&|
00001150  37 31 3a 4c 44 41 23 32  3a 53 54 41 65 6e 64 61  |71:LDA#2:STAenda|
00001160  64 64 0d 01 04 bd 20 2e  66 69 6e 64 61 64 64 20  |dd.... .findadd |
00001170  4c 44 41 23 35 3a 4c 44  58 23 30 3a 4c 44 59 23  |LDA#5:LDX#0:LDY#|
00001180  26 41 3a 4a 53 52 4f 53  46 49 4c 45 3a 43 4d 50  |&A:JSROSFILE:CMP|
00001190  23 31 3a 42 45 51 72 75  6e 3a 4a 4d 50 65 72 72  |#1:BEQrun:JMPerr|
000011a0  6f 72 31 3a 2e 72 75 6e  20 4c 44 58 65 6e 64 61  |or1:.run LDXenda|
000011b0  64 64 3a 43 50 58 23 31  3a 42 4e 45 6c 61 64 64  |dd:CPX#1:BNEladd|
000011c0  72 3a 50 4c 41 3a 53 54  41 26 37 32 3a 4c 44 58  |r:PLA:STA&72:LDX|
000011d0  26 41 30 36 3a 4c 44 59  26 41 30 37 3a 44 45 58  |&A06:LDY&A07:DEX|
000011e0  3a 43 50 58 23 26 46 46  3a 42 4e 45 73 74 61 63  |:CPX#&FF:BNEstac|
000011f0  6b 3a 44 45 59 3a 2e 73  74 61 63 6b 20 54 59 41  |k:DEY:.stack TYA|
00001200  3a 50 48 41 3a 54 58 41  3a 50 48 41 3a 4c 44 41  |:PHA:TXA:PHA:LDA|
00001210  26 37 32 3a 50 48 41 3a  4a 4d 50 61 72 65 61 0d  |&72:PHA:JMParea.|
00001220  01 0e ac 20 2e 6c 61 64  64 72 20 43 50 58 23 32  |... .laddr CPX#2|
00001230  3a 42 4e 45 61 72 65 61  3a 4c 44 41 26 37 30 3a  |:BNEarea:LDA&70:|
00001240  53 54 41 26 41 30 32 3a  4c 44 41 26 37 31 3a 53  |STA&A02:LDA&71:S|
00001250  54 41 26 41 30 33 3a 4c  44 41 23 30 3a 53 54 41  |TA&A03:LDA#0:STA|
00001260  26 41 30 36 3a 2e 61 72  65 61 20 4c 44 41 26 41  |&A06:.area LDA&A|
00001270  30 33 3a 43 4d 50 23 26  31 44 3a 42 43 53 6c 6f  |03:CMP#&1D:BCSlo|
00001280  61 64 32 3a 43 4d 50 23  39 3a 42 43 53 62 79 74  |ad2:CMP#9:BCSbyt|
00001290  65 6c 6f 61 64 3a 43 4c  43 3a 4c 44 41 26 41 30  |eload:CLC:LDA&A0|
000012a0  32 3a 41 44 43 26 41 30  41 3a 4c 44 41 26 41 30  |2:ADC&A0A:LDA&A0|
000012b0  33 3a 41 44 43 26 41 30  42 3a 43 4d 50 23 39 3a  |3:ADC&A0B:CMP#9:|
000012c0  42 43 53 62 79 74 65 6c  6f 61 64 0d 01 18 31 20  |BCSbyteload...1 |
000012d0  2e 6c 6f 61 64 32 20 4c  44 41 23 26 46 46 3a 4c  |.load2 LDA#&FF:L|
000012e0  44 58 23 30 3a 4c 44 59  23 26 41 3a 4a 53 52 4f  |DX#0:LDY#&A:JSRO|
000012f0  53 46 49 4c 45 3a 4a 4d  50 65 6e 64 0d 01 22 ed  |SFILE:JMPend..".|
00001300  20 2e 62 79 74 65 6c 6f  61 64 20 4c 44 41 23 26  | .byteload LDA#&|
00001310  34 30 3a 4c 44 58 23 30  3a 4c 44 59 23 26 42 3a  |40:LDX#0:LDY#&B:|
00001320  4a 53 52 4f 53 46 49 4e  44 3a 54 41 59 3a 43 4d  |JSROSFIND:TAY:CM|
00001330  50 23 30 3a 42 4e 45 6f  6b 3a 4a 4d 50 65 72 72  |P#0:BNEok:JMPerr|
00001340  6f 72 31 3a 2e 6f 6b 20  4c 44 41 26 41 30 32 3a  |or1:.ok LDA&A02:|
00001350  53 54 41 26 37 30 3a 4c  44 41 26 41 30 33 3a 43  |STA&70:LDA&A03:C|
00001360  4d 50 23 39 3a 42 43 43  6e 6f 72 6d 3a 43 4c 43  |MP#9:BCCnorm:CLC|
00001370  3a 41 44 43 23 26 41 33  3a 2e 6e 6f 72 6d 20 53  |:ADC#&A3:.norm S|
00001380  54 41 26 37 31 3a 2e 62  67 65 74 20 43 4c 43 3a  |TA&71:.bget CLC:|
00001390  4a 53 52 4f 53 42 47 45  54 3a 42 43 53 65 6e 64  |JSROSBGET:BCSend|
000013a0  6c 6f 61 64 3a 53 54 41  28 26 37 30 2c 58 29 3a  |load:STA(&70,X):|
000013b0  49 4e 43 26 37 30 3a 42  4e 45 62 67 65 74 3a 49  |INC&70:BNEbget:I|
000013c0  4e 43 26 37 31 3a 4c 44  41 26 37 31 3a 43 4d 50  |NC&71:LDA&71:CMP|
000013d0  23 26 43 30 3a 42 45 51  73 75 62 3a 43 4d 50 23  |#&C0:BEQsub:CMP#|
000013e0  39 3a 42 4e 45 62 67 65  74 0d 01 2c 50 20 4c 44  |9:BNEbget..,P LD|
000013f0  41 23 26 41 43 3a 53 54  41 26 37 31 3a 42 4e 45  |A#&AC:STA&71:BNE|
00001400  62 67 65 74 3a 2e 73 75  62 20 4c 44 41 23 26 31  |bget:.sub LDA#&1|
00001410  44 3a 53 54 41 26 37 31  3a 42 4e 45 62 67 65 74  |D:STA&71:BNEbget|
00001420  3a 2e 65 6e 64 6c 6f 61  64 20 4c 44 41 23 30 3a  |:.endload LDA#0:|
00001430  4a 53 52 4f 53 46 49 4e  44 0d 01 36 97 20 2e 65  |JSROSFIND..6. .e|
00001440  6e 64 20 4c 44 41 23 30  3a 53 54 41 26 37 30 3a  |nd LDA#0:STA&70:|
00001450  53 54 41 26 37 32 3a 4c  44 41 23 39 3a 53 54 41  |STA&72:LDA#9:STA|
00001460  26 37 31 3a 4c 44 41 23  26 38 39 3a 53 54 41 26  |&71:LDA#&89:STA&|
00001470  37 33 3a 4c 44 41 23 26  31 44 3a 53 54 41 65 6e  |73:LDA#&1D:STAen|
00001480  64 61 64 64 3a 4c 44 59  23 30 3a 4a 53 52 6d 6f  |dadd:LDY#0:JSRmo|
00001490  76 65 6c 6f 6f 70 3a 4c  44 41 23 26 41 43 3a 53  |veloop:LDA#&AC:S|
000014a0  54 41 26 37 31 3a 4c 44  41 23 39 3a 53 54 41 26  |TA&71:LDA#9:STA&|
000014b0  37 33 3a 4c 44 41 23 26  43 30 3a 53 54 41 65 6e  |73:LDA#&C0:STAen|
000014c0  64 61 64 64 3a 4a 53 52  6d 6f 76 65 6c 6f 6f 70  |dadd:JSRmoveloop|
000014d0  0d 01 40 d7 20 2e 72 65  74 20 4a 53 52 76 65 63  |..@. .ret JSRvec|
000014e0  74 6f 72 73 32 3a 4c 44  41 23 30 3a 53 54 41 26  |tors2:LDA#0:STA&|
000014f0  38 31 30 31 3a 4c 44 58  23 31 3a 4c 44 59 23 26  |8101:LDX#1:LDY#&|
00001500  38 31 3a 4c 44 41 23 26  42 3a 4a 53 52 26 46 46  |81:LDA#&B:JSR&FF|
00001510  46 31 3a 4c 44 41 26 38  31 30 32 3a 43 4d 50 23  |F1:LDA&8102:CMP#|
00001520  37 3a 42 4e 45 62 63 64  3a 4c 44 41 23 32 33 34  |7:BNEbcd:LDA#234|
00001530  3a 53 54 41 26 38 31 30  30 3a 4a 4d 50 30 3a 2e  |:STA&8100:JMP0:.|
00001540  62 63 64 20 4a 4d 50 76  61 72 73 3a 5d 3a 76 65  |bcd JMPvars:]:ve|
00001550  63 74 6f 72 73 3d 4f 25  3a 5b 4f 50 54 70 61 73  |ctors=O%:[OPTpas|
00001560  73 2b 34 3a 2e 76 65 63  74 6f 72 73 32 20 4c 44  |s+4:.vectors2 LD|
00001570  41 23 28 4f 42 72 6f 75  74 69 6e 65 20 83 32 35  |A#(OBroutine .25|
00001580  36 29 3a 53 54 41 26 32  30 41 3a 4c 44 41 23 28  |6):STA&20A:LDA#(|
00001590  4f 42 72 6f 75 74 69 6e  65 20 81 32 35 36 29 3a  |OBroutine .256):|
000015a0  53 54 41 26 32 30 42 0d  01 45 6a 20 4c 44 41 23  |STA&20B..Ej LDA#|
000015b0  28 4f 46 49 4c 45 20 83  32 35 36 29 3a 53 54 41  |(OFILE .256):STA|
000015c0  26 32 31 32 3a 4c 44 41  23 28 4f 46 49 4c 45 20  |&212:LDA#(OFILE |
000015d0  81 32 35 36 29 3a 53 54  41 26 32 31 33 3a 4c 44  |.256):STA&213:LD|
000015e0  41 23 28 4f 46 53 43 20  83 32 35 36 29 3a 53 54  |A#(OFSC .256):ST|
000015f0  41 26 32 31 45 3a 4c 44  41 23 28 4f 46 53 43 20  |A&21E:LDA#(OFSC |
00001600  81 32 35 36 29 3a 53 54  41 26 32 31 46 3a 52 54  |.256):STA&21F:RT|
00001610  53 0d 01 4a 9e 20 2e 76  61 72 73 20 4c 44 59 26  |S..J. .vars LDY&|
00001620  37 35 3a 4c 44 58 26 37  34 3a 53 54 58 65 6e 64  |75:LDX&74:STXend|
00001630  61 64 64 3a 4c 44 58 23  30 3a 2e 6c 6f 61 64 76  |add:LDX#0:.loadv|
00001640  61 72 73 20 4c 44 41 74  65 6d 70 73 74 6f 72 65  |ars LDAtempstore|
00001650  2c 58 3a 53 54 41 26 37  30 2c 58 3a 49 4e 58 3a  |,X:STA&70,X:INX:|
00001660  43 50 58 23 36 3a 42 4e  45 6c 6f 61 64 76 61 72  |CPX#6:BNEloadvar|
00001670  73 3a 4c 44 58 65 6e 64  61 64 64 3a 53 45 49 3a  |s:LDXendadd:SEI:|
00001680  4c 44 41 69 6e 74 65 72  6e 65 77 4c 4f 3a 53 54  |LDAinternewLO:ST|
00001690  41 26 32 30 34 3a 4c 44  41 69 6e 74 65 72 6e 65  |A&204:LDAinterne|
000016a0  77 48 49 3a 53 54 41 26  32 30 35 3a 43 4c 49 0d  |wHI:STA&205:CLI.|
000016b0  01 4b 3f 20 4c 44 41 73  74 61 74 75 73 3a 50 48  |.K? LDAstatus:PH|
000016c0  41 3a 50 4c 50 3a 4c 44  41 23 30 3a 53 54 41 26  |A:PLP:LDA#0:STA&|
000016d0  46 43 44 44 3a 4a 4d 50  20 42 41 43 4b 2d 28 6f  |FCDD:JMP BACK-(o|
000016e0  73 62 79 74 65 2d 62 61  6e 6b 31 2d 31 29 0d 01  |sbyte-bank1-1)..|
000016f0  54 c1 20 2e 66 73 63 72  6f 75 74 20 50 4c 41 3a  |T. .fscrout PLA:|
00001700  50 48 41 3a 42 45 51 72  65 74 3a 43 4d 50 23 34  |PHA:BEQret:CMP#4|
00001710  3a 42 45 51 66 73 63 3a  43 4d 50 23 32 3a 42 45  |:BEQfsc:CMP#2:BE|
00001720  51 66 73 63 3a 4a 53 52  6f 6c 64 4f 53 46 53 43  |Qfsc:JSRoldOSFSC|
00001730  3a 4c 44 41 26 37 30 3a  53 54 41 26 31 30 44 35  |:LDA&70:STA&10D5|
00001740  3a 4c 44 41 26 37 31 3a  53 54 41 26 44 43 43 3a  |:LDA&71:STA&DCC:|
00001750  4c 44 41 26 37 32 3a 53  54 41 26 44 43 44 3a 4c  |LDA&72:STA&DCD:L|
00001760  44 41 26 37 33 3a 53 54  41 26 44 43 45 3a 4a 4d  |DA&73:STA&DCE:JM|
00001770  50 72 65 74 3a 2e 66 73  63 20 4c 44 41 26 37 34  |Pret:.fsc LDA&74|
00001780  3a 53 54 41 26 37 30 3a  4c 44 41 26 37 35 3a 53  |:STA&70:LDA&75:S|
00001790  54 41 26 37 31 3a 4a 53  52 66 69 6c 65 6e 61 6d  |TA&71:JSRfilenam|
000017a0  65 3a 4c 44 58 23 31 3a  4a 4d 50 6c 6f 61 64 0d  |e:LDX#1:JMPload.|
000017b0  01 59 8e 20 2e 6f 6c 64  4f 53 46 53 43 20 4c 44  |.Y. .oldOSFSC LD|
000017c0  41 26 31 30 44 35 3a 53  54 41 26 37 30 3a 4c 44  |A&10D5:STA&70:LD|
000017d0  41 26 44 43 43 3a 53 54  41 26 37 31 3a 4c 44 41  |A&DCC:STA&71:LDA|
000017e0  26 44 43 44 3a 53 54 41  26 37 32 3a 4c 44 41 26  |&DCD:STA&72:LDA&|
000017f0  44 43 45 3a 53 54 41 26  37 33 3a 4c 44 41 23 26  |DCE:STA&73:LDA#&|
00001800  36 30 3a 53 54 41 26 44  43 43 3a 4c 44 41 23 26  |60:STA&DCC:LDA#&|
00001810  39 45 3a 53 54 41 26 44  43 44 3a 4c 44 41 23 34  |9E:STA&DCD:LDA#4|
00001820  3a 53 54 41 26 44 43 45  3a 50 4c 41 3a 50 48 41  |:STA&DCE:PLA:PHA|
00001830  3a 4a 4d 50 28 6f 73 66  73 63 4c 4f 29 0d 01 5e  |:JMP(osfscLO)..^|
00001840  cd 20 2e 66 69 6c 65 6e  61 6d 65 20 4c 44 59 23  |. .filename LDY#|
00001850  30 3a 4c 44 41 28 26 37  30 29 2c 59 3a 43 4d 50  |0:LDA(&70),Y:CMP|
00001860  23 26 44 3a 42 45 51 6e  61 6d 65 3a 43 4d 50 23  |#&D:BEQname:CMP#|
00001870  26 32 30 3a 42 45 51 6e  61 6d 65 3a 4a 4d 50 6e  |&20:BEQname:JMPn|
00001880  6f 74 7a 65 72 6f 3a 2e  6e 61 6d 65 20 4c 44 41  |otzero:.name LDA|
00001890  6e 61 6d 65 4c 4f 3a 53  54 41 26 37 30 3a 53 54  |nameLO:STA&70:ST|
000018a0  41 26 37 32 3a 4c 44 41  6e 61 6d 65 48 49 3a 53  |A&72:LDAnameHI:S|
000018b0  54 41 26 37 31 3a 53 54  41 26 37 33 3a 4c 44 41  |TA&71:STA&73:LDA|
000018c0  28 26 37 30 29 2c 59 3a  43 4d 50 23 30 3a 42 4e  |(&70),Y:CMP#0:BN|
000018d0  45 6f 6b 32 3a 50 4c 41  3a 50 4c 41 3a 4a 4d 50  |Eok2:PLA:PLA:JMP|
000018e0  65 72 72 6f 72 32 3a 2e  6f 6b 32 20 4c 44 41 28  |error2:.ok2 LDA(|
000018f0  26 37 32 29 2c 59 3a 49  4e 43 26 37 32 3a 42 4e  |&72),Y:INC&72:BN|
00001900  45 6e 6f 3a 49 4e 43 26  37 33 0d 01 68 e9 20 2e  |Eno:INC&73..h. .|
00001910  6e 6f 20 43 4d 50 23 26  44 3a 42 4e 45 6f 6b 32  |no CMP#&D:BNEok2|
00001920  3a 4c 44 41 26 37 32 3a  53 54 41 6e 61 6d 65 4c  |:LDA&72:STAnameL|
00001930  4f 3a 4c 44 41 26 37 33  3a 53 54 41 6e 61 6d 65  |O:LDA&73:STAname|
00001940  48 49 3a 2e 6e 6f 74 7a  65 72 6f 20 4c 44 41 23  |HI:.notzero LDA#|
00001950  30 3a 53 54 41 26 37 32  3a 4c 44 41 23 26 38 42  |0:STA&72:LDA#&8B|
00001960  3a 53 54 41 26 37 33 3a  2e 74 72 61 6e 73 6c 6f  |:STA&73:.translo|
00001970  6f 70 20 4c 44 41 28 26  37 30 29 2c 59 3a 53 54  |op LDA(&70),Y:ST|
00001980  41 28 26 37 32 29 2c 59  3a 43 4d 50 23 26 44 3a  |A(&72),Y:CMP#&D:|
00001990  42 45 51 65 6e 64 66 69  6c 65 3a 43 4d 50 23 26  |BEQendfile:CMP#&|
000019a0  32 30 3a 42 4e 45 63 6f  6e 74 66 69 6c 65 3a 4c  |20:BNEcontfile:L|
000019b0  44 41 23 26 44 3a 53 54  41 28 26 37 32 29 2c 59  |DA#&D:STA(&72),Y|
000019c0  3a 42 4e 45 65 6e 64 66  69 6c 65 3a 2e 63 6f 6e  |:BNEendfile:.con|
000019d0  74 66 69 6c 65 20 49 4e  59 3a 4a 4d 50 74 72 61  |tfile INY:JMPtra|
000019e0  6e 73 6c 6f 6f 70 3a 2e  65 6e 64 66 69 6c 65 20  |nsloop:.endfile |
000019f0  52 54 53 0d 01 72 d1 20  2e 65 72 72 6f 72 31 20  |RTS..r. .error1 |
00001a00  4c 44 41 23 28 6e 6f 74  66 6f 75 6e 64 20 83 32  |LDA#(notfound .2|
00001a10  35 36 29 3a 53 54 41 26  37 30 3a 4c 44 41 23 28  |56):STA&70:LDA#(|
00001a20  6e 6f 74 66 6f 75 6e 64  20 81 32 35 36 29 3a 53  |notfound .256):S|
00001a30  54 41 26 37 31 3a 4a 4d  50 65 72 72 6f 72 3a 2e  |TA&71:JMPerror:.|
00001a40  65 72 72 6f 72 32 20 4c  44 41 23 28 6e 6f 6d 6f  |error2 LDA#(nomo|
00001a50  72 65 20 83 32 35 36 29  3a 53 54 41 26 37 30 3a  |re .256):STA&70:|
00001a60  4c 44 41 23 28 6e 6f 6d  6f 72 65 20 81 32 35 36  |LDA#(nomore .256|
00001a70  29 3a 53 54 41 26 37 31  3a 2e 65 72 72 6f 72 20  |):STA&71:.error |
00001a80  4c 44 59 23 30 3a 2e 70  72 69 6e 74 6c 6f 6f 70  |LDY#0:.printloop|
00001a90  20 4c 44 41 28 26 37 30  29 2c 59 3a 49 4e 59 3a  | LDA(&70),Y:INY:|
00001aa0  4a 53 52 4f 53 41 53 43  49 3a 43 4d 50 23 26 44  |JSROSASCI:CMP#&D|
00001ab0  3a 42 4e 45 70 72 69 6e  74 6c 6f 6f 70 3a 4a 4d  |:BNEprintloop:JM|
00001ac0  50 72 65 74 0d 01 7c e6  20 2e 6e 6f 74 66 6f 75  |Pret..|. .notfou|
00001ad0  6e 64 20 45 51 55 53 22  4e 6f 74 20 66 6f 75 6e  |nd EQUS"Not foun|
00001ae0  64 22 3a 45 51 55 42 31  33 3a 2e 6e 6f 6d 6f 72  |d":EQUB13:.nomor|
00001af0  65 20 45 51 55 53 22 4e  6f 20 6d 6f 72 65 20 66  |e EQUS"No more f|
00001b00  69 6c 65 6e 61 6d 65 73  22 3a 45 51 55 42 31 33  |ilenames":EQUB13|
00001b10  3a 2e 6e 61 6d 65 4c 4f  20 45 51 55 42 6e 61 6d  |:.nameLO EQUBnam|
00001b20  65 73 20 83 32 35 36 3a  2e 6e 61 6d 65 48 49 20  |es .256:.nameHI |
00001b30  45 51 55 42 6e 61 6d 65  73 20 81 32 35 36 3a 2e  |EQUBnames .256:.|
00001b40  65 6e 64 61 64 64 20 45  51 55 42 30 3a 2e 6f 73  |endadd EQUB0:.os|
00001b50  66 69 6c 65 4c 4f 20 45  51 55 42 30 3a 2e 6f 73  |fileLO EQUB0:.os|
00001b60  66 69 6c 65 48 49 20 45  51 55 42 30 3a 2e 6f 73  |fileHI EQUB0:.os|
00001b70  66 73 63 4c 4f 20 45 51  55 42 30 3a 2e 6f 73 66  |fscLO EQUB0:.osf|
00001b80  73 63 48 49 20 45 51 55  42 30 3a 2e 6f 73 62 79  |scHI EQUB0:.osby|
00001b90  74 65 4c 4f 20 45 51 55  42 30 3a 2e 6f 73 62 79  |teLO EQUB0:.osby|
00001ba0  74 65 48 49 20 45 51 55  42 30 0d 01 7e 54 20 2e  |teHI EQUB0..~T .|
00001bb0  69 6e 74 65 72 4c 4f 20  45 51 55 42 30 3a 2e 69  |interLO EQUB0:.i|
00001bc0  6e 74 65 72 48 49 20 45  51 55 42 30 3a 2e 69 6e  |nterHI EQUB0:.in|
00001bd0  74 65 72 6e 65 77 4c 4f  20 45 51 55 42 30 3a 2e  |ternewLO EQUB0:.|
00001be0  69 6e 74 65 72 6e 65 77  48 49 20 45 51 55 42 30  |internewHI EQUB0|
00001bf0  3a 2e 73 74 61 74 75 73  20 45 51 55 42 30 0d 01  |:.status EQUB0..|
00001c00  81 53 20 2e 74 65 6d 70  73 74 6f 72 65 20 45 51  |.S .tempstore EQ|
00001c10  55 44 30 3a 45 51 55 57  30 3a 2e 6e 61 6d 65 73  |UD0:EQUW0:.names|
00001c20  3a 5d 3a 24 4f 25 3d 66  69 6c 65 6e 61 6d 65 73  |:]:$O%=filenames|
00001c30  24 3a 4f 25 3d 4f 25 2b  a9 28 66 69 6c 65 6e 61  |$:O%=O%+.(filena|
00001c40  6d 65 73 24 29 2b 31 3a  3f 28 4f 25 2d 31 29 3d  |mes$)+1:?(O%-1)=|
00001c50  30 0d 01 86 ca 20 62 61  6e 6b 31 3d 4f 25 3a 5b  |0.... bank1=O%:[|
00001c60  4f 50 54 70 61 73 73 2b  34 3a 4c 44 41 23 30 3a  |OPTpass+4:LDA#0:|
00001c70  53 54 41 26 46 34 3a 53  54 41 26 46 45 30 35 3a  |STA&F4:STA&FE05:|
00001c80  5d 3a 50 25 3d 4f 25 3a  5b 4f 50 54 70 61 73 73  |]:P%=O%:[OPTpass|
00001c90  2b 34 3a 52 54 53 3a 5d  3a 6f 73 62 79 74 65 3d  |+4:RTS:]:osbyte=|
00001ca0  4f 25 3a 50 25 3d 4f 42  72 6f 75 74 69 6e 65 3a  |O%:P%=OBroutine:|
00001cb0  5b 4f 50 54 70 61 73 73  2b 34 3a 43 4d 50 23 31  |[OPTpass+4:CMP#1|
00001cc0  34 30 3a 42 45 51 74 61  70 65 3a 50 48 41 3a 4c  |40:BEQtape:PHA:L|
00001cd0  44 41 4f 42 72 6f 75 74  32 2b 38 3a 53 54 41 26  |DAOBrout2+8:STA&|
00001ce0  32 30 41 3a 4a 4d 50 4f  42 72 6f 75 74 32 3a 2e  |20A:JMPOBrout2:.|
00001cf0  74 61 70 65 20 52 54 53  3a 5d 3a 6f 73 62 79 74  |tape RTS:]:osbyt|
00001d00  65 32 3d 4f 25 3a 50 25  3d 4f 42 72 6f 75 74 32  |e2=O%:P%=OBrout2|
00001d10  3a 5b 4f 50 54 70 61 73  73 2b 34 0d 01 8b a0 20  |:[OPTpass+4.... |
00001d20  4c 44 41 4f 42 72 6f 75  74 32 2b 39 3a 53 54 41  |LDAOBrout2+9:STA|
00001d30  26 32 30 42 3a 50 4c 41  3a 4a 53 52 26 30 30 30  |&20B:PLA:JSR&000|
00001d40  30 3a 4a 4d 50 4f 42 72  6f 75 74 33 3a 5d 3a 6f  |0:JMPOBrout3:]:o|
00001d50  73 62 79 74 65 33 3d 4f  25 3a 50 25 3d 4f 42 72  |sbyte3=O%:P%=OBr|
00001d60  6f 75 74 33 3a 5b 4f 50  54 70 61 73 73 2b 34 3a  |out3:[OPTpass+4:|
00001d70  50 48 41 3a 4c 44 41 23  28 4f 42 72 6f 75 74 69  |PHA:LDA#(OBrouti|
00001d80  6e 65 20 83 32 35 36 29  3a 53 54 41 26 32 30 41  |ne .256):STA&20A|
00001d90  3a 4c 44 41 23 28 4f 42  72 6f 75 74 69 6e 65 20  |:LDA#(OBroutine |
00001da0  81 32 35 36 29 3a 53 54  41 26 32 30 42 3a 50 4c  |.256):STA&20B:PL|
00001db0  41 3a 4a 4d 50 74 61 70  65 3a 5d 0d 01 90 bd 20  |A:JMPtape:].... |
00001dc0  66 69 6c 65 3d 4f 25 3a  50 25 3d 4f 46 49 4c 45  |file=O%:P%=OFILE|
00001dd0  3a 5b 4f 50 54 70 61 73  73 2b 34 3a 43 4c 43 3a  |:[OPTpass+4:CLC:|
00001de0  42 43 43 6f 66 3a 2e 4f  46 53 43 20 53 45 43 3a  |BCCof:.OFSC SEC:|
00001df0  2e 6f 66 20 50 48 41 3a  5d 3a 62 61 6e 6b 32 3d  |.of PHA:]:bank2=|
00001e00  4f 25 3a 5b 4f 50 54 70  61 73 73 2b 34 3a 4c 44  |O%:[OPTpass+4:LD|
00001e10  41 23 30 3a 53 54 41 26  46 34 3a 53 54 41 26 46  |A#0:STA&F4:STA&F|
00001e20  45 30 35 3a 2e 65 6e 74  65 72 3a 5d 3a 50 25 3d  |E05:.enter:]:P%=|
00001e30  4f 25 3a 5b 4f 50 54 70  61 73 73 2b 34 3a 52 54  |O%:[OPTpass+4:RT|
00001e40  53 3a 5d 3a 66 69 6c 65  72 65 74 3d 4f 25 3a 50  |S:]:fileret=O%:P|
00001e50  25 3d 42 41 43 4b 3a 5b  4f 50 54 70 61 73 73 2b  |%=BACK:[OPTpass+|
00001e60  34 3a 50 4c 41 3a 52 54  53 3a 5d 3a 66 72 65 74  |4:PLA:RTS:]:fret|
00001e70  65 6e 64 3d 4f 25 3a ed  0d 01 9a 3c 20 f1 22 53  |end=O%:....< ."S|
00001e80  61 76 65 20 28 59 2f 4e  29 3f 22 3a 41 24 3d be  |ave (Y/N)?":A$=.|
00001e90  3a e7 20 41 24 3d 22 59  22 20 8c 20 ff 22 53 41  |:. A$="Y" . ."SA|
00001ea0  56 45 20 44 4c 63 6f 6c  20 32 30 30 30 20 22 2b  |VE DLcol 2000 "+|
00001eb0  c3 7e 4f 25 0d ff                                 |.~O%..|
00001eb6
colour.m0
colour.m1
colour.m2
colour.m4
colour.m5