Home » Personal collection » Acorn ADFS disks » Electron » Electron_disk_loader_B.ADF » DLoadSave2
DLoadSave2
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: | DLoadSave2 |
Read OK: | ✔ |
File size: | 26F7 bytes |
Load address: | FFFF1D00 |
Exec address: | FFFF8023 |
Duplicates
There are 2 duplicate copies of this file in the archive:
- Personal collection » Acorn ADFS disks » Electron » Electron_disk_loader_A.ADF » DLoadSave2
- Personal collection » Acorn ADFS disks » Electron » Electron_disk_loader_B.ADF » DLoadSave2
- Personal collection » Acorn hard disk » zipped_disks » elk07 » discload/DLoadSave2
File contents
1 REM TAPE -> ADFS Loader/Saver by M. FORD , 1994 (with event-driven pause routine) Filename: DLoadSave2 2 filenames$="CRAZEE"+CHR$13+"CRAZEER"+CHR$13 3 PauseKey$="P":ContKey$="O":REM Hold down CTRL with key 5 OFILE=&AA3A:BACK=&8698:OBroutine=&9C05:OBrout2=&8C10:OBrout3=&99A9:B2routine=&A000:EVENT=&AAAE 6 OSBYTE=&FFF4:OSWORD=&FFF1:OSFILE=&FFDD:OSBGET=&FFD7:OSBPUT=&FFD4: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:STXevrout+3 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 75 .evententry LDA#(enterev MOD256):STA&70:LDA#(enterev DIV256):STA&71:LDY#0:LDA#&4C:STA(&70),Y:INY:LDA#(evroutine MOD256):STA(&70),Y:INY:LDA#(evroutine 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-1) MOD256):STA&74:LDA#((fileret-1) 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#(evrout MOD256):STA&74:LDA#(evrout DIV256):STA&75:JSRmoveloop2 135 .b1event LDA#(evrout MOD256):STA&70:LDA#(evrout DIV256):STA&71:LDA#(EVENT MOD256):STA&72:LDA#(EVENT DIV256):STA&73:LDA#(evend MOD256):STA&74:LDA#(evend 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&20A:STAosbyteLO:LDA&20B:STAosbyteHI:LDA&212:STAosfileLO:LDA&213:STAosfileHI:LDA&21E:STAosfscLO:LDA&21F:STAosfscHI 165 LDA&204:STAinterLO:LDA&205:STAinterHI:LDA&220:STAeventLO:LDA&221:STAeventHI:LDA#14:LDX#4:LDY#0:JSROSBYTE:LDX#2:LDY#0:JSROSBYTE:SEI:JSRvectors:CLI: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:SEI:JSRvecnorm:CLI:JMPcont:.vecnorm LDAosfscLO:STA&21E:LDAosfscHI:STA&21F:LDAosfileLO:STA&212:LDAosfileHI:STA&213:LDAosbyteLO:STA&20A:LDAosbyteHI:STA&20B 192 LDAeventLO:STA&220:LDAeventHI:STA&221:LDA&204:STAinternewLO:LDA&205:STAinternewHI:LDAinterLO:STA&204:LDAinterHI:STA&205 195 STXendadd:LDX#0:.savevars LDA&70,X:STAtempstore,X:INX:CPX#6:BNEsavevars:STY&75:LDXendadd:STX&74:RTS:.cont PLA:BEQfilerout:JMPfscrout 200 .filerout LDY#0:LDA(&74),Y:TAX:INY:LDA(&74),Y:STX&70:STA&71:DEY:JSRfilename:LDX#0 210 .load LDA#0:STA&70:STA&72:LDA#9:STA&71:LDA#&AC:STA&73:LDA#&1D:STAendadd:LDY#0:JSRmoveloop:LDA#&89:STA&71:LDA#9:STA&73:LDA#&9D:STAendadd:LDY#0:JSRmoveloop:JMPloadadd 220 .moveloop LDA(&70),Y:STA(&72),Y:INY:BNEmoveloop:INC&71:INC&73:LDA&71:CMPendadd:BNEmoveloop:RTS 230 .loadadd LDA#0:STA&A00:LDA#&B:STA&A01:STXendadd:CPX#1:BEQfindadd:LDA#0:STA&72:LDA#&A:STA&73:LDA&74:STA&70:LDA#3:STAendadd:LDA&75:LDY#0:.ram CMP#&C0:BNEno1:LDA#&1D:JMPst:.no1 CMP#&1D:BCSst:CMP#9:BCCst:CLC:ADC#&A3:.st STA&71 240 .tr LDA(&70),Y:STA(&72),Y:INC&72:LDA&72:CMP#&12:BEQexec:INC&70:BNEtr:INC&71:LDA&71:JMPram 250 .exec LDA#0:STA&A00:LDA#&B:STA&A01:PLA:PHA:BNEloader:JMPsave:.loader 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:PLA:STA&73:LDX&A06:LDY&A07:DEX:CPX#&FF:BNEstack:DEY:.stack TYA:PHA:TXA:PHA:LDA&73: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:JMPend 302 .save LDA&A0B:CMP#&1D:BCSsave2:CMP#9:BCSbytesave:LDA&A0F:CMP#9:BCSbytesave 304 .save2 LDA#0:TAX:LDY#&A:JSROSFILE:JMPend 306 .bytesave LDA&A0F:CMP#&1D:BCSopenout:CLC:ADC#&A3:STA&A0F:.openout LDA#&80:LDX#0:LDY#&B:JSROSFIND:TAY:CMP#0:BNEokS:JMPerror1:.okS LDA&A0A:STA&70:LDA&A0B:CMP#9:BCCnormS:CLC:ADC#&A3:.normS STA&71 308 .bput LDA&70:CMP&A0E:BNEsa:LDA&71:CMP&A0F:BEQendsave:.sa LDA(&70,X):JSROSBPUT:INC&70:BNEbput:INC&71:LDA&71:CMP#&C0:BEQsubS:CMP#9:BNEbput:LDA#&AC:STA&71:BNEbput:.subS LDA#&1D:STA&71:BNEbput:.endsave LDA#0:JSROSFIND 309 LDA#1:LDX#0:LDY#&A:JSROSFILE:LDA#3:STA&A0E:LDA#4:LDX#0:LDY#&A:JSROSFILE 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 315 JSRpause:.wait2 JSRpauseend:BCCwait2 320 .ret SEI:JSRvectors2:JSRvars:CLI:JMP BACK-(osbyte-bank1-1):]: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 322 LDA#(OFSC MOD256):STA&21E:LDA#(OFSC DIV256):STA&21F:LDA#(EVENT MOD256):STA&220:LDA#(EVENT DIV256):STA&221:RTS 330 .vars LDY&75:LDX&74:STXendadd:LDX#0:.loadvars LDAtempstore,X:STA&70,X:INX:CPX#6:BNEloadvars:LDXendadd 335 LDAinternewLO:STA&204:LDAinternewHI:STA&205:LDA#0:STA&FCDD:RTS 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 372 .evroutine JSRvecnorm:LDA#13:LDX#4:LDY#0:JSROSBYTE:JSRpause:.wait JSRpauseend:BCCwait:LDA#14:LDX#4:LDY#0:JSROSBYTE:JSRvectors2:JSRvars:JMP BACK-(osbyte-bank1-1) 378 .pause LDA#&81:LDX#(FNinkey(PauseKey$)):LDY#&FF:JSROSBYTE:LDA#0:BCCpauseret:LDA#&81:LDX#&FE:LDY#&FF:JSROSBYTE:LDA#0:BCCpauseret:LDA#1:.pauseret STApauseflag:RTS 379 .pauseend LDApauseflag:BEQunpause:LDA#&81:LDX#(FNinkey(ContKey$)):LDY#&FF:JSROSBYTE:BCCstaypause:LDA#&81:LDX#&FE:LDY#&FF:JSROSBYTE:BCCstaypause:.unpause SEC:.staypause RTS 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 .eventLO EQUB0:.eventHI EQUB0:.interLO EQUB0:.interHI EQUB0:.internewLO EQUB0:.internewHI EQUB0 385 .tempstore EQUD0:EQUW0:.pauseflag EQUB0:.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:RTS:] 400 file=O%:P%=OFILE:[OPTpass+4:CLC:BCCof:.OFSC SEC:.of PHP:PHA:]:bank2=O%:[OPTpass+4:LDA#0:STA&F4:STA&FE05:.enter:]:P%=O%:[OPTpass+4:RTS:]:fileret=O%:P%=BACK:[OPTpass+4:PLA:PLP:RTS:] 405 evrout=O%:P%=EVENT:[OPTpass+4:PHP:PHA:LDA#0:STA&F4:STA&FE05:.enterev:]:evend=O% 410 NEXT 420 PRINT"Save (Y/N)?":A$=GET$:IF A$="Y" THEN OSCLI"SAVE DL 2000 "+STR$~O% 425 END 430 DEFFNinkey(Key$) 435 RESTORE 440 FORletter=1 TO ASC(Key$)-64 450 READ value 460 NEXT letter 470 =value+256 480 DATA -66,-101,-83,-51,-35,-68,-84,-85,-38,-70,-71,-87,-102,-86,-55,-56,-17,-52,-82,-36,-54,-100,-34,-67,-69,-98
� � TAPE -> ADFS Loader/Saver by M. FORD , 1994 (with event-driven pause routine) Filename: DLoadSave2 * filenames$="CRAZEE"+�13+"CRAZEER"+�13 9 PauseKey$="P":ContKey$="O":� Hold down CTRL with key c OFILE=&AA3A:BACK=&8698:OBroutine=&9C05:OBrout2=&8C10:OBrout3=&99A9:B2routine=&A000:EVENT=&AAAE _ OSBYTE=&FFF4:OSWORD=&FFF1:OSFILE=&FFDD:OSBGET=&FFD7:OSBPUT=&FFD4: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 (> .found DEC&8800:CLI:STXbank1+1:INX:STXbank2+1:STXevrout+3 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 K� .evententry LDA#(enterev �256):STA&70:LDA#(enterev �256):STA&71:LDY#0:LDA#&4C:STA(&70),Y:INY:LDA#(evroutine �256):STA(&70),Y:INY:LDA#(evroutine �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-1) �256):STA&74:LDA#((fileret-1) �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#(evrout �256):STA&74:LDA#(evrout �256):STA&75:JSRmoveloop2 �� .b1event LDA#(evrout �256):STA&70:LDA#(evrout �256):STA&71:LDA#(EVENT �256):STA&72:LDA#(EVENT �256):STA&73:LDA#(evend �256):STA&74:LDA#(evend �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&20A:STAosbyteLO:LDA&20B:STAosbyteHI:LDA&212:STAosfileLO:LDA&213:STAosfileHI:LDA&21E:STAosfscLO:LDA&21F:STAosfscHI �� LDA&204:STAinterLO:LDA&205:STAinterHI:LDA&220:STAeventLO:LDA&221:STAeventHI:LDA#14:LDX#4:LDY#0:JSROSBYTE:LDX#2:LDY#0:JSROSBYTE:SEI:JSRvectors:CLI: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:SEI:JSRvecnorm:CLI:JMPcont:.vecnorm LDAosfscLO:STA&21E:LDAosfscHI:STA&21F:LDAosfileLO:STA&212:LDAosfileHI:STA&213:LDAosbyteLO:STA&20A:LDAosbyteHI:STA&20B �| LDAeventLO:STA&220:LDAeventHI:STA&221:LDA&204:STAinternewLO:LDA&205:STAinternewHI:LDAinterLO:STA&204:LDAinterHI:STA&205 É STXendadd:LDX#0:.savevars LDA&70,X:STAtempstore,X:INX:CPX#6:BNEsavevars:STY&75:LDXendadd:STX&74:RTS:.cont PLA:BEQfilerout:JMPfscrout �V .filerout LDY#0:LDA(&74),Y:TAX:INY:LDA(&74),Y:STX&70:STA&71:DEY:JSRfilename:LDX#0 ҩ .load LDA#0:STA&70:STA&72:LDA#9:STA&71:LDA#&AC:STA&73:LDA#&1D:STAendadd:LDY#0:JSRmoveloop:LDA#&89:STA&71:LDA#9:STA&73:LDA#&9D:STAendadd:LDY#0:JSRmoveloop:JMPloadadd �c .moveloop LDA(&70),Y:STA(&72),Y:INY:BNEmoveloop:INC&71:INC&73:LDA&71:CMPendadd:BNEmoveloop:RTS �� .loadadd LDA#0:STA&A00:LDA#&B:STA&A01:STXendadd:CPX#1:BEQfindadd:LDA#0:STA&72:LDA#&A:STA&73:LDA&74:STA&70:LDA#3:STAendadd:LDA&75:LDY#0:.ram CMP#&C0:BNEno1:LDA#&1D:JMPst:.no1 CMP#&1D:BCSst:CMP#9:BCCst:CLC:ADC#&A3:.st STA&71 �^ .tr LDA(&70),Y:STA(&72),Y:INC&72:LDA&72:CMP#&12:BEQexec:INC&70:BNEtr:INC&71:LDA&71:JMPram �� .exec LDA#0:STA&A00:LDA#&B:STA&A01:PLA:PHA:BNEloader:JMPsave:.loader 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:PLA:STA&73:LDX&A06:LDY&A07:DEX:CPX#&FF:BNEstack:DEY:.stack TYA:PHA:TXA:PHA:LDA&73: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 ,W LDA#&AC:STA&71:BNEbget:.sub LDA#&1D:STA&71:BNEbget:.endload LDA#0:JSROSFIND:JMPend .O .save LDA&A0B:CMP#&1D:BCSsave2:CMP#9:BCSbytesave:LDA&A0F:CMP#9:BCSbytesave 0- .save2 LDA#0:TAX:LDY#&A:JSROSFILE:JMPend 2� .bytesave LDA&A0F:CMP#&1D:BCSopenout:CLC:ADC#&A3:STA&A0F:.openout LDA#&80:LDX#0:LDY#&B:JSROSFIND:TAY:CMP#0:BNEokS:JMPerror1:.okS LDA&A0A:STA&70:LDA&A0B:CMP#9:BCCnormS:CLC:ADC#&A3:.normS STA&71 4� .bput LDA&70:CMP&A0E:BNEsa:LDA&71:CMP&A0F:BEQendsave:.sa LDA(&70,X):JSROSBPUT:INC&70:BNEbput:INC&71:LDA&71:CMP#&C0:BEQsubS:CMP#9:BNEbput:LDA#&AC:STA&71:BNEbput:.subS LDA#&1D:STA&71:BNEbput:.endsave LDA#0:JSROSFIND 5L LDA#1:LDX#0:LDY#&A:JSROSFILE:LDA#3:STA&A0E:LDA#4:LDX#0:LDY#&A:JSROSFILE 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 ;) JSRpause:.wait2 JSRpauseend:BCCwait2 @� .ret SEI:JSRvectors2:JSRvars:CLI:JMP BACK-(osbyte-bank1-1):]: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 Bj LDA#(OFSC �256):STA&21E:LDA#(OFSC �256):STA&21F:LDA#(EVENT �256):STA&220:LDA#(EVENT �256):STA&221:RTS Jj .vars LDY&75:LDX&74:STXendadd:LDX#0:.loadvars LDAtempstore,X:STA&70,X:INX:CPX#6:BNEloadvars:LDXendadd OC LDAinternewLO:STA&204:LDAinternewHI:STA&205:LDA#0:STA&FCDD:RTS 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 t� .evroutine JSRvecnorm:LDA#13:LDX#4:LDY#0:JSROSBYTE:JSRpause:.wait JSRpauseend:BCCwait:LDA#14:LDX#4:LDY#0:JSROSBYTE:JSRvectors2:JSRvars:JMP BACK-(osbyte-bank1-1) z� .pause LDA#&81:LDX#(�inkey(PauseKey$)):LDY#&FF:JSROSBYTE:LDA#0:BCCpauseret:LDA#&81:LDX#&FE:LDY#&FF:JSROSBYTE:LDA#0:BCCpauseret:LDA#1:.pauseret STApauseflag:RTS {� .pauseend LDApauseflag:BEQunpause:LDA#&81:LDX#(�inkey(ContKey$)):LDY#&FF:JSROSBYTE:BCCstaypause:LDA#&81:LDX#&FE:LDY#&FF:JSROSBYTE:BCCstaypause:.unpause SEC:.staypause RTS |� .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 ~d .eventLO EQUB0:.eventHI EQUB0:.interLO EQUB0:.interHI EQUB0:.internewLO EQUB0:.internewHI EQUB0 �d .tempstore EQUD0:EQUW0:.pauseflag EQUB0:.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:RTS:] �� file=O%:P%=OFILE:[OPTpass+4:CLC:BCCof:.OFSC SEC:.of PHP:PHA:]:bank2=O%:[OPTpass+4:LDA#0:STA&F4:STA&FE05:.enter:]:P%=O%:[OPTpass+4:RTS:]:fileret=O%:P%=BACK:[OPTpass+4:PLA:PLP:RTS:] �T evrout=O%:P%=EVENT:[OPTpass+4:PHP:PHA:LDA#0:STA&F4:STA&FE05:.enterev:]:evend=O% � � �9 �"Save (Y/N)?":A$=�:� A$="Y" � �"SAVE DL 2000 "+�~O% � � � ݤinkey(Key$) � � � �letter=1 � �(Key$)-64 � � value � � letter � =value+256 �q � -66,-101,-83,-51,-35,-68,-84,-85,-38,-70,-71,-87,-102,-86,-55,-56,-17,-52,-82,-36,-54,-100,-34,-67,-69,-98 �
00000000 0d 00 01 b6 20 f4 20 20 20 20 54 41 50 45 20 2d |.... . TAPE -| 00000010 3e 20 41 44 46 53 20 20 4c 6f 61 64 65 72 2f 53 |> ADFS Loader/S| 00000020 61 76 65 72 20 20 20 20 20 20 20 20 20 20 20 20 |aver | 00000030 20 20 20 20 20 20 20 62 79 20 4d 2e 20 46 4f 52 | by M. FOR| 00000040 44 20 2c 20 31 39 39 34 20 20 20 20 20 20 20 20 |D , 1994 | 00000050 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | * 00000070 20 20 20 20 20 20 20 20 20 20 20 28 77 69 74 68 | (with| 00000080 20 65 76 65 6e 74 2d 64 72 69 76 65 6e 20 70 61 | event-driven pa| 00000090 75 73 65 20 72 6f 75 74 69 6e 65 29 20 20 20 20 |use routine) | 000000a0 20 20 46 69 6c 65 6e 61 6d 65 3a 20 44 4c 6f 61 | Filename: DLoa| 000000b0 64 53 61 76 65 32 0d 00 02 2a 20 66 69 6c 65 6e |dSave2...* filen| 000000c0 61 6d 65 73 24 3d 22 43 52 41 5a 45 45 22 2b bd |ames$="CRAZEE"+.| 000000d0 31 33 2b 22 43 52 41 5a 45 45 52 22 2b bd 31 33 |13+"CRAZEER"+.13| 000000e0 0d 00 03 39 20 50 61 75 73 65 4b 65 79 24 3d 22 |...9 PauseKey$="| 000000f0 50 22 3a 43 6f 6e 74 4b 65 79 24 3d 22 4f 22 3a |P":ContKey$="O":| 00000100 f4 20 48 6f 6c 64 20 64 6f 77 6e 20 43 54 52 4c |. Hold down CTRL| 00000110 20 77 69 74 68 20 6b 65 79 0d 00 05 63 20 4f 46 | with key...c OF| 00000120 49 4c 45 3d 26 41 41 33 41 3a 42 41 43 4b 3d 26 |ILE=&AA3A:BACK=&| 00000130 38 36 39 38 3a 4f 42 72 6f 75 74 69 6e 65 3d 26 |8698:OBroutine=&| 00000140 39 43 30 35 3a 4f 42 72 6f 75 74 32 3d 26 38 43 |9C05:OBrout2=&8C| 00000150 31 30 3a 4f 42 72 6f 75 74 33 3d 26 39 39 41 39 |10:OBrout3=&99A9| 00000160 3a 42 32 72 6f 75 74 69 6e 65 3d 26 41 30 30 30 |:B2routine=&A000| 00000170 3a 45 56 45 4e 54 3d 26 41 41 41 45 0d 00 06 5f |:EVENT=&AAAE..._| 00000180 20 4f 53 42 59 54 45 3d 26 46 46 46 34 3a 4f 53 | OSBYTE=&FFF4:OS| 00000190 57 4f 52 44 3d 26 46 46 46 31 3a 4f 53 46 49 4c |WORD=&FFF1:OSFIL| 000001a0 45 3d 26 46 46 44 44 3a 4f 53 42 47 45 54 3d 26 |E=&FFDD:OSBGET=&| 000001b0 46 46 44 37 3a 4f 53 42 50 55 54 3d 26 46 46 44 |FFD7:OSBPUT=&FFD| 000001c0 34 3a 4f 53 46 49 4e 44 3d 26 46 46 43 45 3a 4f |4:OSFIND=&FFCE:O| 000001d0 53 41 53 43 49 3d 26 46 46 45 33 0d 00 0a 26 20 |SASCI=&FFE3...& | 000001e0 e3 70 61 73 73 3d 30 20 b8 20 32 20 88 20 32 3a |.pass=0 . 2 . 2:| 000001f0 50 25 3d 26 32 30 30 30 3a 5b 4f 50 54 70 61 73 |P%=&2000:[OPTpas| 00000200 73 0d 00 14 66 20 4c 44 41 23 30 3a 53 54 41 26 |s...f LDA#0:STA&| 00000210 46 43 44 43 3a 53 54 41 26 46 43 44 45 3a 4c 44 |FCDC:STA&FCDE:LD| 00000220 41 23 31 35 3a 53 54 41 26 46 34 3a 53 54 41 26 |A#15:STA&F4:STA&| 00000230 46 45 30 35 3a 4c 44 58 23 32 3a 53 45 49 3a 2e |FE05:LDX#2:SEI:.| 00000240 74 65 73 74 20 54 58 41 3a 53 54 41 26 46 34 3a |test TXA:STA&F4:| 00000250 53 54 41 26 46 45 30 35 3a 4c 44 41 23 30 3a 4c |STA&FE05:LDA#0:L| 00000260 44 41 26 38 38 30 30 0d 00 1e 37 20 49 4e 43 26 |DA&8800...7 INC&| 00000270 38 38 30 30 3a 43 4d 50 26 38 38 30 30 3a 42 4e |8800:CMP&8800:BN| 00000280 45 66 6f 75 6e 64 3a 44 45 58 3a 44 45 58 3a 42 |Efound:DEX:DEX:B| 00000290 50 4c 74 65 73 74 3a 4c 44 58 23 26 46 46 0d 00 |PLtest:LDX#&FF..| 000002a0 28 3e 20 2e 66 6f 75 6e 64 20 44 45 43 26 38 38 |(> .found DEC&88| 000002b0 30 30 3a 43 4c 49 3a 53 54 58 62 61 6e 6b 31 2b |00:CLI:STXbank1+| 000002c0 31 3a 49 4e 58 3a 53 54 58 62 61 6e 6b 32 2b 31 |1:INX:STXbank2+1| 000002d0 3a 53 54 58 65 76 72 6f 75 74 2b 33 0d 00 32 ef |:STXevrout+3..2.| 000002e0 20 2e 42 41 53 49 43 72 6f 6d 20 4c 44 41 23 31 | .BASICrom LDA#1| 000002f0 31 3a 53 54 41 26 46 34 3a 53 54 41 26 46 45 30 |1:STA&F4:STA&FE0| 00000300 35 3a 4c 44 41 23 30 3a 53 54 41 26 37 30 3a 53 |5:LDA#0:STA&70:S| 00000310 54 41 26 37 32 3a 53 54 41 26 37 34 3a 4c 44 41 |TA&72:STA&74:LDA| 00000320 23 26 38 30 3a 53 54 41 26 37 31 3a 4c 44 41 23 |#&80:STA&71:LDA#| 00000330 26 34 30 3a 53 54 41 26 37 33 3a 4c 44 41 23 26 |&40:STA&73:LDA#&| 00000340 41 30 3a 53 54 41 26 37 35 3a 4a 53 52 6d 6f 76 |A0:STA&75:JSRmov| 00000350 65 6c 6f 6f 70 32 3a 4c 44 41 23 31 35 3a 53 54 |eloop2:LDA#15:ST| 00000360 41 26 46 34 3a 53 54 41 26 46 45 30 35 3a 4a 53 |A&F4:STA&FE05:JS| 00000370 52 62 61 6e 6b 31 3a 4c 44 41 23 30 3a 53 54 41 |Rbank1:LDA#0:STA| 00000380 26 37 30 3a 53 54 41 26 37 32 3a 53 54 41 26 37 |&70:STA&72:STA&7| 00000390 34 3a 4c 44 41 23 26 34 30 3a 53 54 41 26 37 31 |4:LDA#&40:STA&71| 000003a0 3a 4c 44 41 23 26 38 30 3a 53 54 41 26 37 33 3a |:LDA#&80:STA&73:| 000003b0 4c 44 41 23 26 36 30 3a 53 54 41 26 37 35 3a 4a |LDA#&60:STA&75:J| 000003c0 53 52 6d 6f 76 65 6c 6f 6f 70 32 0d 00 3c e4 4c |SRmoveloop2..<.L| 000003d0 44 41 23 31 31 3a 53 54 41 26 46 34 3a 53 54 41 |DA#11:STA&F4:STA| 000003e0 26 46 45 30 35 3a 4c 44 41 23 30 3a 53 54 41 26 |&FE05:LDA#0:STA&| 000003f0 37 30 3a 53 54 41 26 37 32 3a 53 54 41 26 37 34 |70:STA&72:STA&74| 00000400 3a 4c 44 41 23 26 41 30 3a 53 54 41 26 37 31 3a |:LDA#&A0:STA&71:| 00000410 4c 44 41 23 26 34 30 3a 53 54 41 26 37 33 3a 4c |LDA#&40:STA&73:L| 00000420 44 41 23 26 43 30 3a 53 54 41 26 37 35 3a 4a 53 |DA#&C0:STA&75:JS| 00000430 52 6d 6f 76 65 6c 6f 6f 70 32 3a 4c 44 41 23 31 |Rmoveloop2:LDA#1| 00000440 35 3a 53 54 41 26 46 34 3a 53 54 41 26 46 45 30 |5:STA&F4:STA&FE0| 00000450 35 3a 4a 53 52 62 61 6e 6b 31 3a 4c 44 41 23 30 |5:JSRbank1:LDA#0| 00000460 3a 53 54 41 26 37 30 3a 53 54 41 26 37 32 3a 53 |:STA&70:STA&72:S| 00000470 54 41 26 37 34 3a 4c 44 41 23 26 34 30 3a 53 54 |TA&74:LDA#&40:ST| 00000480 41 26 37 31 3a 4c 44 41 23 26 41 30 3a 53 54 41 |A&71:LDA#&A0:STA| 00000490 26 37 33 3a 4c 44 41 23 26 36 30 3a 53 54 41 26 |&73:LDA#&60:STA&| 000004a0 37 35 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 32 0d |75:JSRmoveloop2.| 000004b0 00 46 aa 20 2e 62 61 6e 6b 32 65 6e 74 72 79 20 |.F. .bank2entry | 000004c0 4a 53 52 62 61 6e 6b 32 3a 4c 44 41 23 28 65 6e |JSRbank2:LDA#(en| 000004d0 74 65 72 20 83 32 35 36 29 3a 53 54 41 26 37 30 |ter .256):STA&70| 000004e0 3a 4c 44 41 23 28 65 6e 74 65 72 20 81 32 35 36 |:LDA#(enter .256| 000004f0 29 3a 53 54 41 26 37 31 3a 4c 44 59 23 30 3a 4c |):STA&71:LDY#0:L| 00000500 44 41 23 26 34 43 3a 53 54 41 28 26 37 30 29 2c |DA#&4C:STA(&70),| 00000510 59 3a 49 4e 59 3a 4c 44 41 23 28 42 32 72 6f 75 |Y:INY:LDA#(B2rou| 00000520 74 69 6e 65 20 83 32 35 36 29 3a 53 54 41 28 26 |tine .256):STA(&| 00000530 37 30 29 2c 59 3a 49 4e 59 3a 4c 44 41 23 28 42 |70),Y:INY:LDA#(B| 00000540 32 72 6f 75 74 69 6e 65 20 81 32 35 36 29 3a 53 |2routine .256):S| 00000550 54 41 28 26 37 30 29 2c 59 0d 00 4b a5 20 2e 65 |TA(&70),Y..K. .e| 00000560 76 65 6e 74 65 6e 74 72 79 20 4c 44 41 23 28 65 |vententry LDA#(e| 00000570 6e 74 65 72 65 76 20 83 32 35 36 29 3a 53 54 41 |nterev .256):STA| 00000580 26 37 30 3a 4c 44 41 23 28 65 6e 74 65 72 65 76 |&70:LDA#(enterev| 00000590 20 81 32 35 36 29 3a 53 54 41 26 37 31 3a 4c 44 | .256):STA&71:LD| 000005a0 59 23 30 3a 4c 44 41 23 26 34 43 3a 53 54 41 28 |Y#0:LDA#&4C:STA(| 000005b0 26 37 30 29 2c 59 3a 49 4e 59 3a 4c 44 41 23 28 |&70),Y:INY:LDA#(| 000005c0 65 76 72 6f 75 74 69 6e 65 20 83 32 35 36 29 3a |evroutine .256):| 000005d0 53 54 41 28 26 37 30 29 2c 59 3a 49 4e 59 3a 4c |STA(&70),Y:INY:L| 000005e0 44 41 23 28 65 76 72 6f 75 74 69 6e 65 20 81 32 |DA#(evroutine .2| 000005f0 35 36 29 3a 53 54 41 28 26 37 30 29 2c 59 0d 00 |56):STA(&70),Y..| 00000600 50 b4 20 2e 62 61 6e 6b 32 6d 61 69 6e 20 4c 44 |P. .bank2main LD| 00000610 41 23 28 73 74 61 72 74 20 83 32 35 36 29 3a 53 |A#(start .256):S| 00000620 54 41 26 37 30 3a 4c 44 41 23 28 73 74 61 72 74 |TA&70:LDA#(start| 00000630 20 81 32 35 36 29 3a 53 54 41 26 37 31 3a 4c 44 | .256):STA&71:LD| 00000640 41 23 28 62 61 6e 6b 31 20 83 32 35 36 29 3a 53 |A#(bank1 .256):S| 00000650 54 41 26 37 34 3a 4c 44 41 23 28 62 61 6e 6b 31 |TA&74:LDA#(bank1| 00000660 20 81 32 35 36 29 3a 53 54 41 26 37 35 3a 4c 44 | .256):STA&75:LD| 00000670 41 23 28 42 32 72 6f 75 74 69 6e 65 20 83 32 35 |A#(B2routine .25| 00000680 36 29 3a 53 54 41 26 37 32 3a 4c 44 41 23 28 42 |6):STA&72:LDA#(B| 00000690 32 72 6f 75 74 69 6e 65 20 81 32 35 36 29 3a 53 |2routine .256):S| 000006a0 54 41 26 37 33 3a 4a 53 52 6d 6f 76 65 6c 6f 6f |TA&73:JSRmoveloo| 000006b0 70 32 0d 00 5a 61 20 2e 41 44 46 53 64 61 74 61 |p2..Za .ADFSdata| 000006c0 20 4c 44 41 23 30 3a 53 54 41 26 37 30 3a 53 54 | LDA#0:STA&70:ST| 000006d0 41 26 37 32 3a 53 54 41 26 37 34 3a 4c 44 41 23 |A&72:STA&74:LDA#| 000006e0 39 3a 53 54 41 26 37 31 3a 4c 44 41 23 26 38 39 |9:STA&71:LDA#&89| 000006f0 3a 53 54 41 26 37 33 3a 4c 44 41 23 26 31 44 3a |:STA&73:LDA#&1D:| 00000700 53 54 41 26 37 35 3a 4a 53 52 6d 6f 76 65 6c 6f |STA&75:JSRmovelo| 00000710 6f 70 32 0d 00 64 d7 20 2e 62 31 72 65 74 75 72 |op2..d. .b1retur| 00000720 6e 20 4c 44 41 23 28 62 61 6e 6b 31 20 83 32 35 |n LDA#(bank1 .25| 00000730 36 29 3a 53 54 41 26 37 30 3a 4c 44 41 23 28 62 |6):STA&70:LDA#(b| 00000740 61 6e 6b 31 20 81 32 35 36 29 3a 53 54 41 26 37 |ank1 .256):STA&7| 00000750 31 3a 4c 44 41 23 28 42 41 43 4b 2d 28 6f 73 62 |1:LDA#(BACK-(osb| 00000760 79 74 65 2d 62 61 6e 6b 31 2d 31 29 29 20 83 32 |yte-bank1-1)) .2| 00000770 35 36 29 3a 53 54 41 26 37 32 3a 4c 44 41 23 28 |56):STA&72:LDA#(| 00000780 42 41 43 4b 2d 28 6f 73 62 79 74 65 2d 62 61 6e |BACK-(osbyte-ban| 00000790 6b 31 2d 31 29 29 20 81 32 35 36 29 3a 53 54 41 |k1-1)) .256):STA| 000007a0 26 37 33 3a 4c 44 41 23 28 28 6f 73 62 79 74 65 |&73:LDA#((osbyte| 000007b0 2d 31 29 20 83 32 35 36 29 3a 53 54 41 26 37 34 |-1) .256):STA&74| 000007c0 3a 4c 44 41 23 28 28 6f 73 62 79 74 65 2d 31 29 |:LDA#((osbyte-1)| 000007d0 20 81 32 35 36 29 3a 53 54 41 26 37 35 3a 4a 53 | .256):STA&75:JS| 000007e0 52 6d 6f 76 65 6c 6f 6f 70 32 0d 00 6e c2 20 2e |Rmoveloop2..n. .| 000007f0 62 31 6f 73 62 79 74 65 20 4a 53 52 62 61 6e 6b |b1osbyte JSRbank| 00000800 31 3a 4c 44 41 23 28 6f 73 62 79 74 65 20 83 32 |1:LDA#(osbyte .2| 00000810 35 36 29 3a 53 54 41 26 37 30 3a 4c 44 41 23 28 |56):STA&70:LDA#(| 00000820 6f 73 62 79 74 65 20 81 32 35 36 29 3a 53 54 41 |osbyte .256):STA| 00000830 26 37 31 3a 4c 44 41 23 28 4f 42 72 6f 75 74 69 |&71:LDA#(OBrouti| 00000840 6e 65 20 83 32 35 36 29 3a 53 54 41 26 37 32 3a |ne .256):STA&72:| 00000850 4c 44 41 23 28 4f 42 72 6f 75 74 69 6e 65 20 81 |LDA#(OBroutine .| 00000860 32 35 36 29 3a 53 54 41 26 37 33 3a 4c 44 41 23 |256):STA&73:LDA#| 00000870 28 6f 73 62 79 74 65 32 20 83 32 35 36 29 3a 53 |(osbyte2 .256):S| 00000880 54 41 26 37 34 3a 4c 44 41 23 28 6f 73 62 79 74 |TA&74:LDA#(osbyt| 00000890 65 32 20 81 32 35 36 29 3a 53 54 41 26 37 35 3a |e2 .256):STA&75:| 000008a0 4a 53 52 6d 6f 76 65 6c 6f 6f 70 32 0d 00 70 b8 |JSRmoveloop2..p.| 000008b0 20 2e 62 31 6f 73 62 79 74 65 32 20 4c 44 41 23 | .b1osbyte2 LDA#| 000008c0 28 6f 73 62 79 74 65 32 20 83 32 35 36 29 3a 53 |(osbyte2 .256):S| 000008d0 54 41 26 37 30 3a 4c 44 41 23 28 6f 73 62 79 74 |TA&70:LDA#(osbyt| 000008e0 65 32 20 81 32 35 36 29 3a 53 54 41 26 37 31 3a |e2 .256):STA&71:| 000008f0 4c 44 41 23 28 4f 42 72 6f 75 74 32 20 83 32 35 |LDA#(OBrout2 .25| 00000900 36 29 3a 53 54 41 26 37 32 3a 4c 44 41 23 28 4f |6):STA&72:LDA#(O| 00000910 42 72 6f 75 74 32 20 81 32 35 36 29 3a 53 54 41 |Brout2 .256):STA| 00000920 26 37 33 3a 4c 44 41 23 28 6f 73 62 79 74 65 33 |&73:LDA#(osbyte3| 00000930 20 83 32 35 36 29 3a 53 54 41 26 37 34 3a 4c 44 | .256):STA&74:LD| 00000940 41 23 28 6f 73 62 79 74 65 33 20 81 32 35 36 29 |A#(osbyte3 .256)| 00000950 3a 53 54 41 26 37 35 3a 4a 53 52 6d 6f 76 65 6c |:STA&75:JSRmovel| 00000960 6f 6f 70 32 0d 00 72 b2 20 2e 62 31 6f 73 62 79 |oop2..r. .b1osby| 00000970 74 65 33 20 4c 44 41 23 28 6f 73 62 79 74 65 33 |te3 LDA#(osbyte3| 00000980 20 83 32 35 36 29 3a 53 54 41 26 37 30 3a 4c 44 | .256):STA&70:LD| 00000990 41 23 28 6f 73 62 79 74 65 33 20 81 32 35 36 29 |A#(osbyte3 .256)| 000009a0 3a 53 54 41 26 37 31 3a 4c 44 41 23 28 4f 42 72 |:STA&71:LDA#(OBr| 000009b0 6f 75 74 33 20 83 32 35 36 29 3a 53 54 41 26 37 |out3 .256):STA&7| 000009c0 32 3a 4c 44 41 23 28 4f 42 72 6f 75 74 33 20 81 |2:LDA#(OBrout3 .| 000009d0 32 35 36 29 3a 53 54 41 26 37 33 3a 4c 44 41 23 |256):STA&73:LDA#| 000009e0 28 66 69 6c 65 20 83 32 35 36 29 3a 53 54 41 26 |(file .256):STA&| 000009f0 37 34 3a 4c 44 41 23 28 66 69 6c 65 20 81 32 35 |74:LDA#(file .25| 00000a00 36 29 3a 53 54 41 26 37 35 3a 4a 53 52 6d 6f 76 |6):STA&75:JSRmov| 00000a10 65 6c 6f 6f 70 32 0d 00 78 b5 20 2e 62 31 6f 73 |eloop2..x. .b1os| 00000a20 66 69 6c 65 20 4c 44 41 23 28 66 69 6c 65 20 83 |file LDA#(file .| 00000a30 32 35 36 29 3a 53 54 41 26 37 30 3a 4c 44 41 23 |256):STA&70:LDA#| 00000a40 28 66 69 6c 65 20 81 32 35 36 29 3a 53 54 41 26 |(file .256):STA&| 00000a50 37 31 3a 4c 44 41 23 28 4f 46 49 4c 45 20 83 32 |71:LDA#(OFILE .2| 00000a60 35 36 29 3a 53 54 41 26 37 32 3a 4c 44 41 23 28 |56):STA&72:LDA#(| 00000a70 4f 46 49 4c 45 20 81 32 35 36 29 3a 53 54 41 26 |OFILE .256):STA&| 00000a80 37 33 3a 4c 44 41 23 28 28 66 69 6c 65 72 65 74 |73:LDA#((fileret| 00000a90 2d 31 29 20 83 32 35 36 29 3a 53 54 41 26 37 34 |-1) .256):STA&74| 00000aa0 3a 4c 44 41 23 28 28 66 69 6c 65 72 65 74 2d 31 |:LDA#((fileret-1| 00000ab0 29 20 81 32 35 36 29 3a 53 54 41 26 37 35 3a 4a |) .256):STA&75:J| 00000ac0 53 52 6d 6f 76 65 6c 6f 6f 70 32 0d 00 82 b0 20 |SRmoveloop2.... | 00000ad0 2e 62 31 66 69 6c 65 72 65 74 20 4c 44 41 23 28 |.b1fileret LDA#(| 00000ae0 66 69 6c 65 72 65 74 20 83 32 35 36 29 3a 53 54 |fileret .256):ST| 00000af0 41 26 37 30 3a 4c 44 41 23 28 66 69 6c 65 72 65 |A&70:LDA#(filere| 00000b00 74 20 81 32 35 36 29 3a 53 54 41 26 37 31 3a 4c |t .256):STA&71:L| 00000b10 44 41 23 28 42 41 43 4b 20 83 32 35 36 29 3a 53 |DA#(BACK .256):S| 00000b20 54 41 26 37 32 3a 4c 44 41 23 28 42 41 43 4b 20 |TA&72:LDA#(BACK | 00000b30 81 32 35 36 29 3a 53 54 41 26 37 33 3a 4c 44 41 |.256):STA&73:LDA| 00000b40 23 28 65 76 72 6f 75 74 20 83 32 35 36 29 3a 53 |#(evrout .256):S| 00000b50 54 41 26 37 34 3a 4c 44 41 23 28 65 76 72 6f 75 |TA&74:LDA#(evrou| 00000b60 74 20 81 32 35 36 29 3a 53 54 41 26 37 35 3a 4a |t .256):STA&75:J| 00000b70 53 52 6d 6f 76 65 6c 6f 6f 70 32 0d 00 87 ac 20 |SRmoveloop2.... | 00000b80 2e 62 31 65 76 65 6e 74 20 4c 44 41 23 28 65 76 |.b1event LDA#(ev| 00000b90 72 6f 75 74 20 83 32 35 36 29 3a 53 54 41 26 37 |rout .256):STA&7| 00000ba0 30 3a 4c 44 41 23 28 65 76 72 6f 75 74 20 81 32 |0:LDA#(evrout .2| 00000bb0 35 36 29 3a 53 54 41 26 37 31 3a 4c 44 41 23 28 |56):STA&71:LDA#(| 00000bc0 45 56 45 4e 54 20 83 32 35 36 29 3a 53 54 41 26 |EVENT .256):STA&| 00000bd0 37 32 3a 4c 44 41 23 28 45 56 45 4e 54 20 81 32 |72:LDA#(EVENT .2| 00000be0 35 36 29 3a 53 54 41 26 37 33 3a 4c 44 41 23 28 |56):STA&73:LDA#(| 00000bf0 65 76 65 6e 64 20 83 32 35 36 29 3a 53 54 41 26 |evend .256):STA&| 00000c00 37 34 3a 4c 44 41 23 28 65 76 65 6e 64 20 81 32 |74:LDA#(evend .2| 00000c10 35 36 29 3a 53 54 41 26 37 35 3a 4a 53 52 6d 6f |56):STA&75:JSRmo| 00000c20 76 65 6c 6f 6f 70 32 0d 00 8c 6a 20 2e 70 61 67 |veloop2...j .pag| 00000c30 65 20 4c 44 41 23 30 3a 53 54 41 26 37 30 3a 53 |e LDA#0:STA&70:S| 00000c40 54 41 26 37 32 3a 4c 44 41 26 31 38 3a 53 54 41 |TA&72:LDA&18:STA| 00000c50 26 37 31 3a 4c 44 41 23 26 45 3a 53 54 41 26 37 |&71:LDA#&E:STA&7| 00000c60 33 3a 53 54 41 26 31 38 3a 4c 44 41 26 31 32 3a |3:STA&18:LDA&12:| 00000c70 53 54 41 26 37 34 3a 4c 44 41 26 31 33 3a 53 54 |STA&74:LDA&13:ST| 00000c80 41 26 37 35 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 |A&75:JSRmoveloop| 00000c90 32 0d 00 96 67 20 2e 6c 61 6e 67 52 4f 4d 20 4c |2...g .langROM L| 00000ca0 44 41 62 61 6e 6b 31 2b 31 3a 53 54 41 26 32 38 |DAbank1+1:STA&28| 00000cb0 43 3a 43 4c 43 3a 41 44 43 23 26 41 30 3a 53 54 |C:CLC:ADC#&A0:ST| 00000cc0 41 26 37 30 3a 4c 44 41 23 32 3a 53 54 41 26 37 |A&70:LDA#2:STA&7| 00000cd0 31 3a 4c 44 59 23 30 3a 4c 44 41 23 26 36 30 3a |1:LDY#0:LDA#&60:| 00000ce0 53 54 41 28 26 37 30 29 2c 59 3a 4c 44 41 23 30 |STA(&70),Y:LDA#0| 00000cf0 3a 53 54 41 26 32 41 42 0d 00 a0 b3 20 2e 76 65 |:STA&2AB.... .ve| 00000d00 63 74 20 4c 44 41 26 32 30 41 3a 53 54 41 4f 42 |ct LDA&20A:STAOB| 00000d10 72 6f 75 74 32 2b 38 3a 4c 44 41 26 32 30 42 3a |rout2+8:LDA&20B:| 00000d20 53 54 41 4f 42 72 6f 75 74 32 2b 39 3a 4a 53 52 |STAOBrout2+9:JSR| 00000d30 62 61 6e 6b 32 3a 4c 44 41 26 32 30 41 3a 53 54 |bank2:LDA&20A:ST| 00000d40 41 6f 73 62 79 74 65 4c 4f 3a 4c 44 41 26 32 30 |AosbyteLO:LDA&20| 00000d50 42 3a 53 54 41 6f 73 62 79 74 65 48 49 3a 4c 44 |B:STAosbyteHI:LD| 00000d60 41 26 32 31 32 3a 53 54 41 6f 73 66 69 6c 65 4c |A&212:STAosfileL| 00000d70 4f 3a 4c 44 41 26 32 31 33 3a 53 54 41 6f 73 66 |O:LDA&213:STAosf| 00000d80 69 6c 65 48 49 3a 4c 44 41 26 32 31 45 3a 53 54 |ileHI:LDA&21E:ST| 00000d90 41 6f 73 66 73 63 4c 4f 3a 4c 44 41 26 32 31 46 |AosfscLO:LDA&21F| 00000da0 3a 53 54 41 6f 73 66 73 63 48 49 0d 00 a5 b2 20 |:STAosfscHI.... | 00000db0 4c 44 41 26 32 30 34 3a 53 54 41 69 6e 74 65 72 |LDA&204:STAinter| 00000dc0 4c 4f 3a 4c 44 41 26 32 30 35 3a 53 54 41 69 6e |LO:LDA&205:STAin| 00000dd0 74 65 72 48 49 3a 4c 44 41 26 32 32 30 3a 53 54 |terHI:LDA&220:ST| 00000de0 41 65 76 65 6e 74 4c 4f 3a 4c 44 41 26 32 32 31 |AeventLO:LDA&221| 00000df0 3a 53 54 41 65 76 65 6e 74 48 49 3a 4c 44 41 23 |:STAeventHI:LDA#| 00000e00 31 34 3a 4c 44 58 23 34 3a 4c 44 59 23 30 3a 4a |14:LDX#4:LDY#0:J| 00000e10 53 52 4f 53 42 59 54 45 3a 4c 44 58 23 32 3a 4c |SROSBYTE:LDX#2:L| 00000e20 44 59 23 30 3a 4a 53 52 4f 53 42 59 54 45 3a 53 |DY#0:JSROSBYTE:S| 00000e30 45 49 3a 4a 53 52 76 65 63 74 6f 72 73 3a 43 4c |EI:JSRvectors:CL| 00000e40 49 3a 4a 53 52 62 61 6e 6b 31 3a 4c 44 41 23 30 |I:JSRbank1:LDA#0| 00000e50 3a 53 54 41 26 46 43 44 44 3a 52 54 53 0d 00 aa |:STA&FCDD:RTS...| 00000e60 8d 20 2e 6d 6f 76 65 6c 6f 6f 70 32 20 4c 44 59 |. .moveloop2 LDY| 00000e70 23 30 3a 2e 6c 6f 6f 70 20 4c 44 41 28 26 37 30 |#0:.loop LDA(&70| 00000e80 29 2c 59 3a 53 54 41 28 26 37 32 29 2c 59 3a 49 |),Y:STA(&72),Y:I| 00000e90 4e 43 26 37 30 3a 42 4e 45 61 3a 49 4e 43 26 37 |NC&70:BNEa:INC&7| 00000ea0 31 3a 2e 61 20 49 4e 43 26 37 32 3a 42 4e 45 62 |1:.a INC&72:BNEb| 00000eb0 3a 49 4e 43 26 37 33 3a 2e 62 20 4c 44 41 26 37 |:INC&73:.b LDA&7| 00000ec0 30 3a 43 4d 50 26 37 34 3a 42 4e 45 6c 6f 6f 70 |0:CMP&74:BNEloop| 00000ed0 3a 4c 44 41 26 37 31 3a 43 4d 50 26 37 35 3a 42 |:LDA&71:CMP&75:B| 00000ee0 4e 45 6c 6f 6f 70 3a 52 54 53 0d 00 b4 2d 20 5d |NEloop:RTS...- ]| 00000ef0 3a 4f 25 3d 50 25 3a 73 74 61 72 74 3d 4f 25 3a |:O%=P%:start=O%:| 00000f00 50 25 3d 42 32 72 6f 75 74 69 6e 65 3a 5b 4f 50 |P%=B2routine:[OP| 00000f10 54 70 61 73 73 2b 34 0d 00 be ae 20 4c 44 41 23 |Tpass+4.... LDA#| 00000f20 30 3a 41 44 43 23 30 3a 50 48 41 3a 53 45 49 3a |0:ADC#0:PHA:SEI:| 00000f30 4a 53 52 76 65 63 6e 6f 72 6d 3a 43 4c 49 3a 4a |JSRvecnorm:CLI:J| 00000f40 4d 50 63 6f 6e 74 3a 2e 76 65 63 6e 6f 72 6d 20 |MPcont:.vecnorm | 00000f50 4c 44 41 6f 73 66 73 63 4c 4f 3a 53 54 41 26 32 |LDAosfscLO:STA&2| 00000f60 31 45 3a 4c 44 41 6f 73 66 73 63 48 49 3a 53 54 |1E:LDAosfscHI:ST| 00000f70 41 26 32 31 46 3a 4c 44 41 6f 73 66 69 6c 65 4c |A&21F:LDAosfileL| 00000f80 4f 3a 53 54 41 26 32 31 32 3a 4c 44 41 6f 73 66 |O:STA&212:LDAosf| 00000f90 69 6c 65 48 49 3a 53 54 41 26 32 31 33 3a 4c 44 |ileHI:STA&213:LD| 00000fa0 41 6f 73 62 79 74 65 4c 4f 3a 53 54 41 26 32 30 |AosbyteLO:STA&20| 00000fb0 41 3a 4c 44 41 6f 73 62 79 74 65 48 49 3a 53 54 |A:LDAosbyteHI:ST| 00000fc0 41 26 32 30 42 0d 00 c0 7c 20 4c 44 41 65 76 65 |A&20B...| LDAeve| 00000fd0 6e 74 4c 4f 3a 53 54 41 26 32 32 30 3a 4c 44 41 |ntLO:STA&220:LDA| 00000fe0 65 76 65 6e 74 48 49 3a 53 54 41 26 32 32 31 3a |eventHI:STA&221:| 00000ff0 4c 44 41 26 32 30 34 3a 53 54 41 69 6e 74 65 72 |LDA&204:STAinter| 00001000 6e 65 77 4c 4f 3a 4c 44 41 26 32 30 35 3a 53 54 |newLO:LDA&205:ST| 00001010 41 69 6e 74 65 72 6e 65 77 48 49 3a 4c 44 41 69 |AinternewHI:LDAi| 00001020 6e 74 65 72 4c 4f 3a 53 54 41 26 32 30 34 3a 4c |nterLO:STA&204:L| 00001030 44 41 69 6e 74 65 72 48 49 3a 53 54 41 26 32 30 |DAinterHI:STA&20| 00001040 35 0d 00 c3 89 20 53 54 58 65 6e 64 61 64 64 3a |5.... STXendadd:| 00001050 4c 44 58 23 30 3a 2e 73 61 76 65 76 61 72 73 20 |LDX#0:.savevars | 00001060 4c 44 41 26 37 30 2c 58 3a 53 54 41 74 65 6d 70 |LDA&70,X:STAtemp| 00001070 73 74 6f 72 65 2c 58 3a 49 4e 58 3a 43 50 58 23 |store,X:INX:CPX#| 00001080 36 3a 42 4e 45 73 61 76 65 76 61 72 73 3a 53 54 |6:BNEsavevars:ST| 00001090 59 26 37 35 3a 4c 44 58 65 6e 64 61 64 64 3a 53 |Y&75:LDXendadd:S| 000010a0 54 58 26 37 34 3a 52 54 53 3a 2e 63 6f 6e 74 20 |TX&74:RTS:.cont | 000010b0 50 4c 41 3a 42 45 51 66 69 6c 65 72 6f 75 74 3a |PLA:BEQfilerout:| 000010c0 4a 4d 50 66 73 63 72 6f 75 74 0d 00 c8 56 20 2e |JMPfscrout...V .| 000010d0 66 69 6c 65 72 6f 75 74 20 4c 44 59 23 30 3a 4c |filerout LDY#0:L| 000010e0 44 41 28 26 37 34 29 2c 59 3a 54 41 58 3a 49 4e |DA(&74),Y:TAX:IN| 000010f0 59 3a 4c 44 41 28 26 37 34 29 2c 59 3a 53 54 58 |Y:LDA(&74),Y:STX| 00001100 26 37 30 3a 53 54 41 26 37 31 3a 44 45 59 3a 4a |&70:STA&71:DEY:J| 00001110 53 52 66 69 6c 65 6e 61 6d 65 3a 4c 44 58 23 30 |SRfilename:LDX#0| 00001120 0d 00 d2 a9 20 2e 6c 6f 61 64 20 4c 44 41 23 30 |.... .load LDA#0| 00001130 3a 53 54 41 26 37 30 3a 53 54 41 26 37 32 3a 4c |:STA&70:STA&72:L| 00001140 44 41 23 39 3a 53 54 41 26 37 31 3a 4c 44 41 23 |DA#9:STA&71:LDA#| 00001150 26 41 43 3a 53 54 41 26 37 33 3a 4c 44 41 23 26 |&AC:STA&73:LDA#&| 00001160 31 44 3a 53 54 41 65 6e 64 61 64 64 3a 4c 44 59 |1D:STAendadd:LDY| 00001170 23 30 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 3a 4c |#0:JSRmoveloop:L| 00001180 44 41 23 26 38 39 3a 53 54 41 26 37 31 3a 4c 44 |DA#&89:STA&71:LD| 00001190 41 23 39 3a 53 54 41 26 37 33 3a 4c 44 41 23 26 |A#9:STA&73:LDA#&| 000011a0 39 44 3a 53 54 41 65 6e 64 61 64 64 3a 4c 44 59 |9D:STAendadd:LDY| 000011b0 23 30 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 3a 4a |#0:JSRmoveloop:J| 000011c0 4d 50 6c 6f 61 64 61 64 64 0d 00 dc 63 20 2e 6d |MPloadadd...c .m| 000011d0 6f 76 65 6c 6f 6f 70 20 4c 44 41 28 26 37 30 29 |oveloop LDA(&70)| 000011e0 2c 59 3a 53 54 41 28 26 37 32 29 2c 59 3a 49 4e |,Y:STA(&72),Y:IN| 000011f0 59 3a 42 4e 45 6d 6f 76 65 6c 6f 6f 70 3a 49 4e |Y:BNEmoveloop:IN| 00001200 43 26 37 31 3a 49 4e 43 26 37 33 3a 4c 44 41 26 |C&71:INC&73:LDA&| 00001210 37 31 3a 43 4d 50 65 6e 64 61 64 64 3a 42 4e 45 |71:CMPendadd:BNE| 00001220 6d 6f 76 65 6c 6f 6f 70 3a 52 54 53 0d 00 e6 e3 |moveloop:RTS....| 00001230 20 2e 6c 6f 61 64 61 64 64 20 4c 44 41 23 30 3a | .loadadd LDA#0:| 00001240 53 54 41 26 41 30 30 3a 4c 44 41 23 26 42 3a 53 |STA&A00:LDA#&B:S| 00001250 54 41 26 41 30 31 3a 53 54 58 65 6e 64 61 64 64 |TA&A01:STXendadd| 00001260 3a 43 50 58 23 31 3a 42 45 51 66 69 6e 64 61 64 |:CPX#1:BEQfindad| 00001270 64 3a 4c 44 41 23 30 3a 53 54 41 26 37 32 3a 4c |d:LDA#0:STA&72:L| 00001280 44 41 23 26 41 3a 53 54 41 26 37 33 3a 4c 44 41 |DA#&A:STA&73:LDA| 00001290 26 37 34 3a 53 54 41 26 37 30 3a 4c 44 41 23 33 |&74:STA&70:LDA#3| 000012a0 3a 53 54 41 65 6e 64 61 64 64 3a 4c 44 41 26 37 |:STAendadd:LDA&7| 000012b0 35 3a 4c 44 59 23 30 3a 2e 72 61 6d 20 43 4d 50 |5:LDY#0:.ram CMP| 000012c0 23 26 43 30 3a 42 4e 45 6e 6f 31 3a 4c 44 41 23 |#&C0:BNEno1:LDA#| 000012d0 26 31 44 3a 4a 4d 50 73 74 3a 2e 6e 6f 31 20 43 |&1D:JMPst:.no1 C| 000012e0 4d 50 23 26 31 44 3a 42 43 53 73 74 3a 43 4d 50 |MP#&1D:BCSst:CMP| 000012f0 23 39 3a 42 43 43 73 74 3a 43 4c 43 3a 41 44 43 |#9:BCCst:CLC:ADC| 00001300 23 26 41 33 3a 2e 73 74 20 53 54 41 26 37 31 0d |#&A3:.st STA&71.| 00001310 00 f0 5e 20 2e 74 72 20 4c 44 41 28 26 37 30 29 |..^ .tr LDA(&70)| 00001320 2c 59 3a 53 54 41 28 26 37 32 29 2c 59 3a 49 4e |,Y:STA(&72),Y:IN| 00001330 43 26 37 32 3a 4c 44 41 26 37 32 3a 43 4d 50 23 |C&72:LDA&72:CMP#| 00001340 26 31 32 3a 42 45 51 65 78 65 63 3a 49 4e 43 26 |&12:BEQexec:INC&| 00001350 37 30 3a 42 4e 45 74 72 3a 49 4e 43 26 37 31 3a |70:BNEtr:INC&71:| 00001360 4c 44 41 26 37 31 3a 4a 4d 50 72 61 6d 0d 00 fa |LDA&71:JMPram...| 00001370 8a 20 2e 65 78 65 63 20 4c 44 41 23 30 3a 53 54 |. .exec LDA#0:ST| 00001380 41 26 41 30 30 3a 4c 44 41 23 26 42 3a 53 54 41 |A&A00:LDA#&B:STA| 00001390 26 41 30 31 3a 50 4c 41 3a 50 48 41 3a 42 4e 45 |&A01:PLA:PHA:BNE| 000013a0 6c 6f 61 64 65 72 3a 4a 4d 50 73 61 76 65 3a 2e |loader:JMPsave:.| 000013b0 6c 6f 61 64 65 72 20 4c 44 41 26 41 30 36 3a 42 |loader LDA&A06:B| 000013c0 4e 45 66 69 6e 64 61 64 64 3a 4c 44 41 26 41 30 |NEfindadd:LDA&A0| 000013d0 32 3a 53 54 41 26 37 30 3a 4c 44 41 26 41 30 33 |2:STA&70:LDA&A03| 000013e0 3a 53 54 41 26 37 31 3a 4c 44 41 23 32 3a 53 54 |:STA&71:LDA#2:ST| 000013f0 41 65 6e 64 61 64 64 0d 01 04 d3 20 2e 66 69 6e |Aendadd.... .fin| 00001400 64 61 64 64 20 4c 44 41 23 35 3a 4c 44 58 23 30 |dadd LDA#5:LDX#0| 00001410 3a 4c 44 59 23 26 41 3a 4a 53 52 4f 53 46 49 4c |:LDY#&A:JSROSFIL| 00001420 45 3a 43 4d 50 23 31 3a 42 45 51 72 75 6e 3a 4a |E:CMP#1:BEQrun:J| 00001430 4d 50 65 72 72 6f 72 31 3a 2e 72 75 6e 20 4c 44 |MPerror1:.run LD| 00001440 58 65 6e 64 61 64 64 3a 43 50 58 23 31 3a 42 4e |Xendadd:CPX#1:BN| 00001450 45 6c 61 64 64 72 3a 50 4c 41 3a 53 54 41 26 37 |Eladdr:PLA:STA&7| 00001460 32 3a 50 4c 41 3a 53 54 41 26 37 33 3a 4c 44 58 |2:PLA:STA&73:LDX| 00001470 26 41 30 36 3a 4c 44 59 26 41 30 37 3a 44 45 58 |&A06:LDY&A07:DEX| 00001480 3a 43 50 58 23 26 46 46 3a 42 4e 45 73 74 61 63 |:CPX#&FF:BNEstac| 00001490 6b 3a 44 45 59 3a 2e 73 74 61 63 6b 20 54 59 41 |k:DEY:.stack TYA| 000014a0 3a 50 48 41 3a 54 58 41 3a 50 48 41 3a 4c 44 41 |:PHA:TXA:PHA:LDA| 000014b0 26 37 33 3a 50 48 41 3a 4c 44 41 26 37 32 3a 50 |&73:PHA:LDA&72:P| 000014c0 48 41 3a 4a 4d 50 61 72 65 61 0d 01 0e ac 20 2e |HA:JMParea.... .| 000014d0 6c 61 64 64 72 20 43 50 58 23 32 3a 42 4e 45 61 |laddr CPX#2:BNEa| 000014e0 72 65 61 3a 4c 44 41 26 37 30 3a 53 54 41 26 41 |rea:LDA&70:STA&A| 000014f0 30 32 3a 4c 44 41 26 37 31 3a 53 54 41 26 41 30 |02:LDA&71:STA&A0| 00001500 33 3a 4c 44 41 23 30 3a 53 54 41 26 41 30 36 3a |3:LDA#0:STA&A06:| 00001510 2e 61 72 65 61 20 4c 44 41 26 41 30 33 3a 43 4d |.area LDA&A03:CM| 00001520 50 23 26 31 44 3a 42 43 53 6c 6f 61 64 32 3a 43 |P#&1D:BCSload2:C| 00001530 4d 50 23 39 3a 42 43 53 62 79 74 65 6c 6f 61 64 |MP#9:BCSbyteload| 00001540 3a 43 4c 43 3a 4c 44 41 26 41 30 32 3a 41 44 43 |:CLC:LDA&A02:ADC| 00001550 26 41 30 41 3a 4c 44 41 26 41 30 33 3a 41 44 43 |&A0A:LDA&A03:ADC| 00001560 26 41 30 42 3a 43 4d 50 23 39 3a 42 43 53 62 79 |&A0B:CMP#9:BCSby| 00001570 74 65 6c 6f 61 64 0d 01 18 31 20 2e 6c 6f 61 64 |teload...1 .load| 00001580 32 20 4c 44 41 23 26 46 46 3a 4c 44 58 23 30 3a |2 LDA#&FF:LDX#0:| 00001590 4c 44 59 23 26 41 3a 4a 53 52 4f 53 46 49 4c 45 |LDY#&A:JSROSFILE| 000015a0 3a 4a 4d 50 65 6e 64 0d 01 22 ed 20 2e 62 79 74 |:JMPend..". .byt| 000015b0 65 6c 6f 61 64 20 4c 44 41 23 26 34 30 3a 4c 44 |eload LDA#&40:LD| 000015c0 58 23 30 3a 4c 44 59 23 26 42 3a 4a 53 52 4f 53 |X#0:LDY#&B:JSROS| 000015d0 46 49 4e 44 3a 54 41 59 3a 43 4d 50 23 30 3a 42 |FIND:TAY:CMP#0:B| 000015e0 4e 45 6f 6b 3a 4a 4d 50 65 72 72 6f 72 31 3a 2e |NEok:JMPerror1:.| 000015f0 6f 6b 20 4c 44 41 26 41 30 32 3a 53 54 41 26 37 |ok LDA&A02:STA&7| 00001600 30 3a 4c 44 41 26 41 30 33 3a 43 4d 50 23 39 3a |0:LDA&A03:CMP#9:| 00001610 42 43 43 6e 6f 72 6d 3a 43 4c 43 3a 41 44 43 23 |BCCnorm:CLC:ADC#| 00001620 26 41 33 3a 2e 6e 6f 72 6d 20 53 54 41 26 37 31 |&A3:.norm STA&71| 00001630 3a 2e 62 67 65 74 20 43 4c 43 3a 4a 53 52 4f 53 |:.bget CLC:JSROS| 00001640 42 47 45 54 3a 42 43 53 65 6e 64 6c 6f 61 64 3a |BGET:BCSendload:| 00001650 53 54 41 28 26 37 30 2c 58 29 3a 49 4e 43 26 37 |STA(&70,X):INC&7| 00001660 30 3a 42 4e 45 62 67 65 74 3a 49 4e 43 26 37 31 |0:BNEbget:INC&71| 00001670 3a 4c 44 41 26 37 31 3a 43 4d 50 23 26 43 30 3a |:LDA&71:CMP#&C0:| 00001680 42 45 51 73 75 62 3a 43 4d 50 23 39 3a 42 4e 45 |BEQsub:CMP#9:BNE| 00001690 62 67 65 74 0d 01 2c 57 20 4c 44 41 23 26 41 43 |bget..,W LDA#&AC| 000016a0 3a 53 54 41 26 37 31 3a 42 4e 45 62 67 65 74 3a |:STA&71:BNEbget:| 000016b0 2e 73 75 62 20 4c 44 41 23 26 31 44 3a 53 54 41 |.sub LDA#&1D:STA| 000016c0 26 37 31 3a 42 4e 45 62 67 65 74 3a 2e 65 6e 64 |&71:BNEbget:.end| 000016d0 6c 6f 61 64 20 4c 44 41 23 30 3a 4a 53 52 4f 53 |load LDA#0:JSROS| 000016e0 46 49 4e 44 3a 4a 4d 50 65 6e 64 0d 01 2e 4f 20 |FIND:JMPend...O | 000016f0 2e 73 61 76 65 20 4c 44 41 26 41 30 42 3a 43 4d |.save LDA&A0B:CM| 00001700 50 23 26 31 44 3a 42 43 53 73 61 76 65 32 3a 43 |P#&1D:BCSsave2:C| 00001710 4d 50 23 39 3a 42 43 53 62 79 74 65 73 61 76 65 |MP#9:BCSbytesave| 00001720 3a 4c 44 41 26 41 30 46 3a 43 4d 50 23 39 3a 42 |:LDA&A0F:CMP#9:B| 00001730 43 53 62 79 74 65 73 61 76 65 0d 01 30 2d 20 2e |CSbytesave..0- .| 00001740 73 61 76 65 32 20 4c 44 41 23 30 3a 54 41 58 3a |save2 LDA#0:TAX:| 00001750 4c 44 59 23 26 41 3a 4a 53 52 4f 53 46 49 4c 45 |LDY#&A:JSROSFILE| 00001760 3a 4a 4d 50 65 6e 64 0d 01 32 c5 20 2e 62 79 74 |:JMPend..2. .byt| 00001770 65 73 61 76 65 20 4c 44 41 26 41 30 46 3a 43 4d |esave LDA&A0F:CM| 00001780 50 23 26 31 44 3a 42 43 53 6f 70 65 6e 6f 75 74 |P#&1D:BCSopenout| 00001790 3a 43 4c 43 3a 41 44 43 23 26 41 33 3a 53 54 41 |:CLC:ADC#&A3:STA| 000017a0 26 41 30 46 3a 2e 6f 70 65 6e 6f 75 74 20 4c 44 |&A0F:.openout LD| 000017b0 41 23 26 38 30 3a 4c 44 58 23 30 3a 4c 44 59 23 |A#&80:LDX#0:LDY#| 000017c0 26 42 3a 4a 53 52 4f 53 46 49 4e 44 3a 54 41 59 |&B:JSROSFIND:TAY| 000017d0 3a 43 4d 50 23 30 3a 42 4e 45 6f 6b 53 3a 4a 4d |:CMP#0:BNEokS:JM| 000017e0 50 65 72 72 6f 72 31 3a 2e 6f 6b 53 20 4c 44 41 |Perror1:.okS LDA| 000017f0 26 41 30 41 3a 53 54 41 26 37 30 3a 4c 44 41 26 |&A0A:STA&70:LDA&| 00001800 41 30 42 3a 43 4d 50 23 39 3a 42 43 43 6e 6f 72 |A0B:CMP#9:BCCnor| 00001810 6d 53 3a 43 4c 43 3a 41 44 43 23 26 41 33 3a 2e |mS:CLC:ADC#&A3:.| 00001820 6e 6f 72 6d 53 20 53 54 41 26 37 31 0d 01 34 da |normS STA&71..4.| 00001830 20 2e 62 70 75 74 20 4c 44 41 26 37 30 3a 43 4d | .bput LDA&70:CM| 00001840 50 26 41 30 45 3a 42 4e 45 73 61 3a 4c 44 41 26 |P&A0E:BNEsa:LDA&| 00001850 37 31 3a 43 4d 50 26 41 30 46 3a 42 45 51 65 6e |71:CMP&A0F:BEQen| 00001860 64 73 61 76 65 3a 2e 73 61 20 4c 44 41 28 26 37 |dsave:.sa LDA(&7| 00001870 30 2c 58 29 3a 4a 53 52 4f 53 42 50 55 54 3a 49 |0,X):JSROSBPUT:I| 00001880 4e 43 26 37 30 3a 42 4e 45 62 70 75 74 3a 49 4e |NC&70:BNEbput:IN| 00001890 43 26 37 31 3a 4c 44 41 26 37 31 3a 43 4d 50 23 |C&71:LDA&71:CMP#| 000018a0 26 43 30 3a 42 45 51 73 75 62 53 3a 43 4d 50 23 |&C0:BEQsubS:CMP#| 000018b0 39 3a 42 4e 45 62 70 75 74 3a 4c 44 41 23 26 41 |9:BNEbput:LDA#&A| 000018c0 43 3a 53 54 41 26 37 31 3a 42 4e 45 62 70 75 74 |C:STA&71:BNEbput| 000018d0 3a 2e 73 75 62 53 20 4c 44 41 23 26 31 44 3a 53 |:.subS LDA#&1D:S| 000018e0 54 41 26 37 31 3a 42 4e 45 62 70 75 74 3a 2e 65 |TA&71:BNEbput:.e| 000018f0 6e 64 73 61 76 65 20 4c 44 41 23 30 3a 4a 53 52 |ndsave LDA#0:JSR| 00001900 4f 53 46 49 4e 44 0d 01 35 4c 20 4c 44 41 23 31 |OSFIND..5L LDA#1| 00001910 3a 4c 44 58 23 30 3a 4c 44 59 23 26 41 3a 4a 53 |:LDX#0:LDY#&A:JS| 00001920 52 4f 53 46 49 4c 45 3a 4c 44 41 23 33 3a 53 54 |ROSFILE:LDA#3:ST| 00001930 41 26 41 30 45 3a 4c 44 41 23 34 3a 4c 44 58 23 |A&A0E:LDA#4:LDX#| 00001940 30 3a 4c 44 59 23 26 41 3a 4a 53 52 4f 53 46 49 |0:LDY#&A:JSROSFI| 00001950 4c 45 0d 01 36 97 20 2e 65 6e 64 20 4c 44 41 23 |LE..6. .end LDA#| 00001960 30 3a 53 54 41 26 37 30 3a 53 54 41 26 37 32 3a |0:STA&70:STA&72:| 00001970 4c 44 41 23 39 3a 53 54 41 26 37 31 3a 4c 44 41 |LDA#9:STA&71:LDA| 00001980 23 26 38 39 3a 53 54 41 26 37 33 3a 4c 44 41 23 |#&89:STA&73:LDA#| 00001990 26 31 44 3a 53 54 41 65 6e 64 61 64 64 3a 4c 44 |&1D:STAendadd:LD| 000019a0 59 23 30 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 3a |Y#0:JSRmoveloop:| 000019b0 4c 44 41 23 26 41 43 3a 53 54 41 26 37 31 3a 4c |LDA#&AC:STA&71:L| 000019c0 44 41 23 39 3a 53 54 41 26 37 33 3a 4c 44 41 23 |DA#9:STA&73:LDA#| 000019d0 26 43 30 3a 53 54 41 65 6e 64 61 64 64 3a 4a 53 |&C0:STAendadd:JS| 000019e0 52 6d 6f 76 65 6c 6f 6f 70 0d 01 3b 29 20 4a 53 |Rmoveloop..;) JS| 000019f0 52 70 61 75 73 65 3a 2e 77 61 69 74 32 20 4a 53 |Rpause:.wait2 JS| 00001a00 52 70 61 75 73 65 65 6e 64 3a 42 43 43 77 61 69 |Rpauseend:BCCwai| 00001a10 74 32 0d 01 40 cd 20 2e 72 65 74 20 53 45 49 3a |t2..@. .ret SEI:| 00001a20 4a 53 52 76 65 63 74 6f 72 73 32 3a 4a 53 52 76 |JSRvectors2:JSRv| 00001a30 61 72 73 3a 43 4c 49 3a 4a 4d 50 20 42 41 43 4b |ars:CLI:JMP BACK| 00001a40 2d 28 6f 73 62 79 74 65 2d 62 61 6e 6b 31 2d 31 |-(osbyte-bank1-1| 00001a50 29 3a 5d 3a 76 65 63 74 6f 72 73 3d 4f 25 3a 5b |):]:vectors=O%:[| 00001a60 4f 50 54 70 61 73 73 2b 34 3a 2e 76 65 63 74 6f |OPTpass+4:.vecto| 00001a70 72 73 32 20 4c 44 41 23 28 4f 42 72 6f 75 74 69 |rs2 LDA#(OBrouti| 00001a80 6e 65 20 83 32 35 36 29 3a 53 54 41 26 32 30 41 |ne .256):STA&20A| 00001a90 3a 4c 44 41 23 28 4f 42 72 6f 75 74 69 6e 65 20 |:LDA#(OBroutine | 00001aa0 81 32 35 36 29 3a 53 54 41 26 32 30 42 3a 4c 44 |.256):STA&20B:LD| 00001ab0 41 23 28 4f 46 49 4c 45 20 83 32 35 36 29 3a 53 |A#(OFILE .256):S| 00001ac0 54 41 26 32 31 32 3a 4c 44 41 23 28 4f 46 49 4c |TA&212:LDA#(OFIL| 00001ad0 45 20 81 32 35 36 29 3a 53 54 41 26 32 31 33 0d |E .256):STA&213.| 00001ae0 01 42 6a 20 4c 44 41 23 28 4f 46 53 43 20 83 32 |.Bj LDA#(OFSC .2| 00001af0 35 36 29 3a 53 54 41 26 32 31 45 3a 4c 44 41 23 |56):STA&21E:LDA#| 00001b00 28 4f 46 53 43 20 81 32 35 36 29 3a 53 54 41 26 |(OFSC .256):STA&| 00001b10 32 31 46 3a 4c 44 41 23 28 45 56 45 4e 54 20 83 |21F:LDA#(EVENT .| 00001b20 32 35 36 29 3a 53 54 41 26 32 32 30 3a 4c 44 41 |256):STA&220:LDA| 00001b30 23 28 45 56 45 4e 54 20 81 32 35 36 29 3a 53 54 |#(EVENT .256):ST| 00001b40 41 26 32 32 31 3a 52 54 53 0d 01 4a 6a 20 2e 76 |A&221:RTS..Jj .v| 00001b50 61 72 73 20 4c 44 59 26 37 35 3a 4c 44 58 26 37 |ars LDY&75:LDX&7| 00001b60 34 3a 53 54 58 65 6e 64 61 64 64 3a 4c 44 58 23 |4:STXendadd:LDX#| 00001b70 30 3a 2e 6c 6f 61 64 76 61 72 73 20 4c 44 41 74 |0:.loadvars LDAt| 00001b80 65 6d 70 73 74 6f 72 65 2c 58 3a 53 54 41 26 37 |empstore,X:STA&7| 00001b90 30 2c 58 3a 49 4e 58 3a 43 50 58 23 36 3a 42 4e |0,X:INX:CPX#6:BN| 00001ba0 45 6c 6f 61 64 76 61 72 73 3a 4c 44 58 65 6e 64 |Eloadvars:LDXend| 00001bb0 61 64 64 0d 01 4f 43 20 4c 44 41 69 6e 74 65 72 |add..OC LDAinter| 00001bc0 6e 65 77 4c 4f 3a 53 54 41 26 32 30 34 3a 4c 44 |newLO:STA&204:LD| 00001bd0 41 69 6e 74 65 72 6e 65 77 48 49 3a 53 54 41 26 |AinternewHI:STA&| 00001be0 32 30 35 3a 4c 44 41 23 30 3a 53 54 41 26 46 43 |205:LDA#0:STA&FC| 00001bf0 44 44 3a 52 54 53 0d 01 54 c1 20 2e 66 73 63 72 |DD:RTS..T. .fscr| 00001c00 6f 75 74 20 50 4c 41 3a 50 48 41 3a 42 45 51 72 |out PLA:PHA:BEQr| 00001c10 65 74 3a 43 4d 50 23 34 3a 42 45 51 66 73 63 3a |et:CMP#4:BEQfsc:| 00001c20 43 4d 50 23 32 3a 42 45 51 66 73 63 3a 4a 53 52 |CMP#2:BEQfsc:JSR| 00001c30 6f 6c 64 4f 53 46 53 43 3a 4c 44 41 26 37 30 3a |oldOSFSC:LDA&70:| 00001c40 53 54 41 26 31 30 44 35 3a 4c 44 41 26 37 31 3a |STA&10D5:LDA&71:| 00001c50 53 54 41 26 44 43 43 3a 4c 44 41 26 37 32 3a 53 |STA&DCC:LDA&72:S| 00001c60 54 41 26 44 43 44 3a 4c 44 41 26 37 33 3a 53 54 |TA&DCD:LDA&73:ST| 00001c70 41 26 44 43 45 3a 4a 4d 50 72 65 74 3a 2e 66 73 |A&DCE:JMPret:.fs| 00001c80 63 20 4c 44 41 26 37 34 3a 53 54 41 26 37 30 3a |c LDA&74:STA&70:| 00001c90 4c 44 41 26 37 35 3a 53 54 41 26 37 31 3a 4a 53 |LDA&75:STA&71:JS| 00001ca0 52 66 69 6c 65 6e 61 6d 65 3a 4c 44 58 23 31 3a |Rfilename:LDX#1:| 00001cb0 4a 4d 50 6c 6f 61 64 0d 01 59 8e 20 2e 6f 6c 64 |JMPload..Y. .old| 00001cc0 4f 53 46 53 43 20 4c 44 41 26 31 30 44 35 3a 53 |OSFSC LDA&10D5:S| 00001cd0 54 41 26 37 30 3a 4c 44 41 26 44 43 43 3a 53 54 |TA&70:LDA&DCC:ST| 00001ce0 41 26 37 31 3a 4c 44 41 26 44 43 44 3a 53 54 41 |A&71:LDA&DCD:STA| 00001cf0 26 37 32 3a 4c 44 41 26 44 43 45 3a 53 54 41 26 |&72:LDA&DCE:STA&| 00001d00 37 33 3a 4c 44 41 23 26 36 30 3a 53 54 41 26 44 |73:LDA#&60:STA&D| 00001d10 43 43 3a 4c 44 41 23 26 39 45 3a 53 54 41 26 44 |CC:LDA#&9E:STA&D| 00001d20 43 44 3a 4c 44 41 23 34 3a 53 54 41 26 44 43 45 |CD:LDA#4:STA&DCE| 00001d30 3a 50 4c 41 3a 50 48 41 3a 4a 4d 50 28 6f 73 66 |:PLA:PHA:JMP(osf| 00001d40 73 63 4c 4f 29 0d 01 5e cd 20 2e 66 69 6c 65 6e |scLO)..^. .filen| 00001d50 61 6d 65 20 4c 44 59 23 30 3a 4c 44 41 28 26 37 |ame LDY#0:LDA(&7| 00001d60 30 29 2c 59 3a 43 4d 50 23 26 44 3a 42 45 51 6e |0),Y:CMP#&D:BEQn| 00001d70 61 6d 65 3a 43 4d 50 23 26 32 30 3a 42 45 51 6e |ame:CMP#&20:BEQn| 00001d80 61 6d 65 3a 4a 4d 50 6e 6f 74 7a 65 72 6f 3a 2e |ame:JMPnotzero:.| 00001d90 6e 61 6d 65 20 4c 44 41 6e 61 6d 65 4c 4f 3a 53 |name LDAnameLO:S| 00001da0 54 41 26 37 30 3a 53 54 41 26 37 32 3a 4c 44 41 |TA&70:STA&72:LDA| 00001db0 6e 61 6d 65 48 49 3a 53 54 41 26 37 31 3a 53 54 |nameHI:STA&71:ST| 00001dc0 41 26 37 33 3a 4c 44 41 28 26 37 30 29 2c 59 3a |A&73:LDA(&70),Y:| 00001dd0 43 4d 50 23 30 3a 42 4e 45 6f 6b 32 3a 50 4c 41 |CMP#0:BNEok2:PLA| 00001de0 3a 50 4c 41 3a 4a 4d 50 65 72 72 6f 72 32 3a 2e |:PLA:JMPerror2:.| 00001df0 6f 6b 32 20 4c 44 41 28 26 37 32 29 2c 59 3a 49 |ok2 LDA(&72),Y:I| 00001e00 4e 43 26 37 32 3a 42 4e 45 6e 6f 3a 49 4e 43 26 |NC&72:BNEno:INC&| 00001e10 37 33 0d 01 68 e9 20 2e 6e 6f 20 43 4d 50 23 26 |73..h. .no CMP#&| 00001e20 44 3a 42 4e 45 6f 6b 32 3a 4c 44 41 26 37 32 3a |D:BNEok2:LDA&72:| 00001e30 53 54 41 6e 61 6d 65 4c 4f 3a 4c 44 41 26 37 33 |STAnameLO:LDA&73| 00001e40 3a 53 54 41 6e 61 6d 65 48 49 3a 2e 6e 6f 74 7a |:STAnameHI:.notz| 00001e50 65 72 6f 20 4c 44 41 23 30 3a 53 54 41 26 37 32 |ero LDA#0:STA&72| 00001e60 3a 4c 44 41 23 26 38 42 3a 53 54 41 26 37 33 3a |:LDA#&8B:STA&73:| 00001e70 2e 74 72 61 6e 73 6c 6f 6f 70 20 4c 44 41 28 26 |.transloop LDA(&| 00001e80 37 30 29 2c 59 3a 53 54 41 28 26 37 32 29 2c 59 |70),Y:STA(&72),Y| 00001e90 3a 43 4d 50 23 26 44 3a 42 45 51 65 6e 64 66 69 |:CMP#&D:BEQendfi| 00001ea0 6c 65 3a 43 4d 50 23 26 32 30 3a 42 4e 45 63 6f |le:CMP#&20:BNEco| 00001eb0 6e 74 66 69 6c 65 3a 4c 44 41 23 26 44 3a 53 54 |ntfile:LDA#&D:ST| 00001ec0 41 28 26 37 32 29 2c 59 3a 42 4e 45 65 6e 64 66 |A(&72),Y:BNEendf| 00001ed0 69 6c 65 3a 2e 63 6f 6e 74 66 69 6c 65 20 49 4e |ile:.contfile IN| 00001ee0 59 3a 4a 4d 50 74 72 61 6e 73 6c 6f 6f 70 3a 2e |Y:JMPtransloop:.| 00001ef0 65 6e 64 66 69 6c 65 20 52 54 53 0d 01 72 d1 20 |endfile RTS..r. | 00001f00 2e 65 72 72 6f 72 31 20 4c 44 41 23 28 6e 6f 74 |.error1 LDA#(not| 00001f10 66 6f 75 6e 64 20 83 32 35 36 29 3a 53 54 41 26 |found .256):STA&| 00001f20 37 30 3a 4c 44 41 23 28 6e 6f 74 66 6f 75 6e 64 |70:LDA#(notfound| 00001f30 20 81 32 35 36 29 3a 53 54 41 26 37 31 3a 4a 4d | .256):STA&71:JM| 00001f40 50 65 72 72 6f 72 3a 2e 65 72 72 6f 72 32 20 4c |Perror:.error2 L| 00001f50 44 41 23 28 6e 6f 6d 6f 72 65 20 83 32 35 36 29 |DA#(nomore .256)| 00001f60 3a 53 54 41 26 37 30 3a 4c 44 41 23 28 6e 6f 6d |:STA&70:LDA#(nom| 00001f70 6f 72 65 20 81 32 35 36 29 3a 53 54 41 26 37 31 |ore .256):STA&71| 00001f80 3a 2e 65 72 72 6f 72 20 4c 44 59 23 30 3a 2e 70 |:.error LDY#0:.p| 00001f90 72 69 6e 74 6c 6f 6f 70 20 4c 44 41 28 26 37 30 |rintloop LDA(&70| 00001fa0 29 2c 59 3a 49 4e 59 3a 4a 53 52 4f 53 41 53 43 |),Y:INY:JSROSASC| 00001fb0 49 3a 43 4d 50 23 26 44 3a 42 4e 45 70 72 69 6e |I:CMP#&D:BNEprin| 00001fc0 74 6c 6f 6f 70 3a 4a 4d 50 72 65 74 0d 01 74 a5 |tloop:JMPret..t.| 00001fd0 20 2e 65 76 72 6f 75 74 69 6e 65 20 4a 53 52 76 | .evroutine JSRv| 00001fe0 65 63 6e 6f 72 6d 3a 4c 44 41 23 31 33 3a 4c 44 |ecnorm:LDA#13:LD| 00001ff0 58 23 34 3a 4c 44 59 23 30 3a 4a 53 52 4f 53 42 |X#4:LDY#0:JSROSB| 00002000 59 54 45 3a 4a 53 52 70 61 75 73 65 3a 2e 77 61 |YTE:JSRpause:.wa| 00002010 69 74 20 4a 53 52 70 61 75 73 65 65 6e 64 3a 42 |it JSRpauseend:B| 00002020 43 43 77 61 69 74 3a 4c 44 41 23 31 34 3a 4c 44 |CCwait:LDA#14:LD| 00002030 58 23 34 3a 4c 44 59 23 30 3a 4a 53 52 4f 53 42 |X#4:LDY#0:JSROSB| 00002040 59 54 45 3a 4a 53 52 76 65 63 74 6f 72 73 32 3a |YTE:JSRvectors2:| 00002050 4a 53 52 76 61 72 73 3a 4a 4d 50 20 42 41 43 4b |JSRvars:JMP BACK| 00002060 2d 28 6f 73 62 79 74 65 2d 62 61 6e 6b 31 2d 31 |-(osbyte-bank1-1| 00002070 29 0d 01 7a a4 20 2e 70 61 75 73 65 20 4c 44 41 |)..z. .pause LDA| 00002080 23 26 38 31 3a 4c 44 58 23 28 a4 69 6e 6b 65 79 |#&81:LDX#(.inkey| 00002090 28 50 61 75 73 65 4b 65 79 24 29 29 3a 4c 44 59 |(PauseKey$)):LDY| 000020a0 23 26 46 46 3a 4a 53 52 4f 53 42 59 54 45 3a 4c |#&FF:JSROSBYTE:L| 000020b0 44 41 23 30 3a 42 43 43 70 61 75 73 65 72 65 74 |DA#0:BCCpauseret| 000020c0 3a 4c 44 41 23 26 38 31 3a 4c 44 58 23 26 46 45 |:LDA#&81:LDX#&FE| 000020d0 3a 4c 44 59 23 26 46 46 3a 4a 53 52 4f 53 42 59 |:LDY#&FF:JSROSBY| 000020e0 54 45 3a 4c 44 41 23 30 3a 42 43 43 70 61 75 73 |TE:LDA#0:BCCpaus| 000020f0 65 72 65 74 3a 4c 44 41 23 31 3a 2e 70 61 75 73 |eret:LDA#1:.paus| 00002100 65 72 65 74 20 53 54 41 70 61 75 73 65 66 6c 61 |eret STApausefla| 00002110 67 3a 52 54 53 0d 01 7b af 20 2e 70 61 75 73 65 |g:RTS..{. .pause| 00002120 65 6e 64 20 4c 44 41 70 61 75 73 65 66 6c 61 67 |end LDApauseflag| 00002130 3a 42 45 51 75 6e 70 61 75 73 65 3a 4c 44 41 23 |:BEQunpause:LDA#| 00002140 26 38 31 3a 4c 44 58 23 28 a4 69 6e 6b 65 79 28 |&81:LDX#(.inkey(| 00002150 43 6f 6e 74 4b 65 79 24 29 29 3a 4c 44 59 23 26 |ContKey$)):LDY#&| 00002160 46 46 3a 4a 53 52 4f 53 42 59 54 45 3a 42 43 43 |FF:JSROSBYTE:BCC| 00002170 73 74 61 79 70 61 75 73 65 3a 4c 44 41 23 26 38 |staypause:LDA#&8| 00002180 31 3a 4c 44 58 23 26 46 45 3a 4c 44 59 23 26 46 |1:LDX#&FE:LDY#&F| 00002190 46 3a 4a 53 52 4f 53 42 59 54 45 3a 42 43 43 73 |F:JSROSBYTE:BCCs| 000021a0 74 61 79 70 61 75 73 65 3a 2e 75 6e 70 61 75 73 |taypause:.unpaus| 000021b0 65 20 53 45 43 3a 2e 73 74 61 79 70 61 75 73 65 |e SEC:.staypause| 000021c0 20 52 54 53 0d 01 7c e6 20 2e 6e 6f 74 66 6f 75 | RTS..|. .notfou| 000021d0 6e 64 20 45 51 55 53 22 4e 6f 74 20 66 6f 75 6e |nd EQUS"Not foun| 000021e0 64 22 3a 45 51 55 42 31 33 3a 2e 6e 6f 6d 6f 72 |d":EQUB13:.nomor| 000021f0 65 20 45 51 55 53 22 4e 6f 20 6d 6f 72 65 20 66 |e EQUS"No more f| 00002200 69 6c 65 6e 61 6d 65 73 22 3a 45 51 55 42 31 33 |ilenames":EQUB13| 00002210 3a 2e 6e 61 6d 65 4c 4f 20 45 51 55 42 6e 61 6d |:.nameLO EQUBnam| 00002220 65 73 20 83 32 35 36 3a 2e 6e 61 6d 65 48 49 20 |es .256:.nameHI | 00002230 45 51 55 42 6e 61 6d 65 73 20 81 32 35 36 3a 2e |EQUBnames .256:.| 00002240 65 6e 64 61 64 64 20 45 51 55 42 30 3a 2e 6f 73 |endadd EQUB0:.os| 00002250 66 69 6c 65 4c 4f 20 45 51 55 42 30 3a 2e 6f 73 |fileLO EQUB0:.os| 00002260 66 69 6c 65 48 49 20 45 51 55 42 30 3a 2e 6f 73 |fileHI EQUB0:.os| 00002270 66 73 63 4c 4f 20 45 51 55 42 30 3a 2e 6f 73 66 |fscLO EQUB0:.osf| 00002280 73 63 48 49 20 45 51 55 42 30 3a 2e 6f 73 62 79 |scHI EQUB0:.osby| 00002290 74 65 4c 4f 20 45 51 55 42 30 3a 2e 6f 73 62 79 |teLO EQUB0:.osby| 000022a0 74 65 48 49 20 45 51 55 42 30 0d 01 7e 64 20 2e |teHI EQUB0..~d .| 000022b0 65 76 65 6e 74 4c 4f 20 45 51 55 42 30 3a 2e 65 |eventLO EQUB0:.e| 000022c0 76 65 6e 74 48 49 20 45 51 55 42 30 3a 2e 69 6e |ventHI EQUB0:.in| 000022d0 74 65 72 4c 4f 20 45 51 55 42 30 3a 2e 69 6e 74 |terLO EQUB0:.int| 000022e0 65 72 48 49 20 45 51 55 42 30 3a 2e 69 6e 74 65 |erHI EQUB0:.inte| 000022f0 72 6e 65 77 4c 4f 20 45 51 55 42 30 3a 2e 69 6e |rnewLO EQUB0:.in| 00002300 74 65 72 6e 65 77 48 49 20 45 51 55 42 30 0d 01 |ternewHI EQUB0..| 00002310 81 64 20 2e 74 65 6d 70 73 74 6f 72 65 20 45 51 |.d .tempstore EQ| 00002320 55 44 30 3a 45 51 55 57 30 3a 2e 70 61 75 73 65 |UD0:EQUW0:.pause| 00002330 66 6c 61 67 20 45 51 55 42 30 3a 2e 6e 61 6d 65 |flag EQUB0:.name| 00002340 73 3a 5d 3a 24 4f 25 3d 66 69 6c 65 6e 61 6d 65 |s:]:$O%=filename| 00002350 73 24 3a 4f 25 3d 4f 25 2b a9 28 66 69 6c 65 6e |s$:O%=O%+.(filen| 00002360 61 6d 65 73 24 29 2b 31 3a 3f 28 4f 25 2d 31 29 |ames$)+1:?(O%-1)| 00002370 3d 30 0d 01 86 ca 20 62 61 6e 6b 31 3d 4f 25 3a |=0.... bank1=O%:| 00002380 5b 4f 50 54 70 61 73 73 2b 34 3a 4c 44 41 23 30 |[OPTpass+4:LDA#0| 00002390 3a 53 54 41 26 46 34 3a 53 54 41 26 46 45 30 35 |:STA&F4:STA&FE05| 000023a0 3a 5d 3a 50 25 3d 4f 25 3a 5b 4f 50 54 70 61 73 |:]:P%=O%:[OPTpas| 000023b0 73 2b 34 3a 52 54 53 3a 5d 3a 6f 73 62 79 74 65 |s+4:RTS:]:osbyte| 000023c0 3d 4f 25 3a 50 25 3d 4f 42 72 6f 75 74 69 6e 65 |=O%:P%=OBroutine| 000023d0 3a 5b 4f 50 54 70 61 73 73 2b 34 3a 43 4d 50 23 |:[OPTpass+4:CMP#| 000023e0 31 34 30 3a 42 45 51 74 61 70 65 3a 50 48 41 3a |140:BEQtape:PHA:| 000023f0 4c 44 41 4f 42 72 6f 75 74 32 2b 38 3a 53 54 41 |LDAOBrout2+8:STA| 00002400 26 32 30 41 3a 4a 4d 50 4f 42 72 6f 75 74 32 3a |&20A:JMPOBrout2:| 00002410 2e 74 61 70 65 20 52 54 53 3a 5d 3a 6f 73 62 79 |.tape RTS:]:osby| 00002420 74 65 32 3d 4f 25 3a 50 25 3d 4f 42 72 6f 75 74 |te2=O%:P%=OBrout| 00002430 32 3a 5b 4f 50 54 70 61 73 73 2b 34 0d 01 8b 9c |2:[OPTpass+4....| 00002440 20 4c 44 41 4f 42 72 6f 75 74 32 2b 39 3a 53 54 | LDAOBrout2+9:ST| 00002450 41 26 32 30 42 3a 50 4c 41 3a 4a 53 52 26 30 30 |A&20B:PLA:JSR&00| 00002460 30 30 3a 4a 4d 50 4f 42 72 6f 75 74 33 3a 5d 3a |00:JMPOBrout3:]:| 00002470 6f 73 62 79 74 65 33 3d 4f 25 3a 50 25 3d 4f 42 |osbyte3=O%:P%=OB| 00002480 72 6f 75 74 33 3a 5b 4f 50 54 70 61 73 73 2b 34 |rout3:[OPTpass+4| 00002490 3a 50 48 41 3a 4c 44 41 23 28 4f 42 72 6f 75 74 |:PHA:LDA#(OBrout| 000024a0 69 6e 65 20 83 32 35 36 29 3a 53 54 41 26 32 30 |ine .256):STA&20| 000024b0 41 3a 4c 44 41 23 28 4f 42 72 6f 75 74 69 6e 65 |A:LDA#(OBroutine| 000024c0 20 81 32 35 36 29 3a 53 54 41 26 32 30 42 3a 50 | .256):STA&20B:P| 000024d0 4c 41 3a 52 54 53 3a 5d 0d 01 90 b8 20 66 69 6c |LA:RTS:].... fil| 000024e0 65 3d 4f 25 3a 50 25 3d 4f 46 49 4c 45 3a 5b 4f |e=O%:P%=OFILE:[O| 000024f0 50 54 70 61 73 73 2b 34 3a 43 4c 43 3a 42 43 43 |PTpass+4:CLC:BCC| 00002500 6f 66 3a 2e 4f 46 53 43 20 53 45 43 3a 2e 6f 66 |of:.OFSC SEC:.of| 00002510 20 50 48 50 3a 50 48 41 3a 5d 3a 62 61 6e 6b 32 | PHP:PHA:]:bank2| 00002520 3d 4f 25 3a 5b 4f 50 54 70 61 73 73 2b 34 3a 4c |=O%:[OPTpass+4:L| 00002530 44 41 23 30 3a 53 54 41 26 46 34 3a 53 54 41 26 |DA#0:STA&F4:STA&| 00002540 46 45 30 35 3a 2e 65 6e 74 65 72 3a 5d 3a 50 25 |FE05:.enter:]:P%| 00002550 3d 4f 25 3a 5b 4f 50 54 70 61 73 73 2b 34 3a 52 |=O%:[OPTpass+4:R| 00002560 54 53 3a 5d 3a 66 69 6c 65 72 65 74 3d 4f 25 3a |TS:]:fileret=O%:| 00002570 50 25 3d 42 41 43 4b 3a 5b 4f 50 54 70 61 73 73 |P%=BACK:[OPTpass| 00002580 2b 34 3a 50 4c 41 3a 50 4c 50 3a 52 54 53 3a 5d |+4:PLA:PLP:RTS:]| 00002590 0d 01 95 54 20 65 76 72 6f 75 74 3d 4f 25 3a 50 |...T evrout=O%:P| 000025a0 25 3d 45 56 45 4e 54 3a 5b 4f 50 54 70 61 73 73 |%=EVENT:[OPTpass| 000025b0 2b 34 3a 50 48 50 3a 50 48 41 3a 4c 44 41 23 30 |+4:PHP:PHA:LDA#0| 000025c0 3a 53 54 41 26 46 34 3a 53 54 41 26 46 45 30 35 |:STA&F4:STA&FE05| 000025d0 3a 2e 65 6e 74 65 72 65 76 3a 5d 3a 65 76 65 6e |:.enterev:]:even| 000025e0 64 3d 4f 25 0d 01 9a 06 20 ed 0d 01 a4 39 20 f1 |d=O%.... ....9 .| 000025f0 22 53 61 76 65 20 28 59 2f 4e 29 3f 22 3a 41 24 |"Save (Y/N)?":A$| 00002600 3d be 3a e7 20 41 24 3d 22 59 22 20 8c 20 ff 22 |=.:. A$="Y" . ."| 00002610 53 41 56 45 20 44 4c 20 32 30 30 30 20 22 2b c3 |SAVE DL 2000 "+.| 00002620 7e 4f 25 0d 01 a9 06 20 e0 0d 01 ae 12 20 dd a4 |~O%.... ..... ..| 00002630 69 6e 6b 65 79 28 4b 65 79 24 29 0d 01 b3 06 20 |inkey(Key$).... | 00002640 f7 0d 01 b8 1b 20 e3 6c 65 74 74 65 72 3d 31 20 |..... .letter=1 | 00002650 b8 20 97 28 4b 65 79 24 29 2d 36 34 0d 01 c2 0c |. .(Key$)-64....| 00002660 20 f3 20 76 61 6c 75 65 0d 01 cc 0d 20 ed 20 6c | . value.... . l| 00002670 65 74 74 65 72 0d 01 d6 0f 20 3d 76 61 6c 75 65 |etter.... =value| 00002680 2b 32 35 36 0d 01 e0 71 20 dc 20 2d 36 36 2c 2d |+256...q . -66,-| 00002690 31 30 31 2c 2d 38 33 2c 2d 35 31 2c 2d 33 35 2c |101,-83,-51,-35,| 000026a0 2d 36 38 2c 2d 38 34 2c 2d 38 35 2c 2d 33 38 2c |-68,-84,-85,-38,| 000026b0 2d 37 30 2c 2d 37 31 2c 2d 38 37 2c 2d 31 30 32 |-70,-71,-87,-102| 000026c0 2c 2d 38 36 2c 2d 35 35 2c 2d 35 36 2c 2d 31 37 |,-86,-55,-56,-17| 000026d0 2c 2d 35 32 2c 2d 38 32 2c 2d 33 36 2c 2d 35 34 |,-52,-82,-36,-54| 000026e0 2c 2d 31 30 30 2c 2d 33 34 2c 2d 36 37 2c 2d 36 |,-100,-34,-67,-6| 000026f0 39 2c 2d 39 38 0d ff |9,-98..| 000026f7