Home » Personal collection » Acorn ADFS disks » Electron » Finished_programs.ADF » DLoSaPause
DLoSaPause
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 » Finished_programs.ADF |
Filename: | DLoSaPause |
Read OK: | ✔ |
File size: | 268C 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 » MTF_finished_programs.ADF » DLoSaPause
- Personal collection » Acorn ADFS disks » Electron » Finished_programs.ADF » DLoSaPause
- Personal collection » Acorn hard disk » zipped_disks » elk03 » finished/DLoSaPause
File contents
1 REM TAPE -> ADFS L O A D E R by M. FORD , 15/2/94 2 filenames$="CRAZEE"+CHR$13+"CRAZEER"+CHR$13 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
K � TAPE -> ADFS L O A D E R by M. FORD , 15/2/94 * 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 4b 20 f4 20 20 20 20 54 41 50 45 20 2d |...K . TAPE -| 00000010 3e 20 41 44 46 53 20 20 20 4c 20 4f 20 41 20 44 |> ADFS L O A D| 00000020 20 45 20 52 20 20 20 20 20 20 20 20 20 20 20 20 | E R | 00000030 20 20 20 20 20 62 79 20 20 4d 2e 20 46 4f 52 44 | by M. FORD| 00000040 20 2c 20 31 35 2f 32 2f 39 34 20 0d 00 02 2a 20 | , 15/2/94 ...* | 00000050 66 69 6c 65 6e 61 6d 65 73 24 3d 22 43 52 41 5a |filenames$="CRAZ| 00000060 45 45 22 2b bd 31 33 2b 22 43 52 41 5a 45 45 52 |EE"+.13+"CRAZEER| 00000070 22 2b bd 31 33 0d 00 03 39 20 50 61 75 73 65 4b |"+.13...9 PauseK| 00000080 65 79 24 3d 22 50 22 3a 43 6f 6e 74 4b 65 79 24 |ey$="P":ContKey$| 00000090 3d 22 4f 22 3a f4 20 48 6f 6c 64 20 64 6f 77 6e |="O":. Hold down| 000000a0 20 43 54 52 4c 20 77 69 74 68 20 6b 65 79 0d 00 | CTRL with key..| 000000b0 05 63 20 4f 46 49 4c 45 3d 26 41 41 33 41 3a 42 |.c OFILE=&AA3A:B| 000000c0 41 43 4b 3d 26 38 36 39 38 3a 4f 42 72 6f 75 74 |ACK=&8698:OBrout| 000000d0 69 6e 65 3d 26 39 43 30 35 3a 4f 42 72 6f 75 74 |ine=&9C05:OBrout| 000000e0 32 3d 26 38 43 31 30 3a 4f 42 72 6f 75 74 33 3d |2=&8C10:OBrout3=| 000000f0 26 39 39 41 39 3a 42 32 72 6f 75 74 69 6e 65 3d |&99A9:B2routine=| 00000100 26 41 30 30 30 3a 45 56 45 4e 54 3d 26 41 41 41 |&A000:EVENT=&AAA| 00000110 45 0d 00 06 5f 20 4f 53 42 59 54 45 3d 26 46 46 |E..._ OSBYTE=&FF| 00000120 46 34 3a 4f 53 57 4f 52 44 3d 26 46 46 46 31 3a |F4:OSWORD=&FFF1:| 00000130 4f 53 46 49 4c 45 3d 26 46 46 44 44 3a 4f 53 42 |OSFILE=&FFDD:OSB| 00000140 47 45 54 3d 26 46 46 44 37 3a 4f 53 42 50 55 54 |GET=&FFD7:OSBPUT| 00000150 3d 26 46 46 44 34 3a 4f 53 46 49 4e 44 3d 26 46 |=&FFD4:OSFIND=&F| 00000160 46 43 45 3a 4f 53 41 53 43 49 3d 26 46 46 45 33 |FCE:OSASCI=&FFE3| 00000170 0d 00 0a 26 20 e3 70 61 73 73 3d 30 20 b8 20 32 |...& .pass=0 . 2| 00000180 20 88 20 32 3a 50 25 3d 26 32 30 30 30 3a 5b 4f | . 2:P%=&2000:[O| 00000190 50 54 70 61 73 73 0d 00 14 66 20 4c 44 41 23 30 |PTpass...f LDA#0| 000001a0 3a 53 54 41 26 46 43 44 43 3a 53 54 41 26 46 43 |:STA&FCDC:STA&FC| 000001b0 44 45 3a 4c 44 41 23 31 35 3a 53 54 41 26 46 34 |DE:LDA#15:STA&F4| 000001c0 3a 53 54 41 26 46 45 30 35 3a 4c 44 58 23 32 3a |:STA&FE05:LDX#2:| 000001d0 53 45 49 3a 2e 74 65 73 74 20 54 58 41 3a 53 54 |SEI:.test TXA:ST| 000001e0 41 26 46 34 3a 53 54 41 26 46 45 30 35 3a 4c 44 |A&F4:STA&FE05:LD| 000001f0 41 23 30 3a 4c 44 41 26 38 38 30 30 0d 00 1e 37 |A#0:LDA&8800...7| 00000200 20 49 4e 43 26 38 38 30 30 3a 43 4d 50 26 38 38 | INC&8800:CMP&88| 00000210 30 30 3a 42 4e 45 66 6f 75 6e 64 3a 44 45 58 3a |00:BNEfound:DEX:| 00000220 44 45 58 3a 42 50 4c 74 65 73 74 3a 4c 44 58 23 |DEX:BPLtest:LDX#| 00000230 26 46 46 0d 00 28 3e 20 2e 66 6f 75 6e 64 20 44 |&FF..(> .found D| 00000240 45 43 26 38 38 30 30 3a 43 4c 49 3a 53 54 58 62 |EC&8800:CLI:STXb| 00000250 61 6e 6b 31 2b 31 3a 49 4e 58 3a 53 54 58 62 61 |ank1+1:INX:STXba| 00000260 6e 6b 32 2b 31 3a 53 54 58 65 76 72 6f 75 74 2b |nk2+1:STXevrout+| 00000270 33 0d 00 32 ef 20 2e 42 41 53 49 43 72 6f 6d 20 |3..2. .BASICrom | 00000280 4c 44 41 23 31 31 3a 53 54 41 26 46 34 3a 53 54 |LDA#11:STA&F4:ST| 00000290 41 26 46 45 30 35 3a 4c 44 41 23 30 3a 53 54 41 |A&FE05:LDA#0:STA| 000002a0 26 37 30 3a 53 54 41 26 37 32 3a 53 54 41 26 37 |&70:STA&72:STA&7| 000002b0 34 3a 4c 44 41 23 26 38 30 3a 53 54 41 26 37 31 |4:LDA#&80:STA&71| 000002c0 3a 4c 44 41 23 26 34 30 3a 53 54 41 26 37 33 3a |:LDA#&40:STA&73:| 000002d0 4c 44 41 23 26 41 30 3a 53 54 41 26 37 35 3a 4a |LDA#&A0:STA&75:J| 000002e0 53 52 6d 6f 76 65 6c 6f 6f 70 32 3a 4c 44 41 23 |SRmoveloop2:LDA#| 000002f0 31 35 3a 53 54 41 26 46 34 3a 53 54 41 26 46 45 |15:STA&F4:STA&FE| 00000300 30 35 3a 4a 53 52 62 61 6e 6b 31 3a 4c 44 41 23 |05:JSRbank1:LDA#| 00000310 30 3a 53 54 41 26 37 30 3a 53 54 41 26 37 32 3a |0:STA&70:STA&72:| 00000320 53 54 41 26 37 34 3a 4c 44 41 23 26 34 30 3a 53 |STA&74:LDA#&40:S| 00000330 54 41 26 37 31 3a 4c 44 41 23 26 38 30 3a 53 54 |TA&71:LDA#&80:ST| 00000340 41 26 37 33 3a 4c 44 41 23 26 36 30 3a 53 54 41 |A&73:LDA#&60:STA| 00000350 26 37 35 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 32 |&75:JSRmoveloop2| 00000360 0d 00 3c e4 4c 44 41 23 31 31 3a 53 54 41 26 46 |..<.LDA#11:STA&F| 00000370 34 3a 53 54 41 26 46 45 30 35 3a 4c 44 41 23 30 |4:STA&FE05:LDA#0| 00000380 3a 53 54 41 26 37 30 3a 53 54 41 26 37 32 3a 53 |:STA&70:STA&72:S| 00000390 54 41 26 37 34 3a 4c 44 41 23 26 41 30 3a 53 54 |TA&74:LDA#&A0:ST| 000003a0 41 26 37 31 3a 4c 44 41 23 26 34 30 3a 53 54 41 |A&71:LDA#&40:STA| 000003b0 26 37 33 3a 4c 44 41 23 26 43 30 3a 53 54 41 26 |&73:LDA#&C0:STA&| 000003c0 37 35 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 32 3a |75:JSRmoveloop2:| 000003d0 4c 44 41 23 31 35 3a 53 54 41 26 46 34 3a 53 54 |LDA#15:STA&F4:ST| 000003e0 41 26 46 45 30 35 3a 4a 53 52 62 61 6e 6b 31 3a |A&FE05:JSRbank1:| 000003f0 4c 44 41 23 30 3a 53 54 41 26 37 30 3a 53 54 41 |LDA#0:STA&70:STA| 00000400 26 37 32 3a 53 54 41 26 37 34 3a 4c 44 41 23 26 |&72:STA&74:LDA#&| 00000410 34 30 3a 53 54 41 26 37 31 3a 4c 44 41 23 26 41 |40:STA&71:LDA#&A| 00000420 30 3a 53 54 41 26 37 33 3a 4c 44 41 23 26 36 30 |0:STA&73:LDA#&60| 00000430 3a 53 54 41 26 37 35 3a 4a 53 52 6d 6f 76 65 6c |:STA&75:JSRmovel| 00000440 6f 6f 70 32 0d 00 46 aa 20 2e 62 61 6e 6b 32 65 |oop2..F. .bank2e| 00000450 6e 74 72 79 20 4a 53 52 62 61 6e 6b 32 3a 4c 44 |ntry JSRbank2:LD| 00000460 41 23 28 65 6e 74 65 72 20 83 32 35 36 29 3a 53 |A#(enter .256):S| 00000470 54 41 26 37 30 3a 4c 44 41 23 28 65 6e 74 65 72 |TA&70:LDA#(enter| 00000480 20 81 32 35 36 29 3a 53 54 41 26 37 31 3a 4c 44 | .256):STA&71:LD| 00000490 59 23 30 3a 4c 44 41 23 26 34 43 3a 53 54 41 28 |Y#0:LDA#&4C:STA(| 000004a0 26 37 30 29 2c 59 3a 49 4e 59 3a 4c 44 41 23 28 |&70),Y:INY:LDA#(| 000004b0 42 32 72 6f 75 74 69 6e 65 20 83 32 35 36 29 3a |B2routine .256):| 000004c0 53 54 41 28 26 37 30 29 2c 59 3a 49 4e 59 3a 4c |STA(&70),Y:INY:L| 000004d0 44 41 23 28 42 32 72 6f 75 74 69 6e 65 20 81 32 |DA#(B2routine .2| 000004e0 35 36 29 3a 53 54 41 28 26 37 30 29 2c 59 0d 00 |56):STA(&70),Y..| 000004f0 4b a5 20 2e 65 76 65 6e 74 65 6e 74 72 79 20 4c |K. .evententry L| 00000500 44 41 23 28 65 6e 74 65 72 65 76 20 83 32 35 36 |DA#(enterev .256| 00000510 29 3a 53 54 41 26 37 30 3a 4c 44 41 23 28 65 6e |):STA&70:LDA#(en| 00000520 74 65 72 65 76 20 81 32 35 36 29 3a 53 54 41 26 |terev .256):STA&| 00000530 37 31 3a 4c 44 59 23 30 3a 4c 44 41 23 26 34 43 |71:LDY#0:LDA#&4C| 00000540 3a 53 54 41 28 26 37 30 29 2c 59 3a 49 4e 59 3a |:STA(&70),Y:INY:| 00000550 4c 44 41 23 28 65 76 72 6f 75 74 69 6e 65 20 83 |LDA#(evroutine .| 00000560 32 35 36 29 3a 53 54 41 28 26 37 30 29 2c 59 3a |256):STA(&70),Y:| 00000570 49 4e 59 3a 4c 44 41 23 28 65 76 72 6f 75 74 69 |INY:LDA#(evrouti| 00000580 6e 65 20 81 32 35 36 29 3a 53 54 41 28 26 37 30 |ne .256):STA(&70| 00000590 29 2c 59 0d 00 50 b4 20 2e 62 61 6e 6b 32 6d 61 |),Y..P. .bank2ma| 000005a0 69 6e 20 4c 44 41 23 28 73 74 61 72 74 20 83 32 |in LDA#(start .2| 000005b0 35 36 29 3a 53 54 41 26 37 30 3a 4c 44 41 23 28 |56):STA&70:LDA#(| 000005c0 73 74 61 72 74 20 81 32 35 36 29 3a 53 54 41 26 |start .256):STA&| 000005d0 37 31 3a 4c 44 41 23 28 62 61 6e 6b 31 20 83 32 |71:LDA#(bank1 .2| 000005e0 35 36 29 3a 53 54 41 26 37 34 3a 4c 44 41 23 28 |56):STA&74:LDA#(| 000005f0 62 61 6e 6b 31 20 81 32 35 36 29 3a 53 54 41 26 |bank1 .256):STA&| 00000600 37 35 3a 4c 44 41 23 28 42 32 72 6f 75 74 69 6e |75:LDA#(B2routin| 00000610 65 20 83 32 35 36 29 3a 53 54 41 26 37 32 3a 4c |e .256):STA&72:L| 00000620 44 41 23 28 42 32 72 6f 75 74 69 6e 65 20 81 32 |DA#(B2routine .2| 00000630 35 36 29 3a 53 54 41 26 37 33 3a 4a 53 52 6d 6f |56):STA&73:JSRmo| 00000640 76 65 6c 6f 6f 70 32 0d 00 5a 61 20 2e 41 44 46 |veloop2..Za .ADF| 00000650 53 64 61 74 61 20 4c 44 41 23 30 3a 53 54 41 26 |Sdata LDA#0:STA&| 00000660 37 30 3a 53 54 41 26 37 32 3a 53 54 41 26 37 34 |70:STA&72:STA&74| 00000670 3a 4c 44 41 23 39 3a 53 54 41 26 37 31 3a 4c 44 |:LDA#9:STA&71:LD| 00000680 41 23 26 38 39 3a 53 54 41 26 37 33 3a 4c 44 41 |A#&89:STA&73:LDA| 00000690 23 26 31 44 3a 53 54 41 26 37 35 3a 4a 53 52 6d |#&1D:STA&75:JSRm| 000006a0 6f 76 65 6c 6f 6f 70 32 0d 00 64 d7 20 2e 62 31 |oveloop2..d. .b1| 000006b0 72 65 74 75 72 6e 20 4c 44 41 23 28 62 61 6e 6b |return LDA#(bank| 000006c0 31 20 83 32 35 36 29 3a 53 54 41 26 37 30 3a 4c |1 .256):STA&70:L| 000006d0 44 41 23 28 62 61 6e 6b 31 20 81 32 35 36 29 3a |DA#(bank1 .256):| 000006e0 53 54 41 26 37 31 3a 4c 44 41 23 28 42 41 43 4b |STA&71:LDA#(BACK| 000006f0 2d 28 6f 73 62 79 74 65 2d 62 61 6e 6b 31 2d 31 |-(osbyte-bank1-1| 00000700 29 29 20 83 32 35 36 29 3a 53 54 41 26 37 32 3a |)) .256):STA&72:| 00000710 4c 44 41 23 28 42 41 43 4b 2d 28 6f 73 62 79 74 |LDA#(BACK-(osbyt| 00000720 65 2d 62 61 6e 6b 31 2d 31 29 29 20 81 32 35 36 |e-bank1-1)) .256| 00000730 29 3a 53 54 41 26 37 33 3a 4c 44 41 23 28 28 6f |):STA&73:LDA#((o| 00000740 73 62 79 74 65 2d 31 29 20 83 32 35 36 29 3a 53 |sbyte-1) .256):S| 00000750 54 41 26 37 34 3a 4c 44 41 23 28 28 6f 73 62 79 |TA&74:LDA#((osby| 00000760 74 65 2d 31 29 20 81 32 35 36 29 3a 53 54 41 26 |te-1) .256):STA&| 00000770 37 35 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 32 0d |75:JSRmoveloop2.| 00000780 00 6e c2 20 2e 62 31 6f 73 62 79 74 65 20 4a 53 |.n. .b1osbyte JS| 00000790 52 62 61 6e 6b 31 3a 4c 44 41 23 28 6f 73 62 79 |Rbank1:LDA#(osby| 000007a0 74 65 20 83 32 35 36 29 3a 53 54 41 26 37 30 3a |te .256):STA&70:| 000007b0 4c 44 41 23 28 6f 73 62 79 74 65 20 81 32 35 36 |LDA#(osbyte .256| 000007c0 29 3a 53 54 41 26 37 31 3a 4c 44 41 23 28 4f 42 |):STA&71:LDA#(OB| 000007d0 72 6f 75 74 69 6e 65 20 83 32 35 36 29 3a 53 54 |routine .256):ST| 000007e0 41 26 37 32 3a 4c 44 41 23 28 4f 42 72 6f 75 74 |A&72:LDA#(OBrout| 000007f0 69 6e 65 20 81 32 35 36 29 3a 53 54 41 26 37 33 |ine .256):STA&73| 00000800 3a 4c 44 41 23 28 6f 73 62 79 74 65 32 20 83 32 |:LDA#(osbyte2 .2| 00000810 35 36 29 3a 53 54 41 26 37 34 3a 4c 44 41 23 28 |56):STA&74:LDA#(| 00000820 6f 73 62 79 74 65 32 20 81 32 35 36 29 3a 53 54 |osbyte2 .256):ST| 00000830 41 26 37 35 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 |A&75:JSRmoveloop| 00000840 32 0d 00 70 b8 20 2e 62 31 6f 73 62 79 74 65 32 |2..p. .b1osbyte2| 00000850 20 4c 44 41 23 28 6f 73 62 79 74 65 32 20 83 32 | LDA#(osbyte2 .2| 00000860 35 36 29 3a 53 54 41 26 37 30 3a 4c 44 41 23 28 |56):STA&70:LDA#(| 00000870 6f 73 62 79 74 65 32 20 81 32 35 36 29 3a 53 54 |osbyte2 .256):ST| 00000880 41 26 37 31 3a 4c 44 41 23 28 4f 42 72 6f 75 74 |A&71:LDA#(OBrout| 00000890 32 20 83 32 35 36 29 3a 53 54 41 26 37 32 3a 4c |2 .256):STA&72:L| 000008a0 44 41 23 28 4f 42 72 6f 75 74 32 20 81 32 35 36 |DA#(OBrout2 .256| 000008b0 29 3a 53 54 41 26 37 33 3a 4c 44 41 23 28 6f 73 |):STA&73:LDA#(os| 000008c0 62 79 74 65 33 20 83 32 35 36 29 3a 53 54 41 26 |byte3 .256):STA&| 000008d0 37 34 3a 4c 44 41 23 28 6f 73 62 79 74 65 33 20 |74:LDA#(osbyte3 | 000008e0 81 32 35 36 29 3a 53 54 41 26 37 35 3a 4a 53 52 |.256):STA&75:JSR| 000008f0 6d 6f 76 65 6c 6f 6f 70 32 0d 00 72 b2 20 2e 62 |moveloop2..r. .b| 00000900 31 6f 73 62 79 74 65 33 20 4c 44 41 23 28 6f 73 |1osbyte3 LDA#(os| 00000910 62 79 74 65 33 20 83 32 35 36 29 3a 53 54 41 26 |byte3 .256):STA&| 00000920 37 30 3a 4c 44 41 23 28 6f 73 62 79 74 65 33 20 |70:LDA#(osbyte3 | 00000930 81 32 35 36 29 3a 53 54 41 26 37 31 3a 4c 44 41 |.256):STA&71:LDA| 00000940 23 28 4f 42 72 6f 75 74 33 20 83 32 35 36 29 3a |#(OBrout3 .256):| 00000950 53 54 41 26 37 32 3a 4c 44 41 23 28 4f 42 72 6f |STA&72:LDA#(OBro| 00000960 75 74 33 20 81 32 35 36 29 3a 53 54 41 26 37 33 |ut3 .256):STA&73| 00000970 3a 4c 44 41 23 28 66 69 6c 65 20 83 32 35 36 29 |:LDA#(file .256)| 00000980 3a 53 54 41 26 37 34 3a 4c 44 41 23 28 66 69 6c |:STA&74:LDA#(fil| 00000990 65 20 81 32 35 36 29 3a 53 54 41 26 37 35 3a 4a |e .256):STA&75:J| 000009a0 53 52 6d 6f 76 65 6c 6f 6f 70 32 0d 00 78 b5 20 |SRmoveloop2..x. | 000009b0 2e 62 31 6f 73 66 69 6c 65 20 4c 44 41 23 28 66 |.b1osfile LDA#(f| 000009c0 69 6c 65 20 83 32 35 36 29 3a 53 54 41 26 37 30 |ile .256):STA&70| 000009d0 3a 4c 44 41 23 28 66 69 6c 65 20 81 32 35 36 29 |:LDA#(file .256)| 000009e0 3a 53 54 41 26 37 31 3a 4c 44 41 23 28 4f 46 49 |:STA&71:LDA#(OFI| 000009f0 4c 45 20 83 32 35 36 29 3a 53 54 41 26 37 32 3a |LE .256):STA&72:| 00000a00 4c 44 41 23 28 4f 46 49 4c 45 20 81 32 35 36 29 |LDA#(OFILE .256)| 00000a10 3a 53 54 41 26 37 33 3a 4c 44 41 23 28 28 66 69 |:STA&73:LDA#((fi| 00000a20 6c 65 72 65 74 2d 31 29 20 83 32 35 36 29 3a 53 |leret-1) .256):S| 00000a30 54 41 26 37 34 3a 4c 44 41 23 28 28 66 69 6c 65 |TA&74:LDA#((file| 00000a40 72 65 74 2d 31 29 20 81 32 35 36 29 3a 53 54 41 |ret-1) .256):STA| 00000a50 26 37 35 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 32 |&75:JSRmoveloop2| 00000a60 0d 00 82 b0 20 2e 62 31 66 69 6c 65 72 65 74 20 |.... .b1fileret | 00000a70 4c 44 41 23 28 66 69 6c 65 72 65 74 20 83 32 35 |LDA#(fileret .25| 00000a80 36 29 3a 53 54 41 26 37 30 3a 4c 44 41 23 28 66 |6):STA&70:LDA#(f| 00000a90 69 6c 65 72 65 74 20 81 32 35 36 29 3a 53 54 41 |ileret .256):STA| 00000aa0 26 37 31 3a 4c 44 41 23 28 42 41 43 4b 20 83 32 |&71:LDA#(BACK .2| 00000ab0 35 36 29 3a 53 54 41 26 37 32 3a 4c 44 41 23 28 |56):STA&72:LDA#(| 00000ac0 42 41 43 4b 20 81 32 35 36 29 3a 53 54 41 26 37 |BACK .256):STA&7| 00000ad0 33 3a 4c 44 41 23 28 65 76 72 6f 75 74 20 83 32 |3:LDA#(evrout .2| 00000ae0 35 36 29 3a 53 54 41 26 37 34 3a 4c 44 41 23 28 |56):STA&74:LDA#(| 00000af0 65 76 72 6f 75 74 20 81 32 35 36 29 3a 53 54 41 |evrout .256):STA| 00000b00 26 37 35 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 32 |&75:JSRmoveloop2| 00000b10 0d 00 87 ac 20 2e 62 31 65 76 65 6e 74 20 4c 44 |.... .b1event LD| 00000b20 41 23 28 65 76 72 6f 75 74 20 83 32 35 36 29 3a |A#(evrout .256):| 00000b30 53 54 41 26 37 30 3a 4c 44 41 23 28 65 76 72 6f |STA&70:LDA#(evro| 00000b40 75 74 20 81 32 35 36 29 3a 53 54 41 26 37 31 3a |ut .256):STA&71:| 00000b50 4c 44 41 23 28 45 56 45 4e 54 20 83 32 35 36 29 |LDA#(EVENT .256)| 00000b60 3a 53 54 41 26 37 32 3a 4c 44 41 23 28 45 56 45 |:STA&72:LDA#(EVE| 00000b70 4e 54 20 81 32 35 36 29 3a 53 54 41 26 37 33 3a |NT .256):STA&73:| 00000b80 4c 44 41 23 28 65 76 65 6e 64 20 83 32 35 36 29 |LDA#(evend .256)| 00000b90 3a 53 54 41 26 37 34 3a 4c 44 41 23 28 65 76 65 |:STA&74:LDA#(eve| 00000ba0 6e 64 20 81 32 35 36 29 3a 53 54 41 26 37 35 3a |nd .256):STA&75:| 00000bb0 4a 53 52 6d 6f 76 65 6c 6f 6f 70 32 0d 00 8c 6a |JSRmoveloop2...j| 00000bc0 20 2e 70 61 67 65 20 4c 44 41 23 30 3a 53 54 41 | .page LDA#0:STA| 00000bd0 26 37 30 3a 53 54 41 26 37 32 3a 4c 44 41 26 31 |&70:STA&72:LDA&1| 00000be0 38 3a 53 54 41 26 37 31 3a 4c 44 41 23 26 45 3a |8:STA&71:LDA#&E:| 00000bf0 53 54 41 26 37 33 3a 53 54 41 26 31 38 3a 4c 44 |STA&73:STA&18:LD| 00000c00 41 26 31 32 3a 53 54 41 26 37 34 3a 4c 44 41 26 |A&12:STA&74:LDA&| 00000c10 31 33 3a 53 54 41 26 37 35 3a 4a 53 52 6d 6f 76 |13:STA&75:JSRmov| 00000c20 65 6c 6f 6f 70 32 0d 00 96 67 20 2e 6c 61 6e 67 |eloop2...g .lang| 00000c30 52 4f 4d 20 4c 44 41 62 61 6e 6b 31 2b 31 3a 53 |ROM LDAbank1+1:S| 00000c40 54 41 26 32 38 43 3a 43 4c 43 3a 41 44 43 23 26 |TA&28C:CLC:ADC#&| 00000c50 41 30 3a 53 54 41 26 37 30 3a 4c 44 41 23 32 3a |A0:STA&70:LDA#2:| 00000c60 53 54 41 26 37 31 3a 4c 44 59 23 30 3a 4c 44 41 |STA&71:LDY#0:LDA| 00000c70 23 26 36 30 3a 53 54 41 28 26 37 30 29 2c 59 3a |#&60:STA(&70),Y:| 00000c80 4c 44 41 23 30 3a 53 54 41 26 32 41 42 0d 00 a0 |LDA#0:STA&2AB...| 00000c90 b3 20 2e 76 65 63 74 20 4c 44 41 26 32 30 41 3a |. .vect LDA&20A:| 00000ca0 53 54 41 4f 42 72 6f 75 74 32 2b 38 3a 4c 44 41 |STAOBrout2+8:LDA| 00000cb0 26 32 30 42 3a 53 54 41 4f 42 72 6f 75 74 32 2b |&20B:STAOBrout2+| 00000cc0 39 3a 4a 53 52 62 61 6e 6b 32 3a 4c 44 41 26 32 |9:JSRbank2:LDA&2| 00000cd0 30 41 3a 53 54 41 6f 73 62 79 74 65 4c 4f 3a 4c |0A:STAosbyteLO:L| 00000ce0 44 41 26 32 30 42 3a 53 54 41 6f 73 62 79 74 65 |DA&20B:STAosbyte| 00000cf0 48 49 3a 4c 44 41 26 32 31 32 3a 53 54 41 6f 73 |HI:LDA&212:STAos| 00000d00 66 69 6c 65 4c 4f 3a 4c 44 41 26 32 31 33 3a 53 |fileLO:LDA&213:S| 00000d10 54 41 6f 73 66 69 6c 65 48 49 3a 4c 44 41 26 32 |TAosfileHI:LDA&2| 00000d20 31 45 3a 53 54 41 6f 73 66 73 63 4c 4f 3a 4c 44 |1E:STAosfscLO:LD| 00000d30 41 26 32 31 46 3a 53 54 41 6f 73 66 73 63 48 49 |A&21F:STAosfscHI| 00000d40 0d 00 a5 b2 20 4c 44 41 26 32 30 34 3a 53 54 41 |.... LDA&204:STA| 00000d50 69 6e 74 65 72 4c 4f 3a 4c 44 41 26 32 30 35 3a |interLO:LDA&205:| 00000d60 53 54 41 69 6e 74 65 72 48 49 3a 4c 44 41 26 32 |STAinterHI:LDA&2| 00000d70 32 30 3a 53 54 41 65 76 65 6e 74 4c 4f 3a 4c 44 |20:STAeventLO:LD| 00000d80 41 26 32 32 31 3a 53 54 41 65 76 65 6e 74 48 49 |A&221:STAeventHI| 00000d90 3a 4c 44 41 23 31 34 3a 4c 44 58 23 34 3a 4c 44 |:LDA#14:LDX#4:LD| 00000da0 59 23 30 3a 4a 53 52 4f 53 42 59 54 45 3a 4c 44 |Y#0:JSROSBYTE:LD| 00000db0 58 23 32 3a 4c 44 59 23 30 3a 4a 53 52 4f 53 42 |X#2:LDY#0:JSROSB| 00000dc0 59 54 45 3a 53 45 49 3a 4a 53 52 76 65 63 74 6f |YTE:SEI:JSRvecto| 00000dd0 72 73 3a 43 4c 49 3a 4a 53 52 62 61 6e 6b 31 3a |rs:CLI:JSRbank1:| 00000de0 4c 44 41 23 30 3a 53 54 41 26 46 43 44 44 3a 52 |LDA#0:STA&FCDD:R| 00000df0 54 53 0d 00 aa 8d 20 2e 6d 6f 76 65 6c 6f 6f 70 |TS.... .moveloop| 00000e00 32 20 4c 44 59 23 30 3a 2e 6c 6f 6f 70 20 4c 44 |2 LDY#0:.loop LD| 00000e10 41 28 26 37 30 29 2c 59 3a 53 54 41 28 26 37 32 |A(&70),Y:STA(&72| 00000e20 29 2c 59 3a 49 4e 43 26 37 30 3a 42 4e 45 61 3a |),Y:INC&70:BNEa:| 00000e30 49 4e 43 26 37 31 3a 2e 61 20 49 4e 43 26 37 32 |INC&71:.a INC&72| 00000e40 3a 42 4e 45 62 3a 49 4e 43 26 37 33 3a 2e 62 20 |:BNEb:INC&73:.b | 00000e50 4c 44 41 26 37 30 3a 43 4d 50 26 37 34 3a 42 4e |LDA&70:CMP&74:BN| 00000e60 45 6c 6f 6f 70 3a 4c 44 41 26 37 31 3a 43 4d 50 |Eloop:LDA&71:CMP| 00000e70 26 37 35 3a 42 4e 45 6c 6f 6f 70 3a 52 54 53 0d |&75:BNEloop:RTS.| 00000e80 00 b4 2d 20 5d 3a 4f 25 3d 50 25 3a 73 74 61 72 |..- ]:O%=P%:star| 00000e90 74 3d 4f 25 3a 50 25 3d 42 32 72 6f 75 74 69 6e |t=O%:P%=B2routin| 00000ea0 65 3a 5b 4f 50 54 70 61 73 73 2b 34 0d 00 be ae |e:[OPTpass+4....| 00000eb0 20 4c 44 41 23 30 3a 41 44 43 23 30 3a 50 48 41 | LDA#0:ADC#0:PHA| 00000ec0 3a 53 45 49 3a 4a 53 52 76 65 63 6e 6f 72 6d 3a |:SEI:JSRvecnorm:| 00000ed0 43 4c 49 3a 4a 4d 50 63 6f 6e 74 3a 2e 76 65 63 |CLI:JMPcont:.vec| 00000ee0 6e 6f 72 6d 20 4c 44 41 6f 73 66 73 63 4c 4f 3a |norm LDAosfscLO:| 00000ef0 53 54 41 26 32 31 45 3a 4c 44 41 6f 73 66 73 63 |STA&21E:LDAosfsc| 00000f00 48 49 3a 53 54 41 26 32 31 46 3a 4c 44 41 6f 73 |HI:STA&21F:LDAos| 00000f10 66 69 6c 65 4c 4f 3a 53 54 41 26 32 31 32 3a 4c |fileLO:STA&212:L| 00000f20 44 41 6f 73 66 69 6c 65 48 49 3a 53 54 41 26 32 |DAosfileHI:STA&2| 00000f30 31 33 3a 4c 44 41 6f 73 62 79 74 65 4c 4f 3a 53 |13:LDAosbyteLO:S| 00000f40 54 41 26 32 30 41 3a 4c 44 41 6f 73 62 79 74 65 |TA&20A:LDAosbyte| 00000f50 48 49 3a 53 54 41 26 32 30 42 0d 00 c0 7c 20 4c |HI:STA&20B...| L| 00000f60 44 41 65 76 65 6e 74 4c 4f 3a 53 54 41 26 32 32 |DAeventLO:STA&22| 00000f70 30 3a 4c 44 41 65 76 65 6e 74 48 49 3a 53 54 41 |0:LDAeventHI:STA| 00000f80 26 32 32 31 3a 4c 44 41 26 32 30 34 3a 53 54 41 |&221:LDA&204:STA| 00000f90 69 6e 74 65 72 6e 65 77 4c 4f 3a 4c 44 41 26 32 |internewLO:LDA&2| 00000fa0 30 35 3a 53 54 41 69 6e 74 65 72 6e 65 77 48 49 |05:STAinternewHI| 00000fb0 3a 4c 44 41 69 6e 74 65 72 4c 4f 3a 53 54 41 26 |:LDAinterLO:STA&| 00000fc0 32 30 34 3a 4c 44 41 69 6e 74 65 72 48 49 3a 53 |204:LDAinterHI:S| 00000fd0 54 41 26 32 30 35 0d 00 c3 89 20 53 54 58 65 6e |TA&205.... STXen| 00000fe0 64 61 64 64 3a 4c 44 58 23 30 3a 2e 73 61 76 65 |dadd:LDX#0:.save| 00000ff0 76 61 72 73 20 4c 44 41 26 37 30 2c 58 3a 53 54 |vars LDA&70,X:ST| 00001000 41 74 65 6d 70 73 74 6f 72 65 2c 58 3a 49 4e 58 |Atempstore,X:INX| 00001010 3a 43 50 58 23 36 3a 42 4e 45 73 61 76 65 76 61 |:CPX#6:BNEsaveva| 00001020 72 73 3a 53 54 59 26 37 35 3a 4c 44 58 65 6e 64 |rs:STY&75:LDXend| 00001030 61 64 64 3a 53 54 58 26 37 34 3a 52 54 53 3a 2e |add:STX&74:RTS:.| 00001040 63 6f 6e 74 20 50 4c 41 3a 42 45 51 66 69 6c 65 |cont PLA:BEQfile| 00001050 72 6f 75 74 3a 4a 4d 50 66 73 63 72 6f 75 74 0d |rout:JMPfscrout.| 00001060 00 c8 56 20 2e 66 69 6c 65 72 6f 75 74 20 4c 44 |..V .filerout LD| 00001070 59 23 30 3a 4c 44 41 28 26 37 34 29 2c 59 3a 54 |Y#0:LDA(&74),Y:T| 00001080 41 58 3a 49 4e 59 3a 4c 44 41 28 26 37 34 29 2c |AX:INY:LDA(&74),| 00001090 59 3a 53 54 58 26 37 30 3a 53 54 41 26 37 31 3a |Y:STX&70:STA&71:| 000010a0 44 45 59 3a 4a 53 52 66 69 6c 65 6e 61 6d 65 3a |DEY:JSRfilename:| 000010b0 4c 44 58 23 30 0d 00 d2 a9 20 2e 6c 6f 61 64 20 |LDX#0.... .load | 000010c0 4c 44 41 23 30 3a 53 54 41 26 37 30 3a 53 54 41 |LDA#0:STA&70:STA| 000010d0 26 37 32 3a 4c 44 41 23 39 3a 53 54 41 26 37 31 |&72:LDA#9:STA&71| 000010e0 3a 4c 44 41 23 26 41 43 3a 53 54 41 26 37 33 3a |:LDA#&AC:STA&73:| 000010f0 4c 44 41 23 26 31 44 3a 53 54 41 65 6e 64 61 64 |LDA#&1D:STAendad| 00001100 64 3a 4c 44 59 23 30 3a 4a 53 52 6d 6f 76 65 6c |d:LDY#0:JSRmovel| 00001110 6f 6f 70 3a 4c 44 41 23 26 38 39 3a 53 54 41 26 |oop:LDA#&89:STA&| 00001120 37 31 3a 4c 44 41 23 39 3a 53 54 41 26 37 33 3a |71:LDA#9:STA&73:| 00001130 4c 44 41 23 26 39 44 3a 53 54 41 65 6e 64 61 64 |LDA#&9D:STAendad| 00001140 64 3a 4c 44 59 23 30 3a 4a 53 52 6d 6f 76 65 6c |d:LDY#0:JSRmovel| 00001150 6f 6f 70 3a 4a 4d 50 6c 6f 61 64 61 64 64 0d 00 |oop:JMPloadadd..| 00001160 dc 63 20 2e 6d 6f 76 65 6c 6f 6f 70 20 4c 44 41 |.c .moveloop LDA| 00001170 28 26 37 30 29 2c 59 3a 53 54 41 28 26 37 32 29 |(&70),Y:STA(&72)| 00001180 2c 59 3a 49 4e 59 3a 42 4e 45 6d 6f 76 65 6c 6f |,Y:INY:BNEmovelo| 00001190 6f 70 3a 49 4e 43 26 37 31 3a 49 4e 43 26 37 33 |op:INC&71:INC&73| 000011a0 3a 4c 44 41 26 37 31 3a 43 4d 50 65 6e 64 61 64 |:LDA&71:CMPendad| 000011b0 64 3a 42 4e 45 6d 6f 76 65 6c 6f 6f 70 3a 52 54 |d:BNEmoveloop:RT| 000011c0 53 0d 00 e6 e3 20 2e 6c 6f 61 64 61 64 64 20 4c |S.... .loadadd L| 000011d0 44 41 23 30 3a 53 54 41 26 41 30 30 3a 4c 44 41 |DA#0:STA&A00:LDA| 000011e0 23 26 42 3a 53 54 41 26 41 30 31 3a 53 54 58 65 |#&B:STA&A01:STXe| 000011f0 6e 64 61 64 64 3a 43 50 58 23 31 3a 42 45 51 66 |ndadd:CPX#1:BEQf| 00001200 69 6e 64 61 64 64 3a 4c 44 41 23 30 3a 53 54 41 |indadd:LDA#0:STA| 00001210 26 37 32 3a 4c 44 41 23 26 41 3a 53 54 41 26 37 |&72:LDA#&A:STA&7| 00001220 33 3a 4c 44 41 26 37 34 3a 53 54 41 26 37 30 3a |3:LDA&74:STA&70:| 00001230 4c 44 41 23 33 3a 53 54 41 65 6e 64 61 64 64 3a |LDA#3:STAendadd:| 00001240 4c 44 41 26 37 35 3a 4c 44 59 23 30 3a 2e 72 61 |LDA&75:LDY#0:.ra| 00001250 6d 20 43 4d 50 23 26 43 30 3a 42 4e 45 6e 6f 31 |m CMP#&C0:BNEno1| 00001260 3a 4c 44 41 23 26 31 44 3a 4a 4d 50 73 74 3a 2e |:LDA#&1D:JMPst:.| 00001270 6e 6f 31 20 43 4d 50 23 26 31 44 3a 42 43 53 73 |no1 CMP#&1D:BCSs| 00001280 74 3a 43 4d 50 23 39 3a 42 43 43 73 74 3a 43 4c |t:CMP#9:BCCst:CL| 00001290 43 3a 41 44 43 23 26 41 33 3a 2e 73 74 20 53 54 |C:ADC#&A3:.st ST| 000012a0 41 26 37 31 0d 00 f0 5e 20 2e 74 72 20 4c 44 41 |A&71...^ .tr LDA| 000012b0 28 26 37 30 29 2c 59 3a 53 54 41 28 26 37 32 29 |(&70),Y:STA(&72)| 000012c0 2c 59 3a 49 4e 43 26 37 32 3a 4c 44 41 26 37 32 |,Y:INC&72:LDA&72| 000012d0 3a 43 4d 50 23 26 31 32 3a 42 45 51 65 78 65 63 |:CMP#&12:BEQexec| 000012e0 3a 49 4e 43 26 37 30 3a 42 4e 45 74 72 3a 49 4e |:INC&70:BNEtr:IN| 000012f0 43 26 37 31 3a 4c 44 41 26 37 31 3a 4a 4d 50 72 |C&71:LDA&71:JMPr| 00001300 61 6d 0d 00 fa 8a 20 2e 65 78 65 63 20 4c 44 41 |am.... .exec LDA| 00001310 23 30 3a 53 54 41 26 41 30 30 3a 4c 44 41 23 26 |#0:STA&A00:LDA#&| 00001320 42 3a 53 54 41 26 41 30 31 3a 50 4c 41 3a 50 48 |B:STA&A01:PLA:PH| 00001330 41 3a 42 4e 45 6c 6f 61 64 65 72 3a 4a 4d 50 73 |A:BNEloader:JMPs| 00001340 61 76 65 3a 2e 6c 6f 61 64 65 72 20 4c 44 41 26 |ave:.loader LDA&| 00001350 41 30 36 3a 42 4e 45 66 69 6e 64 61 64 64 3a 4c |A06:BNEfindadd:L| 00001360 44 41 26 41 30 32 3a 53 54 41 26 37 30 3a 4c 44 |DA&A02:STA&70:LD| 00001370 41 26 41 30 33 3a 53 54 41 26 37 31 3a 4c 44 41 |A&A03:STA&71:LDA| 00001380 23 32 3a 53 54 41 65 6e 64 61 64 64 0d 01 04 d3 |#2:STAendadd....| 00001390 20 2e 66 69 6e 64 61 64 64 20 4c 44 41 23 35 3a | .findadd LDA#5:| 000013a0 4c 44 58 23 30 3a 4c 44 59 23 26 41 3a 4a 53 52 |LDX#0:LDY#&A:JSR| 000013b0 4f 53 46 49 4c 45 3a 43 4d 50 23 31 3a 42 45 51 |OSFILE:CMP#1:BEQ| 000013c0 72 75 6e 3a 4a 4d 50 65 72 72 6f 72 31 3a 2e 72 |run:JMPerror1:.r| 000013d0 75 6e 20 4c 44 58 65 6e 64 61 64 64 3a 43 50 58 |un LDXendadd:CPX| 000013e0 23 31 3a 42 4e 45 6c 61 64 64 72 3a 50 4c 41 3a |#1:BNEladdr:PLA:| 000013f0 53 54 41 26 37 32 3a 50 4c 41 3a 53 54 41 26 37 |STA&72:PLA:STA&7| 00001400 33 3a 4c 44 58 26 41 30 36 3a 4c 44 59 26 41 30 |3:LDX&A06:LDY&A0| 00001410 37 3a 44 45 58 3a 43 50 58 23 26 46 46 3a 42 4e |7:DEX:CPX#&FF:BN| 00001420 45 73 74 61 63 6b 3a 44 45 59 3a 2e 73 74 61 63 |Estack:DEY:.stac| 00001430 6b 20 54 59 41 3a 50 48 41 3a 54 58 41 3a 50 48 |k TYA:PHA:TXA:PH| 00001440 41 3a 4c 44 41 26 37 33 3a 50 48 41 3a 4c 44 41 |A:LDA&73:PHA:LDA| 00001450 26 37 32 3a 50 48 41 3a 4a 4d 50 61 72 65 61 0d |&72:PHA:JMParea.| 00001460 01 0e ac 20 2e 6c 61 64 64 72 20 43 50 58 23 32 |... .laddr CPX#2| 00001470 3a 42 4e 45 61 72 65 61 3a 4c 44 41 26 37 30 3a |:BNEarea:LDA&70:| 00001480 53 54 41 26 41 30 32 3a 4c 44 41 26 37 31 3a 53 |STA&A02:LDA&71:S| 00001490 54 41 26 41 30 33 3a 4c 44 41 23 30 3a 53 54 41 |TA&A03:LDA#0:STA| 000014a0 26 41 30 36 3a 2e 61 72 65 61 20 4c 44 41 26 41 |&A06:.area LDA&A| 000014b0 30 33 3a 43 4d 50 23 26 31 44 3a 42 43 53 6c 6f |03:CMP#&1D:BCSlo| 000014c0 61 64 32 3a 43 4d 50 23 39 3a 42 43 53 62 79 74 |ad2:CMP#9:BCSbyt| 000014d0 65 6c 6f 61 64 3a 43 4c 43 3a 4c 44 41 26 41 30 |eload:CLC:LDA&A0| 000014e0 32 3a 41 44 43 26 41 30 41 3a 4c 44 41 26 41 30 |2:ADC&A0A:LDA&A0| 000014f0 33 3a 41 44 43 26 41 30 42 3a 43 4d 50 23 39 3a |3:ADC&A0B:CMP#9:| 00001500 42 43 53 62 79 74 65 6c 6f 61 64 0d 01 18 31 20 |BCSbyteload...1 | 00001510 2e 6c 6f 61 64 32 20 4c 44 41 23 26 46 46 3a 4c |.load2 LDA#&FF:L| 00001520 44 58 23 30 3a 4c 44 59 23 26 41 3a 4a 53 52 4f |DX#0:LDY#&A:JSRO| 00001530 53 46 49 4c 45 3a 4a 4d 50 65 6e 64 0d 01 22 ed |SFILE:JMPend..".| 00001540 20 2e 62 79 74 65 6c 6f 61 64 20 4c 44 41 23 26 | .byteload LDA#&| 00001550 34 30 3a 4c 44 58 23 30 3a 4c 44 59 23 26 42 3a |40:LDX#0:LDY#&B:| 00001560 4a 53 52 4f 53 46 49 4e 44 3a 54 41 59 3a 43 4d |JSROSFIND:TAY:CM| 00001570 50 23 30 3a 42 4e 45 6f 6b 3a 4a 4d 50 65 72 72 |P#0:BNEok:JMPerr| 00001580 6f 72 31 3a 2e 6f 6b 20 4c 44 41 26 41 30 32 3a |or1:.ok LDA&A02:| 00001590 53 54 41 26 37 30 3a 4c 44 41 26 41 30 33 3a 43 |STA&70:LDA&A03:C| 000015a0 4d 50 23 39 3a 42 43 43 6e 6f 72 6d 3a 43 4c 43 |MP#9:BCCnorm:CLC| 000015b0 3a 41 44 43 23 26 41 33 3a 2e 6e 6f 72 6d 20 53 |:ADC#&A3:.norm S| 000015c0 54 41 26 37 31 3a 2e 62 67 65 74 20 43 4c 43 3a |TA&71:.bget CLC:| 000015d0 4a 53 52 4f 53 42 47 45 54 3a 42 43 53 65 6e 64 |JSROSBGET:BCSend| 000015e0 6c 6f 61 64 3a 53 54 41 28 26 37 30 2c 58 29 3a |load:STA(&70,X):| 000015f0 49 4e 43 26 37 30 3a 42 4e 45 62 67 65 74 3a 49 |INC&70:BNEbget:I| 00001600 4e 43 26 37 31 3a 4c 44 41 26 37 31 3a 43 4d 50 |NC&71:LDA&71:CMP| 00001610 23 26 43 30 3a 42 45 51 73 75 62 3a 43 4d 50 23 |#&C0:BEQsub:CMP#| 00001620 39 3a 42 4e 45 62 67 65 74 0d 01 2c 57 20 4c 44 |9:BNEbget..,W LD| 00001630 41 23 26 41 43 3a 53 54 41 26 37 31 3a 42 4e 45 |A#&AC:STA&71:BNE| 00001640 62 67 65 74 3a 2e 73 75 62 20 4c 44 41 23 26 31 |bget:.sub LDA#&1| 00001650 44 3a 53 54 41 26 37 31 3a 42 4e 45 62 67 65 74 |D:STA&71:BNEbget| 00001660 3a 2e 65 6e 64 6c 6f 61 64 20 4c 44 41 23 30 3a |:.endload LDA#0:| 00001670 4a 53 52 4f 53 46 49 4e 44 3a 4a 4d 50 65 6e 64 |JSROSFIND:JMPend| 00001680 0d 01 2e 4f 20 2e 73 61 76 65 20 4c 44 41 26 41 |...O .save LDA&A| 00001690 30 42 3a 43 4d 50 23 26 31 44 3a 42 43 53 73 61 |0B:CMP#&1D:BCSsa| 000016a0 76 65 32 3a 43 4d 50 23 39 3a 42 43 53 62 79 74 |ve2:CMP#9:BCSbyt| 000016b0 65 73 61 76 65 3a 4c 44 41 26 41 30 46 3a 43 4d |esave:LDA&A0F:CM| 000016c0 50 23 39 3a 42 43 53 62 79 74 65 73 61 76 65 0d |P#9:BCSbytesave.| 000016d0 01 30 2d 20 2e 73 61 76 65 32 20 4c 44 41 23 30 |.0- .save2 LDA#0| 000016e0 3a 54 41 58 3a 4c 44 59 23 26 41 3a 4a 53 52 4f |:TAX:LDY#&A:JSRO| 000016f0 53 46 49 4c 45 3a 4a 4d 50 65 6e 64 0d 01 32 c5 |SFILE:JMPend..2.| 00001700 20 2e 62 79 74 65 73 61 76 65 20 4c 44 41 26 41 | .bytesave LDA&A| 00001710 30 46 3a 43 4d 50 23 26 31 44 3a 42 43 53 6f 70 |0F:CMP#&1D:BCSop| 00001720 65 6e 6f 75 74 3a 43 4c 43 3a 41 44 43 23 26 41 |enout:CLC:ADC#&A| 00001730 33 3a 53 54 41 26 41 30 46 3a 2e 6f 70 65 6e 6f |3:STA&A0F:.openo| 00001740 75 74 20 4c 44 41 23 26 38 30 3a 4c 44 58 23 30 |ut LDA#&80:LDX#0| 00001750 3a 4c 44 59 23 26 42 3a 4a 53 52 4f 53 46 49 4e |:LDY#&B:JSROSFIN| 00001760 44 3a 54 41 59 3a 43 4d 50 23 30 3a 42 4e 45 6f |D:TAY:CMP#0:BNEo| 00001770 6b 53 3a 4a 4d 50 65 72 72 6f 72 31 3a 2e 6f 6b |kS:JMPerror1:.ok| 00001780 53 20 4c 44 41 26 41 30 41 3a 53 54 41 26 37 30 |S LDA&A0A:STA&70| 00001790 3a 4c 44 41 26 41 30 42 3a 43 4d 50 23 39 3a 42 |:LDA&A0B:CMP#9:B| 000017a0 43 43 6e 6f 72 6d 53 3a 43 4c 43 3a 41 44 43 23 |CCnormS:CLC:ADC#| 000017b0 26 41 33 3a 2e 6e 6f 72 6d 53 20 53 54 41 26 37 |&A3:.normS STA&7| 000017c0 31 0d 01 34 da 20 2e 62 70 75 74 20 4c 44 41 26 |1..4. .bput LDA&| 000017d0 37 30 3a 43 4d 50 26 41 30 45 3a 42 4e 45 73 61 |70:CMP&A0E:BNEsa| 000017e0 3a 4c 44 41 26 37 31 3a 43 4d 50 26 41 30 46 3a |:LDA&71:CMP&A0F:| 000017f0 42 45 51 65 6e 64 73 61 76 65 3a 2e 73 61 20 4c |BEQendsave:.sa L| 00001800 44 41 28 26 37 30 2c 58 29 3a 4a 53 52 4f 53 42 |DA(&70,X):JSROSB| 00001810 50 55 54 3a 49 4e 43 26 37 30 3a 42 4e 45 62 70 |PUT:INC&70:BNEbp| 00001820 75 74 3a 49 4e 43 26 37 31 3a 4c 44 41 26 37 31 |ut:INC&71:LDA&71| 00001830 3a 43 4d 50 23 26 43 30 3a 42 45 51 73 75 62 53 |:CMP#&C0:BEQsubS| 00001840 3a 43 4d 50 23 39 3a 42 4e 45 62 70 75 74 3a 4c |:CMP#9:BNEbput:L| 00001850 44 41 23 26 41 43 3a 53 54 41 26 37 31 3a 42 4e |DA#&AC:STA&71:BN| 00001860 45 62 70 75 74 3a 2e 73 75 62 53 20 4c 44 41 23 |Ebput:.subS LDA#| 00001870 26 31 44 3a 53 54 41 26 37 31 3a 42 4e 45 62 70 |&1D:STA&71:BNEbp| 00001880 75 74 3a 2e 65 6e 64 73 61 76 65 20 4c 44 41 23 |ut:.endsave LDA#| 00001890 30 3a 4a 53 52 4f 53 46 49 4e 44 0d 01 35 4c 20 |0:JSROSFIND..5L | 000018a0 4c 44 41 23 31 3a 4c 44 58 23 30 3a 4c 44 59 23 |LDA#1:LDX#0:LDY#| 000018b0 26 41 3a 4a 53 52 4f 53 46 49 4c 45 3a 4c 44 41 |&A:JSROSFILE:LDA| 000018c0 23 33 3a 53 54 41 26 41 30 45 3a 4c 44 41 23 34 |#3:STA&A0E:LDA#4| 000018d0 3a 4c 44 58 23 30 3a 4c 44 59 23 26 41 3a 4a 53 |:LDX#0:LDY#&A:JS| 000018e0 52 4f 53 46 49 4c 45 0d 01 36 97 20 2e 65 6e 64 |ROSFILE..6. .end| 000018f0 20 4c 44 41 23 30 3a 53 54 41 26 37 30 3a 53 54 | LDA#0:STA&70:ST| 00001900 41 26 37 32 3a 4c 44 41 23 39 3a 53 54 41 26 37 |A&72:LDA#9:STA&7| 00001910 31 3a 4c 44 41 23 26 38 39 3a 53 54 41 26 37 33 |1:LDA#&89:STA&73| 00001920 3a 4c 44 41 23 26 31 44 3a 53 54 41 65 6e 64 61 |:LDA#&1D:STAenda| 00001930 64 64 3a 4c 44 59 23 30 3a 4a 53 52 6d 6f 76 65 |dd:LDY#0:JSRmove| 00001940 6c 6f 6f 70 3a 4c 44 41 23 26 41 43 3a 53 54 41 |loop:LDA#&AC:STA| 00001950 26 37 31 3a 4c 44 41 23 39 3a 53 54 41 26 37 33 |&71:LDA#9:STA&73| 00001960 3a 4c 44 41 23 26 43 30 3a 53 54 41 65 6e 64 61 |:LDA#&C0:STAenda| 00001970 64 64 3a 4a 53 52 6d 6f 76 65 6c 6f 6f 70 0d 01 |dd:JSRmoveloop..| 00001980 3b 29 20 4a 53 52 70 61 75 73 65 3a 2e 77 61 69 |;) JSRpause:.wai| 00001990 74 32 20 4a 53 52 70 61 75 73 65 65 6e 64 3a 42 |t2 JSRpauseend:B| 000019a0 43 43 77 61 69 74 32 0d 01 40 cd 20 2e 72 65 74 |CCwait2..@. .ret| 000019b0 20 53 45 49 3a 4a 53 52 76 65 63 74 6f 72 73 32 | SEI:JSRvectors2| 000019c0 3a 4a 53 52 76 61 72 73 3a 43 4c 49 3a 4a 4d 50 |:JSRvars:CLI:JMP| 000019d0 20 42 41 43 4b 2d 28 6f 73 62 79 74 65 2d 62 61 | BACK-(osbyte-ba| 000019e0 6e 6b 31 2d 31 29 3a 5d 3a 76 65 63 74 6f 72 73 |nk1-1):]:vectors| 000019f0 3d 4f 25 3a 5b 4f 50 54 70 61 73 73 2b 34 3a 2e |=O%:[OPTpass+4:.| 00001a00 76 65 63 74 6f 72 73 32 20 4c 44 41 23 28 4f 42 |vectors2 LDA#(OB| 00001a10 72 6f 75 74 69 6e 65 20 83 32 35 36 29 3a 53 54 |routine .256):ST| 00001a20 41 26 32 30 41 3a 4c 44 41 23 28 4f 42 72 6f 75 |A&20A:LDA#(OBrou| 00001a30 74 69 6e 65 20 81 32 35 36 29 3a 53 54 41 26 32 |tine .256):STA&2| 00001a40 30 42 3a 4c 44 41 23 28 4f 46 49 4c 45 20 83 32 |0B:LDA#(OFILE .2| 00001a50 35 36 29 3a 53 54 41 26 32 31 32 3a 4c 44 41 23 |56):STA&212:LDA#| 00001a60 28 4f 46 49 4c 45 20 81 32 35 36 29 3a 53 54 41 |(OFILE .256):STA| 00001a70 26 32 31 33 0d 01 42 6a 20 4c 44 41 23 28 4f 46 |&213..Bj LDA#(OF| 00001a80 53 43 20 83 32 35 36 29 3a 53 54 41 26 32 31 45 |SC .256):STA&21E| 00001a90 3a 4c 44 41 23 28 4f 46 53 43 20 81 32 35 36 29 |:LDA#(OFSC .256)| 00001aa0 3a 53 54 41 26 32 31 46 3a 4c 44 41 23 28 45 56 |:STA&21F:LDA#(EV| 00001ab0 45 4e 54 20 83 32 35 36 29 3a 53 54 41 26 32 32 |ENT .256):STA&22| 00001ac0 30 3a 4c 44 41 23 28 45 56 45 4e 54 20 81 32 35 |0:LDA#(EVENT .25| 00001ad0 36 29 3a 53 54 41 26 32 32 31 3a 52 54 53 0d 01 |6):STA&221:RTS..| 00001ae0 4a 6a 20 2e 76 61 72 73 20 4c 44 59 26 37 35 3a |Jj .vars LDY&75:| 00001af0 4c 44 58 26 37 34 3a 53 54 58 65 6e 64 61 64 64 |LDX&74:STXendadd| 00001b00 3a 4c 44 58 23 30 3a 2e 6c 6f 61 64 76 61 72 73 |:LDX#0:.loadvars| 00001b10 20 4c 44 41 74 65 6d 70 73 74 6f 72 65 2c 58 3a | LDAtempstore,X:| 00001b20 53 54 41 26 37 30 2c 58 3a 49 4e 58 3a 43 50 58 |STA&70,X:INX:CPX| 00001b30 23 36 3a 42 4e 45 6c 6f 61 64 76 61 72 73 3a 4c |#6:BNEloadvars:L| 00001b40 44 58 65 6e 64 61 64 64 0d 01 4f 43 20 4c 44 41 |DXendadd..OC LDA| 00001b50 69 6e 74 65 72 6e 65 77 4c 4f 3a 53 54 41 26 32 |internewLO:STA&2| 00001b60 30 34 3a 4c 44 41 69 6e 74 65 72 6e 65 77 48 49 |04:LDAinternewHI| 00001b70 3a 53 54 41 26 32 30 35 3a 4c 44 41 23 30 3a 53 |:STA&205:LDA#0:S| 00001b80 54 41 26 46 43 44 44 3a 52 54 53 0d 01 54 c1 20 |TA&FCDD:RTS..T. | 00001b90 2e 66 73 63 72 6f 75 74 20 50 4c 41 3a 50 48 41 |.fscrout PLA:PHA| 00001ba0 3a 42 45 51 72 65 74 3a 43 4d 50 23 34 3a 42 45 |:BEQret:CMP#4:BE| 00001bb0 51 66 73 63 3a 43 4d 50 23 32 3a 42 45 51 66 73 |Qfsc:CMP#2:BEQfs| 00001bc0 63 3a 4a 53 52 6f 6c 64 4f 53 46 53 43 3a 4c 44 |c:JSRoldOSFSC:LD| 00001bd0 41 26 37 30 3a 53 54 41 26 31 30 44 35 3a 4c 44 |A&70:STA&10D5:LD| 00001be0 41 26 37 31 3a 53 54 41 26 44 43 43 3a 4c 44 41 |A&71:STA&DCC:LDA| 00001bf0 26 37 32 3a 53 54 41 26 44 43 44 3a 4c 44 41 26 |&72:STA&DCD:LDA&| 00001c00 37 33 3a 53 54 41 26 44 43 45 3a 4a 4d 50 72 65 |73:STA&DCE:JMPre| 00001c10 74 3a 2e 66 73 63 20 4c 44 41 26 37 34 3a 53 54 |t:.fsc LDA&74:ST| 00001c20 41 26 37 30 3a 4c 44 41 26 37 35 3a 53 54 41 26 |A&70:LDA&75:STA&| 00001c30 37 31 3a 4a 53 52 66 69 6c 65 6e 61 6d 65 3a 4c |71:JSRfilename:L| 00001c40 44 58 23 31 3a 4a 4d 50 6c 6f 61 64 0d 01 59 8e |DX#1:JMPload..Y.| 00001c50 20 2e 6f 6c 64 4f 53 46 53 43 20 4c 44 41 26 31 | .oldOSFSC LDA&1| 00001c60 30 44 35 3a 53 54 41 26 37 30 3a 4c 44 41 26 44 |0D5:STA&70:LDA&D| 00001c70 43 43 3a 53 54 41 26 37 31 3a 4c 44 41 26 44 43 |CC:STA&71:LDA&DC| 00001c80 44 3a 53 54 41 26 37 32 3a 4c 44 41 26 44 43 45 |D:STA&72:LDA&DCE| 00001c90 3a 53 54 41 26 37 33 3a 4c 44 41 23 26 36 30 3a |:STA&73:LDA#&60:| 00001ca0 53 54 41 26 44 43 43 3a 4c 44 41 23 26 39 45 3a |STA&DCC:LDA#&9E:| 00001cb0 53 54 41 26 44 43 44 3a 4c 44 41 23 34 3a 53 54 |STA&DCD:LDA#4:ST| 00001cc0 41 26 44 43 45 3a 50 4c 41 3a 50 48 41 3a 4a 4d |A&DCE:PLA:PHA:JM| 00001cd0 50 28 6f 73 66 73 63 4c 4f 29 0d 01 5e cd 20 2e |P(osfscLO)..^. .| 00001ce0 66 69 6c 65 6e 61 6d 65 20 4c 44 59 23 30 3a 4c |filename LDY#0:L| 00001cf0 44 41 28 26 37 30 29 2c 59 3a 43 4d 50 23 26 44 |DA(&70),Y:CMP#&D| 00001d00 3a 42 45 51 6e 61 6d 65 3a 43 4d 50 23 26 32 30 |:BEQname:CMP#&20| 00001d10 3a 42 45 51 6e 61 6d 65 3a 4a 4d 50 6e 6f 74 7a |:BEQname:JMPnotz| 00001d20 65 72 6f 3a 2e 6e 61 6d 65 20 4c 44 41 6e 61 6d |ero:.name LDAnam| 00001d30 65 4c 4f 3a 53 54 41 26 37 30 3a 53 54 41 26 37 |eLO:STA&70:STA&7| 00001d40 32 3a 4c 44 41 6e 61 6d 65 48 49 3a 53 54 41 26 |2:LDAnameHI:STA&| 00001d50 37 31 3a 53 54 41 26 37 33 3a 4c 44 41 28 26 37 |71:STA&73:LDA(&7| 00001d60 30 29 2c 59 3a 43 4d 50 23 30 3a 42 4e 45 6f 6b |0),Y:CMP#0:BNEok| 00001d70 32 3a 50 4c 41 3a 50 4c 41 3a 4a 4d 50 65 72 72 |2:PLA:PLA:JMPerr| 00001d80 6f 72 32 3a 2e 6f 6b 32 20 4c 44 41 28 26 37 32 |or2:.ok2 LDA(&72| 00001d90 29 2c 59 3a 49 4e 43 26 37 32 3a 42 4e 45 6e 6f |),Y:INC&72:BNEno| 00001da0 3a 49 4e 43 26 37 33 0d 01 68 e9 20 2e 6e 6f 20 |:INC&73..h. .no | 00001db0 43 4d 50 23 26 44 3a 42 4e 45 6f 6b 32 3a 4c 44 |CMP#&D:BNEok2:LD| 00001dc0 41 26 37 32 3a 53 54 41 6e 61 6d 65 4c 4f 3a 4c |A&72:STAnameLO:L| 00001dd0 44 41 26 37 33 3a 53 54 41 6e 61 6d 65 48 49 3a |DA&73:STAnameHI:| 00001de0 2e 6e 6f 74 7a 65 72 6f 20 4c 44 41 23 30 3a 53 |.notzero LDA#0:S| 00001df0 54 41 26 37 32 3a 4c 44 41 23 26 38 42 3a 53 54 |TA&72:LDA#&8B:ST| 00001e00 41 26 37 33 3a 2e 74 72 61 6e 73 6c 6f 6f 70 20 |A&73:.transloop | 00001e10 4c 44 41 28 26 37 30 29 2c 59 3a 53 54 41 28 26 |LDA(&70),Y:STA(&| 00001e20 37 32 29 2c 59 3a 43 4d 50 23 26 44 3a 42 45 51 |72),Y:CMP#&D:BEQ| 00001e30 65 6e 64 66 69 6c 65 3a 43 4d 50 23 26 32 30 3a |endfile:CMP#&20:| 00001e40 42 4e 45 63 6f 6e 74 66 69 6c 65 3a 4c 44 41 23 |BNEcontfile:LDA#| 00001e50 26 44 3a 53 54 41 28 26 37 32 29 2c 59 3a 42 4e |&D:STA(&72),Y:BN| 00001e60 45 65 6e 64 66 69 6c 65 3a 2e 63 6f 6e 74 66 69 |Eendfile:.contfi| 00001e70 6c 65 20 49 4e 59 3a 4a 4d 50 74 72 61 6e 73 6c |le INY:JMPtransl| 00001e80 6f 6f 70 3a 2e 65 6e 64 66 69 6c 65 20 52 54 53 |oop:.endfile RTS| 00001e90 0d 01 72 d1 20 2e 65 72 72 6f 72 31 20 4c 44 41 |..r. .error1 LDA| 00001ea0 23 28 6e 6f 74 66 6f 75 6e 64 20 83 32 35 36 29 |#(notfound .256)| 00001eb0 3a 53 54 41 26 37 30 3a 4c 44 41 23 28 6e 6f 74 |:STA&70:LDA#(not| 00001ec0 66 6f 75 6e 64 20 81 32 35 36 29 3a 53 54 41 26 |found .256):STA&| 00001ed0 37 31 3a 4a 4d 50 65 72 72 6f 72 3a 2e 65 72 72 |71:JMPerror:.err| 00001ee0 6f 72 32 20 4c 44 41 23 28 6e 6f 6d 6f 72 65 20 |or2 LDA#(nomore | 00001ef0 83 32 35 36 29 3a 53 54 41 26 37 30 3a 4c 44 41 |.256):STA&70:LDA| 00001f00 23 28 6e 6f 6d 6f 72 65 20 81 32 35 36 29 3a 53 |#(nomore .256):S| 00001f10 54 41 26 37 31 3a 2e 65 72 72 6f 72 20 4c 44 59 |TA&71:.error LDY| 00001f20 23 30 3a 2e 70 72 69 6e 74 6c 6f 6f 70 20 4c 44 |#0:.printloop LD| 00001f30 41 28 26 37 30 29 2c 59 3a 49 4e 59 3a 4a 53 52 |A(&70),Y:INY:JSR| 00001f40 4f 53 41 53 43 49 3a 43 4d 50 23 26 44 3a 42 4e |OSASCI:CMP#&D:BN| 00001f50 45 70 72 69 6e 74 6c 6f 6f 70 3a 4a 4d 50 72 65 |Eprintloop:JMPre| 00001f60 74 0d 01 74 a5 20 2e 65 76 72 6f 75 74 69 6e 65 |t..t. .evroutine| 00001f70 20 4a 53 52 76 65 63 6e 6f 72 6d 3a 4c 44 41 23 | JSRvecnorm:LDA#| 00001f80 31 33 3a 4c 44 58 23 34 3a 4c 44 59 23 30 3a 4a |13:LDX#4:LDY#0:J| 00001f90 53 52 4f 53 42 59 54 45 3a 4a 53 52 70 61 75 73 |SROSBYTE:JSRpaus| 00001fa0 65 3a 2e 77 61 69 74 20 4a 53 52 70 61 75 73 65 |e:.wait JSRpause| 00001fb0 65 6e 64 3a 42 43 43 77 61 69 74 3a 4c 44 41 23 |end:BCCwait:LDA#| 00001fc0 31 34 3a 4c 44 58 23 34 3a 4c 44 59 23 30 3a 4a |14:LDX#4:LDY#0:J| 00001fd0 53 52 4f 53 42 59 54 45 3a 4a 53 52 76 65 63 74 |SROSBYTE:JSRvect| 00001fe0 6f 72 73 32 3a 4a 53 52 76 61 72 73 3a 4a 4d 50 |ors2:JSRvars:JMP| 00001ff0 20 42 41 43 4b 2d 28 6f 73 62 79 74 65 2d 62 61 | BACK-(osbyte-ba| 00002000 6e 6b 31 2d 31 29 0d 01 7a a4 20 2e 70 61 75 73 |nk1-1)..z. .paus| 00002010 65 20 4c 44 41 23 26 38 31 3a 4c 44 58 23 28 a4 |e LDA#&81:LDX#(.| 00002020 69 6e 6b 65 79 28 50 61 75 73 65 4b 65 79 24 29 |inkey(PauseKey$)| 00002030 29 3a 4c 44 59 23 26 46 46 3a 4a 53 52 4f 53 42 |):LDY#&FF:JSROSB| 00002040 59 54 45 3a 4c 44 41 23 30 3a 42 43 43 70 61 75 |YTE:LDA#0:BCCpau| 00002050 73 65 72 65 74 3a 4c 44 41 23 26 38 31 3a 4c 44 |seret:LDA#&81:LD| 00002060 58 23 26 46 45 3a 4c 44 59 23 26 46 46 3a 4a 53 |X#&FE:LDY#&FF:JS| 00002070 52 4f 53 42 59 54 45 3a 4c 44 41 23 30 3a 42 43 |ROSBYTE:LDA#0:BC| 00002080 43 70 61 75 73 65 72 65 74 3a 4c 44 41 23 31 3a |Cpauseret:LDA#1:| 00002090 2e 70 61 75 73 65 72 65 74 20 53 54 41 70 61 75 |.pauseret STApau| 000020a0 73 65 66 6c 61 67 3a 52 54 53 0d 01 7b af 20 2e |seflag:RTS..{. .| 000020b0 70 61 75 73 65 65 6e 64 20 4c 44 41 70 61 75 73 |pauseend LDApaus| 000020c0 65 66 6c 61 67 3a 42 45 51 75 6e 70 61 75 73 65 |eflag:BEQunpause| 000020d0 3a 4c 44 41 23 26 38 31 3a 4c 44 58 23 28 a4 69 |:LDA#&81:LDX#(.i| 000020e0 6e 6b 65 79 28 43 6f 6e 74 4b 65 79 24 29 29 3a |nkey(ContKey$)):| 000020f0 4c 44 59 23 26 46 46 3a 4a 53 52 4f 53 42 59 54 |LDY#&FF:JSROSBYT| 00002100 45 3a 42 43 43 73 74 61 79 70 61 75 73 65 3a 4c |E:BCCstaypause:L| 00002110 44 41 23 26 38 31 3a 4c 44 58 23 26 46 45 3a 4c |DA#&81:LDX#&FE:L| 00002120 44 59 23 26 46 46 3a 4a 53 52 4f 53 42 59 54 45 |DY#&FF:JSROSBYTE| 00002130 3a 42 43 43 73 74 61 79 70 61 75 73 65 3a 2e 75 |:BCCstaypause:.u| 00002140 6e 70 61 75 73 65 20 53 45 43 3a 2e 73 74 61 79 |npause SEC:.stay| 00002150 70 61 75 73 65 20 52 54 53 0d 01 7c e6 20 2e 6e |pause RTS..|. .n| 00002160 6f 74 66 6f 75 6e 64 20 45 51 55 53 22 4e 6f 74 |otfound EQUS"Not| 00002170 20 66 6f 75 6e 64 22 3a 45 51 55 42 31 33 3a 2e | found":EQUB13:.| 00002180 6e 6f 6d 6f 72 65 20 45 51 55 53 22 4e 6f 20 6d |nomore EQUS"No m| 00002190 6f 72 65 20 66 69 6c 65 6e 61 6d 65 73 22 3a 45 |ore filenames":E| 000021a0 51 55 42 31 33 3a 2e 6e 61 6d 65 4c 4f 20 45 51 |QUB13:.nameLO EQ| 000021b0 55 42 6e 61 6d 65 73 20 83 32 35 36 3a 2e 6e 61 |UBnames .256:.na| 000021c0 6d 65 48 49 20 45 51 55 42 6e 61 6d 65 73 20 81 |meHI EQUBnames .| 000021d0 32 35 36 3a 2e 65 6e 64 61 64 64 20 45 51 55 42 |256:.endadd EQUB| 000021e0 30 3a 2e 6f 73 66 69 6c 65 4c 4f 20 45 51 55 42 |0:.osfileLO EQUB| 000021f0 30 3a 2e 6f 73 66 69 6c 65 48 49 20 45 51 55 42 |0:.osfileHI EQUB| 00002200 30 3a 2e 6f 73 66 73 63 4c 4f 20 45 51 55 42 30 |0:.osfscLO EQUB0| 00002210 3a 2e 6f 73 66 73 63 48 49 20 45 51 55 42 30 3a |:.osfscHI EQUB0:| 00002220 2e 6f 73 62 79 74 65 4c 4f 20 45 51 55 42 30 3a |.osbyteLO EQUB0:| 00002230 2e 6f 73 62 79 74 65 48 49 20 45 51 55 42 30 0d |.osbyteHI EQUB0.| 00002240 01 7e 64 20 2e 65 76 65 6e 74 4c 4f 20 45 51 55 |.~d .eventLO EQU| 00002250 42 30 3a 2e 65 76 65 6e 74 48 49 20 45 51 55 42 |B0:.eventHI EQUB| 00002260 30 3a 2e 69 6e 74 65 72 4c 4f 20 45 51 55 42 30 |0:.interLO EQUB0| 00002270 3a 2e 69 6e 74 65 72 48 49 20 45 51 55 42 30 3a |:.interHI EQUB0:| 00002280 2e 69 6e 74 65 72 6e 65 77 4c 4f 20 45 51 55 42 |.internewLO EQUB| 00002290 30 3a 2e 69 6e 74 65 72 6e 65 77 48 49 20 45 51 |0:.internewHI EQ| 000022a0 55 42 30 0d 01 81 64 20 2e 74 65 6d 70 73 74 6f |UB0...d .tempsto| 000022b0 72 65 20 45 51 55 44 30 3a 45 51 55 57 30 3a 2e |re EQUD0:EQUW0:.| 000022c0 70 61 75 73 65 66 6c 61 67 20 45 51 55 42 30 3a |pauseflag EQUB0:| 000022d0 2e 6e 61 6d 65 73 3a 5d 3a 24 4f 25 3d 66 69 6c |.names:]:$O%=fil| 000022e0 65 6e 61 6d 65 73 24 3a 4f 25 3d 4f 25 2b a9 28 |enames$:O%=O%+.(| 000022f0 66 69 6c 65 6e 61 6d 65 73 24 29 2b 31 3a 3f 28 |filenames$)+1:?(| 00002300 4f 25 2d 31 29 3d 30 0d 01 86 ca 20 62 61 6e 6b |O%-1)=0.... bank| 00002310 31 3d 4f 25 3a 5b 4f 50 54 70 61 73 73 2b 34 3a |1=O%:[OPTpass+4:| 00002320 4c 44 41 23 30 3a 53 54 41 26 46 34 3a 53 54 41 |LDA#0:STA&F4:STA| 00002330 26 46 45 30 35 3a 5d 3a 50 25 3d 4f 25 3a 5b 4f |&FE05:]:P%=O%:[O| 00002340 50 54 70 61 73 73 2b 34 3a 52 54 53 3a 5d 3a 6f |PTpass+4:RTS:]:o| 00002350 73 62 79 74 65 3d 4f 25 3a 50 25 3d 4f 42 72 6f |sbyte=O%:P%=OBro| 00002360 75 74 69 6e 65 3a 5b 4f 50 54 70 61 73 73 2b 34 |utine:[OPTpass+4| 00002370 3a 43 4d 50 23 31 34 30 3a 42 45 51 74 61 70 65 |:CMP#140:BEQtape| 00002380 3a 50 48 41 3a 4c 44 41 4f 42 72 6f 75 74 32 2b |:PHA:LDAOBrout2+| 00002390 38 3a 53 54 41 26 32 30 41 3a 4a 4d 50 4f 42 72 |8:STA&20A:JMPOBr| 000023a0 6f 75 74 32 3a 2e 74 61 70 65 20 52 54 53 3a 5d |out2:.tape RTS:]| 000023b0 3a 6f 73 62 79 74 65 32 3d 4f 25 3a 50 25 3d 4f |:osbyte2=O%:P%=O| 000023c0 42 72 6f 75 74 32 3a 5b 4f 50 54 70 61 73 73 2b |Brout2:[OPTpass+| 000023d0 34 0d 01 8b 9c 20 4c 44 41 4f 42 72 6f 75 74 32 |4.... LDAOBrout2| 000023e0 2b 39 3a 53 54 41 26 32 30 42 3a 50 4c 41 3a 4a |+9:STA&20B:PLA:J| 000023f0 53 52 26 30 30 30 30 3a 4a 4d 50 4f 42 72 6f 75 |SR&0000:JMPOBrou| 00002400 74 33 3a 5d 3a 6f 73 62 79 74 65 33 3d 4f 25 3a |t3:]:osbyte3=O%:| 00002410 50 25 3d 4f 42 72 6f 75 74 33 3a 5b 4f 50 54 70 |P%=OBrout3:[OPTp| 00002420 61 73 73 2b 34 3a 50 48 41 3a 4c 44 41 23 28 4f |ass+4:PHA:LDA#(O| 00002430 42 72 6f 75 74 69 6e 65 20 83 32 35 36 29 3a 53 |Broutine .256):S| 00002440 54 41 26 32 30 41 3a 4c 44 41 23 28 4f 42 72 6f |TA&20A:LDA#(OBro| 00002450 75 74 69 6e 65 20 81 32 35 36 29 3a 53 54 41 26 |utine .256):STA&| 00002460 32 30 42 3a 50 4c 41 3a 52 54 53 3a 5d 0d 01 90 |20B:PLA:RTS:]...| 00002470 b8 20 66 69 6c 65 3d 4f 25 3a 50 25 3d 4f 46 49 |. file=O%:P%=OFI| 00002480 4c 45 3a 5b 4f 50 54 70 61 73 73 2b 34 3a 43 4c |LE:[OPTpass+4:CL| 00002490 43 3a 42 43 43 6f 66 3a 2e 4f 46 53 43 20 53 45 |C:BCCof:.OFSC SE| 000024a0 43 3a 2e 6f 66 20 50 48 50 3a 50 48 41 3a 5d 3a |C:.of PHP:PHA:]:| 000024b0 62 61 6e 6b 32 3d 4f 25 3a 5b 4f 50 54 70 61 73 |bank2=O%:[OPTpas| 000024c0 73 2b 34 3a 4c 44 41 23 30 3a 53 54 41 26 46 34 |s+4:LDA#0:STA&F4| 000024d0 3a 53 54 41 26 46 45 30 35 3a 2e 65 6e 74 65 72 |:STA&FE05:.enter| 000024e0 3a 5d 3a 50 25 3d 4f 25 3a 5b 4f 50 54 70 61 73 |:]:P%=O%:[OPTpas| 000024f0 73 2b 34 3a 52 54 53 3a 5d 3a 66 69 6c 65 72 65 |s+4:RTS:]:filere| 00002500 74 3d 4f 25 3a 50 25 3d 42 41 43 4b 3a 5b 4f 50 |t=O%:P%=BACK:[OP| 00002510 54 70 61 73 73 2b 34 3a 50 4c 41 3a 50 4c 50 3a |Tpass+4:PLA:PLP:| 00002520 52 54 53 3a 5d 0d 01 95 54 20 65 76 72 6f 75 74 |RTS:]...T evrout| 00002530 3d 4f 25 3a 50 25 3d 45 56 45 4e 54 3a 5b 4f 50 |=O%:P%=EVENT:[OP| 00002540 54 70 61 73 73 2b 34 3a 50 48 50 3a 50 48 41 3a |Tpass+4:PHP:PHA:| 00002550 4c 44 41 23 30 3a 53 54 41 26 46 34 3a 53 54 41 |LDA#0:STA&F4:STA| 00002560 26 46 45 30 35 3a 2e 65 6e 74 65 72 65 76 3a 5d |&FE05:.enterev:]| 00002570 3a 65 76 65 6e 64 3d 4f 25 0d 01 9a 06 20 ed 0d |:evend=O%.... ..| 00002580 01 a4 39 20 f1 22 53 61 76 65 20 28 59 2f 4e 29 |..9 ."Save (Y/N)| 00002590 3f 22 3a 41 24 3d be 3a e7 20 41 24 3d 22 59 22 |?":A$=.:. A$="Y"| 000025a0 20 8c 20 ff 22 53 41 56 45 20 44 4c 20 32 30 30 | . ."SAVE DL 200| 000025b0 30 20 22 2b c3 7e 4f 25 0d 01 a9 06 20 e0 0d 01 |0 "+.~O%.... ...| 000025c0 ae 12 20 dd a4 69 6e 6b 65 79 28 4b 65 79 24 29 |.. ..inkey(Key$)| 000025d0 0d 01 b3 06 20 f7 0d 01 b8 1b 20 e3 6c 65 74 74 |.... ..... .lett| 000025e0 65 72 3d 31 20 b8 20 97 28 4b 65 79 24 29 2d 36 |er=1 . .(Key$)-6| 000025f0 34 0d 01 c2 0c 20 f3 20 76 61 6c 75 65 0d 01 cc |4.... . value...| 00002600 0d 20 ed 20 6c 65 74 74 65 72 0d 01 d6 0f 20 3d |. . letter.... =| 00002610 76 61 6c 75 65 2b 32 35 36 0d 01 e0 71 20 dc 20 |value+256...q . | 00002620 2d 36 36 2c 2d 31 30 31 2c 2d 38 33 2c 2d 35 31 |-66,-101,-83,-51| 00002630 2c 2d 33 35 2c 2d 36 38 2c 2d 38 34 2c 2d 38 35 |,-35,-68,-84,-85| 00002640 2c 2d 33 38 2c 2d 37 30 2c 2d 37 31 2c 2d 38 37 |,-38,-70,-71,-87| 00002650 2c 2d 31 30 32 2c 2d 38 36 2c 2d 35 35 2c 2d 35 |,-102,-86,-55,-5| 00002660 36 2c 2d 31 37 2c 2d 35 32 2c 2d 38 32 2c 2d 33 |6,-17,-52,-82,-3| 00002670 36 2c 2d 35 34 2c 2d 31 30 30 2c 2d 33 34 2c 2d |6,-54,-100,-34,-| 00002680 36 37 2c 2d 36 39 2c 2d 39 38 0d ff |67,-69,-98..| 0000268c