Home » Personal collection » Acorn ADFS disks » Electron » Cheat_finder.ADF » Rep2Cheat

Rep2Cheat

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 » Cheat_finder.ADF
Filename: Rep2Cheat
Read OK:
File size: 291C bytes
Load address: FFFF2C00
Exec address: FFFF8023
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
    1 REM    TAPE -> ADFS   L O A D E R                 by  M. FORD , 15/2/94 
    2 filenames$="DLoader"+CHR$13
    3 PauseKey$="P":ContKey$="O":SlowKey$="S":FastKey$="W":ChKey$="C"
    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 JSRcheat:JSRslow:JSRpauseend:BCCwait:LDA#14:LDX#4:LDY#0:JSROSBYTE:JSRvectors2:JSRvars:JMP BACK-(osbyte-bank1-1)
  374 .slow LDA#&81:LDX#(FNinkey(SlowKey$)):LDY#&FF:JSROSBYTE:BCCfast:LDX#&FE:LDY#&FF:JSROSBYTE:BCCfast:INCdelay:LDXdelay:CPX#1:BNEfast:DECdelay
  375 .fast LDX#(FNinkey(FastKey$)):LDY#&FF:JSROSBYTE:BCCdelloop:LDX#&FE:LDY#&FF:JSROSBYTE:BCCdelloop:DECdelay:BNEdelloop:INCdelay
  376 .delloop LDAdelay:STA&70:.del1 DEC&70:BEQdelend:LDA#0:STA&71:.del2 DEC&71:BNEdel2:JMPdel1:.delend RTS
  377.cheat LDAchflag:BEQchend:LDA#&81:LDX#(FNinkey(ChKey$)):LDY#&FF:JSROSBYTE:BCCch:LDA#&81:LDX#&FE:LDY#&FF:JSROSBYTE:BCSchend:.ch LDA#0:STA&BE2:STA&BE4:STA&BE1:STA&BE3:STA&BE0:STA&B80:LDA#1:STA&B81:RTS:.chend LDA#0:STA&B81:STAchflag:RTS
  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:.chflag EQUB1
  385 .tempstore EQUD0:EQUW0:.pauseflag EQUB0:.delay EQUB1:.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 DLS4 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$="DLoader"+�13
D PauseKey$="P":ContKey$="O":SlowKey$="S":FastKey$="W":ChKey$="C"
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 JSRcheat:JSRslow:JSRpauseend:BCCwait:LDA#14:LDX#4:LDY#0:JSROSBYTE:JSRvectors2:JSRvars:JMP BACK-(osbyte-bank1-1)
v� .slow LDA#&81:LDX#(�inkey(SlowKey$)):LDY#&FF:JSROSBYTE:BCCfast:LDX#&FE:LDY#&FF:JSROSBYTE:BCCfast:INCdelay:LDXdelay:CPX#1:BNEfast:DECdelay
w� .fast LDX#(�inkey(FastKey$)):LDY#&FF:JSROSBYTE:BCCdelloop:LDX#&FE:LDY#&FF:JSROSBYTE:BCCdelloop:DECdelay:BNEdelloop:INCdelay
xj .delloop LDAdelay:STA&70:.del1 DEC&70:BEQdelend:LDA#0:STA&71:.del2 DEC&71:BNEdel2:JMPdel1:.delend RTS
y�.cheat LDAchflag:BEQchend:LDA#&81:LDX#(�inkey(ChKey$)):LDY#&FF:JSROSBYTE:BCCch:LDA#&81:LDX#&FE:LDY#&FF:JSROSBYTE:BCSchend:.ch LDA#0:STA&BE2:STA&BE4:STA&BE1:STA&BE3:STA&BE0:STA&B80:LDA#1:STA&B81:RTS:.chend LDA#0:STA&B81:STAchflag:RTS
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
~r .eventLO EQUB0:.eventHI EQUB0:.interLO EQUB0:.interHI EQUB0:.internewLO EQUB0:.internewHI EQUB0:.chflag EQUB1
�q .tempstore EQUD0:EQUW0:.pauseflag EQUB0:.delay EQUB1:.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%
� �
�; �"Save (Y/N)?":A$=�:� A$="Y" � �"SAVE DLS4 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 1d 20  | , 15/2/94 .... |
00000050  66 69 6c 65 6e 61 6d 65  73 24 3d 22 44 4c 6f 61  |filenames$="DLoa|
00000060  64 65 72 22 2b bd 31 33  0d 00 03 44 20 50 61 75  |der"+.13...D Pau|
00000070  73 65 4b 65 79 24 3d 22  50 22 3a 43 6f 6e 74 4b  |seKey$="P":ContK|
00000080  65 79 24 3d 22 4f 22 3a  53 6c 6f 77 4b 65 79 24  |ey$="O":SlowKey$|
00000090  3d 22 53 22 3a 46 61 73  74 4b 65 79 24 3d 22 57  |="S":FastKey$="W|
000000a0  22 3a 43 68 4b 65 79 24  3d 22 43 22 0d 00 05 63  |":ChKey$="C"...c|
000000b0  20 4f 46 49 4c 45 3d 26  41 41 33 41 3a 42 41 43  | OFILE=&AA3A:BAC|
000000c0  4b 3d 26 38 36 39 38 3a  4f 42 72 6f 75 74 69 6e  |K=&8698:OBroutin|
000000d0  65 3d 26 39 43 30 35 3a  4f 42 72 6f 75 74 32 3d  |e=&9C05:OBrout2=|
000000e0  26 38 43 31 30 3a 4f 42  72 6f 75 74 33 3d 26 39  |&8C10:OBrout3=&9|
000000f0  39 41 39 3a 42 32 72 6f  75 74 69 6e 65 3d 26 41  |9A9:B2routine=&A|
00000100  30 30 30 3a 45 56 45 4e  54 3d 26 41 41 41 45 0d  |000:EVENT=&AAAE.|
00000110  00 06 5f 20 4f 53 42 59  54 45 3d 26 46 46 46 34  |.._ OSBYTE=&FFF4|
00000120  3a 4f 53 57 4f 52 44 3d  26 46 46 46 31 3a 4f 53  |:OSWORD=&FFF1:OS|
00000130  46 49 4c 45 3d 26 46 46  44 44 3a 4f 53 42 47 45  |FILE=&FFDD:OSBGE|
00000140  54 3d 26 46 46 44 37 3a  4f 53 42 50 55 54 3d 26  |T=&FFD7:OSBPUT=&|
00000150  46 46 44 34 3a 4f 53 46  49 4e 44 3d 26 46 46 43  |FFD4:OSFIND=&FFC|
00000160  45 3a 4f 53 41 53 43 49  3d 26 46 46 45 33 0d 00  |E:OSASCI=&FFE3..|
00000170  0a 26 20 e3 70 61 73 73  3d 30 20 b8 20 32 20 88  |.& .pass=0 . 2 .|
00000180  20 32 3a 50 25 3d 26 32  30 30 30 3a 5b 4f 50 54  | 2:P%=&2000:[OPT|
00000190  70 61 73 73 0d 00 14 66  20 4c 44 41 23 30 3a 53  |pass...f LDA#0:S|
000001a0  54 41 26 46 43 44 43 3a  53 54 41 26 46 43 44 45  |TA&FCDC:STA&FCDE|
000001b0  3a 4c 44 41 23 31 35 3a  53 54 41 26 46 34 3a 53  |:LDA#15:STA&F4:S|
000001c0  54 41 26 46 45 30 35 3a  4c 44 58 23 32 3a 53 45  |TA&FE05:LDX#2:SE|
000001d0  49 3a 2e 74 65 73 74 20  54 58 41 3a 53 54 41 26  |I:.test TXA:STA&|
000001e0  46 34 3a 53 54 41 26 46  45 30 35 3a 4c 44 41 23  |F4:STA&FE05:LDA#|
000001f0  30 3a 4c 44 41 26 38 38  30 30 0d 00 1e 37 20 49  |0:LDA&8800...7 I|
00000200  4e 43 26 38 38 30 30 3a  43 4d 50 26 38 38 30 30  |NC&8800:CMP&8800|
00000210  3a 42 4e 45 66 6f 75 6e  64 3a 44 45 58 3a 44 45  |:BNEfound:DEX:DE|
00000220  58 3a 42 50 4c 74 65 73  74 3a 4c 44 58 23 26 46  |X:BPLtest:LDX#&F|
00000230  46 0d 00 28 3e 20 2e 66  6f 75 6e 64 20 44 45 43  |F..(> .found DEC|
00000240  26 38 38 30 30 3a 43 4c  49 3a 53 54 58 62 61 6e  |&8800:CLI:STXban|
00000250  6b 31 2b 31 3a 49 4e 58  3a 53 54 58 62 61 6e 6b  |k1+1:INX:STXbank|
00000260  32 2b 31 3a 53 54 58 65  76 72 6f 75 74 2b 33 0d  |2+1:STXevrout+3.|
00000270  00 32 ef 20 2e 42 41 53  49 43 72 6f 6d 20 4c 44  |.2. .BASICrom LD|
00000280  41 23 31 31 3a 53 54 41  26 46 34 3a 53 54 41 26  |A#11:STA&F4:STA&|
00000290  46 45 30 35 3a 4c 44 41  23 30 3a 53 54 41 26 37  |FE05:LDA#0:STA&7|
000002a0  30 3a 53 54 41 26 37 32  3a 53 54 41 26 37 34 3a  |0:STA&72:STA&74:|
000002b0  4c 44 41 23 26 38 30 3a  53 54 41 26 37 31 3a 4c  |LDA#&80:STA&71:L|
000002c0  44 41 23 26 34 30 3a 53  54 41 26 37 33 3a 4c 44  |DA#&40:STA&73:LD|
000002d0  41 23 26 41 30 3a 53 54  41 26 37 35 3a 4a 53 52  |A#&A0:STA&75:JSR|
000002e0  6d 6f 76 65 6c 6f 6f 70  32 3a 4c 44 41 23 31 35  |moveloop2:LDA#15|
000002f0  3a 53 54 41 26 46 34 3a  53 54 41 26 46 45 30 35  |:STA&F4:STA&FE05|
00000300  3a 4a 53 52 62 61 6e 6b  31 3a 4c 44 41 23 30 3a  |:JSRbank1:LDA#0:|
00000310  53 54 41 26 37 30 3a 53  54 41 26 37 32 3a 53 54  |STA&70:STA&72:ST|
00000320  41 26 37 34 3a 4c 44 41  23 26 34 30 3a 53 54 41  |A&74:LDA#&40:STA|
00000330  26 37 31 3a 4c 44 41 23  26 38 30 3a 53 54 41 26  |&71:LDA#&80:STA&|
00000340  37 33 3a 4c 44 41 23 26  36 30 3a 53 54 41 26 37  |73:LDA#&60:STA&7|
00000350  35 3a 4a 53 52 6d 6f 76  65 6c 6f 6f 70 32 0d 00  |5:JSRmoveloop2..|
00000360  3c e4 4c 44 41 23 31 31  3a 53 54 41 26 46 34 3a  |<.LDA#11:STA&F4:|
00000370  53 54 41 26 46 45 30 35  3a 4c 44 41 23 30 3a 53  |STA&FE05:LDA#0:S|
00000380  54 41 26 37 30 3a 53 54  41 26 37 32 3a 53 54 41  |TA&70:STA&72:STA|
00000390  26 37 34 3a 4c 44 41 23  26 41 30 3a 53 54 41 26  |&74:LDA#&A0:STA&|
000003a0  37 31 3a 4c 44 41 23 26  34 30 3a 53 54 41 26 37  |71:LDA#&40:STA&7|
000003b0  33 3a 4c 44 41 23 26 43  30 3a 53 54 41 26 37 35  |3:LDA#&C0:STA&75|
000003c0  3a 4a 53 52 6d 6f 76 65  6c 6f 6f 70 32 3a 4c 44  |:JSRmoveloop2:LD|
000003d0  41 23 31 35 3a 53 54 41  26 46 34 3a 53 54 41 26  |A#15:STA&F4:STA&|
000003e0  46 45 30 35 3a 4a 53 52  62 61 6e 6b 31 3a 4c 44  |FE05:JSRbank1:LD|
000003f0  41 23 30 3a 53 54 41 26  37 30 3a 53 54 41 26 37  |A#0:STA&70:STA&7|
00000400  32 3a 53 54 41 26 37 34  3a 4c 44 41 23 26 34 30  |2:STA&74:LDA#&40|
00000410  3a 53 54 41 26 37 31 3a  4c 44 41 23 26 41 30 3a  |:STA&71:LDA#&A0:|
00000420  53 54 41 26 37 33 3a 4c  44 41 23 26 36 30 3a 53  |STA&73:LDA#&60:S|
00000430  54 41 26 37 35 3a 4a 53  52 6d 6f 76 65 6c 6f 6f  |TA&75:JSRmoveloo|
00000440  70 32 0d 00 46 aa 20 2e  62 61 6e 6b 32 65 6e 74  |p2..F. .bank2ent|
00000450  72 79 20 4a 53 52 62 61  6e 6b 32 3a 4c 44 41 23  |ry JSRbank2:LDA#|
00000460  28 65 6e 74 65 72 20 83  32 35 36 29 3a 53 54 41  |(enter .256):STA|
00000470  26 37 30 3a 4c 44 41 23  28 65 6e 74 65 72 20 81  |&70:LDA#(enter .|
00000480  32 35 36 29 3a 53 54 41  26 37 31 3a 4c 44 59 23  |256):STA&71:LDY#|
00000490  30 3a 4c 44 41 23 26 34  43 3a 53 54 41 28 26 37  |0:LDA#&4C:STA(&7|
000004a0  30 29 2c 59 3a 49 4e 59  3a 4c 44 41 23 28 42 32  |0),Y:INY:LDA#(B2|
000004b0  72 6f 75 74 69 6e 65 20  83 32 35 36 29 3a 53 54  |routine .256):ST|
000004c0  41 28 26 37 30 29 2c 59  3a 49 4e 59 3a 4c 44 41  |A(&70),Y:INY:LDA|
000004d0  23 28 42 32 72 6f 75 74  69 6e 65 20 81 32 35 36  |#(B2routine .256|
000004e0  29 3a 53 54 41 28 26 37  30 29 2c 59 0d 00 4b a5  |):STA(&70),Y..K.|
000004f0  20 2e 65 76 65 6e 74 65  6e 74 72 79 20 4c 44 41  | .evententry LDA|
00000500  23 28 65 6e 74 65 72 65  76 20 83 32 35 36 29 3a  |#(enterev .256):|
00000510  53 54 41 26 37 30 3a 4c  44 41 23 28 65 6e 74 65  |STA&70:LDA#(ente|
00000520  72 65 76 20 81 32 35 36  29 3a 53 54 41 26 37 31  |rev .256):STA&71|
00000530  3a 4c 44 59 23 30 3a 4c  44 41 23 26 34 43 3a 53  |:LDY#0:LDA#&4C:S|
00000540  54 41 28 26 37 30 29 2c  59 3a 49 4e 59 3a 4c 44  |TA(&70),Y:INY:LD|
00000550  41 23 28 65 76 72 6f 75  74 69 6e 65 20 83 32 35  |A#(evroutine .25|
00000560  36 29 3a 53 54 41 28 26  37 30 29 2c 59 3a 49 4e  |6):STA(&70),Y:IN|
00000570  59 3a 4c 44 41 23 28 65  76 72 6f 75 74 69 6e 65  |Y:LDA#(evroutine|
00000580  20 81 32 35 36 29 3a 53  54 41 28 26 37 30 29 2c  | .256):STA(&70),|
00000590  59 0d 00 50 b4 20 2e 62  61 6e 6b 32 6d 61 69 6e  |Y..P. .bank2main|
000005a0  20 4c 44 41 23 28 73 74  61 72 74 20 83 32 35 36  | LDA#(start .256|
000005b0  29 3a 53 54 41 26 37 30  3a 4c 44 41 23 28 73 74  |):STA&70:LDA#(st|
000005c0  61 72 74 20 81 32 35 36  29 3a 53 54 41 26 37 31  |art .256):STA&71|
000005d0  3a 4c 44 41 23 28 62 61  6e 6b 31 20 83 32 35 36  |:LDA#(bank1 .256|
000005e0  29 3a 53 54 41 26 37 34  3a 4c 44 41 23 28 62 61  |):STA&74:LDA#(ba|
000005f0  6e 6b 31 20 81 32 35 36  29 3a 53 54 41 26 37 35  |nk1 .256):STA&75|
00000600  3a 4c 44 41 23 28 42 32  72 6f 75 74 69 6e 65 20  |:LDA#(B2routine |
00000610  83 32 35 36 29 3a 53 54  41 26 37 32 3a 4c 44 41  |.256):STA&72:LDA|
00000620  23 28 42 32 72 6f 75 74  69 6e 65 20 81 32 35 36  |#(B2routine .256|
00000630  29 3a 53 54 41 26 37 33  3a 4a 53 52 6d 6f 76 65  |):STA&73:JSRmove|
00000640  6c 6f 6f 70 32 0d 00 5a  61 20 2e 41 44 46 53 64  |loop2..Za .ADFSd|
00000650  61 74 61 20 4c 44 41 23  30 3a 53 54 41 26 37 30  |ata LDA#0:STA&70|
00000660  3a 53 54 41 26 37 32 3a  53 54 41 26 37 34 3a 4c  |:STA&72:STA&74:L|
00000670  44 41 23 39 3a 53 54 41  26 37 31 3a 4c 44 41 23  |DA#9:STA&71:LDA#|
00000680  26 38 39 3a 53 54 41 26  37 33 3a 4c 44 41 23 26  |&89:STA&73:LDA#&|
00000690  31 44 3a 53 54 41 26 37  35 3a 4a 53 52 6d 6f 76  |1D:STA&75:JSRmov|
000006a0  65 6c 6f 6f 70 32 0d 00  64 d7 20 2e 62 31 72 65  |eloop2..d. .b1re|
000006b0  74 75 72 6e 20 4c 44 41  23 28 62 61 6e 6b 31 20  |turn LDA#(bank1 |
000006c0  83 32 35 36 29 3a 53 54  41 26 37 30 3a 4c 44 41  |.256):STA&70:LDA|
000006d0  23 28 62 61 6e 6b 31 20  81 32 35 36 29 3a 53 54  |#(bank1 .256):ST|
000006e0  41 26 37 31 3a 4c 44 41  23 28 42 41 43 4b 2d 28  |A&71:LDA#(BACK-(|
000006f0  6f 73 62 79 74 65 2d 62  61 6e 6b 31 2d 31 29 29  |osbyte-bank1-1))|
00000700  20 83 32 35 36 29 3a 53  54 41 26 37 32 3a 4c 44  | .256):STA&72:LD|
00000710  41 23 28 42 41 43 4b 2d  28 6f 73 62 79 74 65 2d  |A#(BACK-(osbyte-|
00000720  62 61 6e 6b 31 2d 31 29  29 20 81 32 35 36 29 3a  |bank1-1)) .256):|
00000730  53 54 41 26 37 33 3a 4c  44 41 23 28 28 6f 73 62  |STA&73:LDA#((osb|
00000740  79 74 65 2d 31 29 20 83  32 35 36 29 3a 53 54 41  |yte-1) .256):STA|
00000750  26 37 34 3a 4c 44 41 23  28 28 6f 73 62 79 74 65  |&74:LDA#((osbyte|
00000760  2d 31 29 20 81 32 35 36  29 3a 53 54 41 26 37 35  |-1) .256):STA&75|
00000770  3a 4a 53 52 6d 6f 76 65  6c 6f 6f 70 32 0d 00 6e  |:JSRmoveloop2..n|
00000780  c2 20 2e 62 31 6f 73 62  79 74 65 20 4a 53 52 62  |. .b1osbyte JSRb|
00000790  61 6e 6b 31 3a 4c 44 41  23 28 6f 73 62 79 74 65  |ank1:LDA#(osbyte|
000007a0  20 83 32 35 36 29 3a 53  54 41 26 37 30 3a 4c 44  | .256):STA&70:LD|
000007b0  41 23 28 6f 73 62 79 74  65 20 81 32 35 36 29 3a  |A#(osbyte .256):|
000007c0  53 54 41 26 37 31 3a 4c  44 41 23 28 4f 42 72 6f  |STA&71:LDA#(OBro|
000007d0  75 74 69 6e 65 20 83 32  35 36 29 3a 53 54 41 26  |utine .256):STA&|
000007e0  37 32 3a 4c 44 41 23 28  4f 42 72 6f 75 74 69 6e  |72:LDA#(OBroutin|
000007f0  65 20 81 32 35 36 29 3a  53 54 41 26 37 33 3a 4c  |e .256):STA&73:L|
00000800  44 41 23 28 6f 73 62 79  74 65 32 20 83 32 35 36  |DA#(osbyte2 .256|
00000810  29 3a 53 54 41 26 37 34  3a 4c 44 41 23 28 6f 73  |):STA&74:LDA#(os|
00000820  62 79 74 65 32 20 81 32  35 36 29 3a 53 54 41 26  |byte2 .256):STA&|
00000830  37 35 3a 4a 53 52 6d 6f  76 65 6c 6f 6f 70 32 0d  |75:JSRmoveloop2.|
00000840  00 70 b8 20 2e 62 31 6f  73 62 79 74 65 32 20 4c  |.p. .b1osbyte2 L|
00000850  44 41 23 28 6f 73 62 79  74 65 32 20 83 32 35 36  |DA#(osbyte2 .256|
00000860  29 3a 53 54 41 26 37 30  3a 4c 44 41 23 28 6f 73  |):STA&70:LDA#(os|
00000870  62 79 74 65 32 20 81 32  35 36 29 3a 53 54 41 26  |byte2 .256):STA&|
00000880  37 31 3a 4c 44 41 23 28  4f 42 72 6f 75 74 32 20  |71:LDA#(OBrout2 |
00000890  83 32 35 36 29 3a 53 54  41 26 37 32 3a 4c 44 41  |.256):STA&72:LDA|
000008a0  23 28 4f 42 72 6f 75 74  32 20 81 32 35 36 29 3a  |#(OBrout2 .256):|
000008b0  53 54 41 26 37 33 3a 4c  44 41 23 28 6f 73 62 79  |STA&73:LDA#(osby|
000008c0  74 65 33 20 83 32 35 36  29 3a 53 54 41 26 37 34  |te3 .256):STA&74|
000008d0  3a 4c 44 41 23 28 6f 73  62 79 74 65 33 20 81 32  |:LDA#(osbyte3 .2|
000008e0  35 36 29 3a 53 54 41 26  37 35 3a 4a 53 52 6d 6f  |56):STA&75:JSRmo|
000008f0  76 65 6c 6f 6f 70 32 0d  00 72 b2 20 2e 62 31 6f  |veloop2..r. .b1o|
00000900  73 62 79 74 65 33 20 4c  44 41 23 28 6f 73 62 79  |sbyte3 LDA#(osby|
00000910  74 65 33 20 83 32 35 36  29 3a 53 54 41 26 37 30  |te3 .256):STA&70|
00000920  3a 4c 44 41 23 28 6f 73  62 79 74 65 33 20 81 32  |:LDA#(osbyte3 .2|
00000930  35 36 29 3a 53 54 41 26  37 31 3a 4c 44 41 23 28  |56):STA&71:LDA#(|
00000940  4f 42 72 6f 75 74 33 20  83 32 35 36 29 3a 53 54  |OBrout3 .256):ST|
00000950  41 26 37 32 3a 4c 44 41  23 28 4f 42 72 6f 75 74  |A&72:LDA#(OBrout|
00000960  33 20 81 32 35 36 29 3a  53 54 41 26 37 33 3a 4c  |3 .256):STA&73:L|
00000970  44 41 23 28 66 69 6c 65  20 83 32 35 36 29 3a 53  |DA#(file .256):S|
00000980  54 41 26 37 34 3a 4c 44  41 23 28 66 69 6c 65 20  |TA&74:LDA#(file |
00000990  81 32 35 36 29 3a 53 54  41 26 37 35 3a 4a 53 52  |.256):STA&75:JSR|
000009a0  6d 6f 76 65 6c 6f 6f 70  32 0d 00 78 b5 20 2e 62  |moveloop2..x. .b|
000009b0  31 6f 73 66 69 6c 65 20  4c 44 41 23 28 66 69 6c  |1osfile LDA#(fil|
000009c0  65 20 83 32 35 36 29 3a  53 54 41 26 37 30 3a 4c  |e .256):STA&70:L|
000009d0  44 41 23 28 66 69 6c 65  20 81 32 35 36 29 3a 53  |DA#(file .256):S|
000009e0  54 41 26 37 31 3a 4c 44  41 23 28 4f 46 49 4c 45  |TA&71:LDA#(OFILE|
000009f0  20 83 32 35 36 29 3a 53  54 41 26 37 32 3a 4c 44  | .256):STA&72:LD|
00000a00  41 23 28 4f 46 49 4c 45  20 81 32 35 36 29 3a 53  |A#(OFILE .256):S|
00000a10  54 41 26 37 33 3a 4c 44  41 23 28 28 66 69 6c 65  |TA&73:LDA#((file|
00000a20  72 65 74 2d 31 29 20 83  32 35 36 29 3a 53 54 41  |ret-1) .256):STA|
00000a30  26 37 34 3a 4c 44 41 23  28 28 66 69 6c 65 72 65  |&74:LDA#((filere|
00000a40  74 2d 31 29 20 81 32 35  36 29 3a 53 54 41 26 37  |t-1) .256):STA&7|
00000a50  35 3a 4a 53 52 6d 6f 76  65 6c 6f 6f 70 32 0d 00  |5:JSRmoveloop2..|
00000a60  82 b0 20 2e 62 31 66 69  6c 65 72 65 74 20 4c 44  |.. .b1fileret LD|
00000a70  41 23 28 66 69 6c 65 72  65 74 20 83 32 35 36 29  |A#(fileret .256)|
00000a80  3a 53 54 41 26 37 30 3a  4c 44 41 23 28 66 69 6c  |:STA&70:LDA#(fil|
00000a90  65 72 65 74 20 81 32 35  36 29 3a 53 54 41 26 37  |eret .256):STA&7|
00000aa0  31 3a 4c 44 41 23 28 42  41 43 4b 20 83 32 35 36  |1:LDA#(BACK .256|
00000ab0  29 3a 53 54 41 26 37 32  3a 4c 44 41 23 28 42 41  |):STA&72:LDA#(BA|
00000ac0  43 4b 20 81 32 35 36 29  3a 53 54 41 26 37 33 3a  |CK .256):STA&73:|
00000ad0  4c 44 41 23 28 65 76 72  6f 75 74 20 83 32 35 36  |LDA#(evrout .256|
00000ae0  29 3a 53 54 41 26 37 34  3a 4c 44 41 23 28 65 76  |):STA&74:LDA#(ev|
00000af0  72 6f 75 74 20 81 32 35  36 29 3a 53 54 41 26 37  |rout .256):STA&7|
00000b00  35 3a 4a 53 52 6d 6f 76  65 6c 6f 6f 70 32 0d 00  |5:JSRmoveloop2..|
00000b10  87 ac 20 2e 62 31 65 76  65 6e 74 20 4c 44 41 23  |.. .b1event LDA#|
00000b20  28 65 76 72 6f 75 74 20  83 32 35 36 29 3a 53 54  |(evrout .256):ST|
00000b30  41 26 37 30 3a 4c 44 41  23 28 65 76 72 6f 75 74  |A&70:LDA#(evrout|
00000b40  20 81 32 35 36 29 3a 53  54 41 26 37 31 3a 4c 44  | .256):STA&71:LD|
00000b50  41 23 28 45 56 45 4e 54  20 83 32 35 36 29 3a 53  |A#(EVENT .256):S|
00000b60  54 41 26 37 32 3a 4c 44  41 23 28 45 56 45 4e 54  |TA&72:LDA#(EVENT|
00000b70  20 81 32 35 36 29 3a 53  54 41 26 37 33 3a 4c 44  | .256):STA&73:LD|
00000b80  41 23 28 65 76 65 6e 64  20 83 32 35 36 29 3a 53  |A#(evend .256):S|
00000b90  54 41 26 37 34 3a 4c 44  41 23 28 65 76 65 6e 64  |TA&74:LDA#(evend|
00000ba0  20 81 32 35 36 29 3a 53  54 41 26 37 35 3a 4a 53  | .256):STA&75:JS|
00000bb0  52 6d 6f 76 65 6c 6f 6f  70 32 0d 00 8c 6a 20 2e  |Rmoveloop2...j .|
00000bc0  70 61 67 65 20 4c 44 41  23 30 3a 53 54 41 26 37  |page LDA#0:STA&7|
00000bd0  30 3a 53 54 41 26 37 32  3a 4c 44 41 26 31 38 3a  |0:STA&72:LDA&18:|
00000be0  53 54 41 26 37 31 3a 4c  44 41 23 26 45 3a 53 54  |STA&71:LDA#&E:ST|
00000bf0  41 26 37 33 3a 53 54 41  26 31 38 3a 4c 44 41 26  |A&73:STA&18:LDA&|
00000c00  31 32 3a 53 54 41 26 37  34 3a 4c 44 41 26 31 33  |12:STA&74:LDA&13|
00000c10  3a 53 54 41 26 37 35 3a  4a 53 52 6d 6f 76 65 6c  |:STA&75:JSRmovel|
00000c20  6f 6f 70 32 0d 00 96 67  20 2e 6c 61 6e 67 52 4f  |oop2...g .langRO|
00000c30  4d 20 4c 44 41 62 61 6e  6b 31 2b 31 3a 53 54 41  |M LDAbank1+1:STA|
00000c40  26 32 38 43 3a 43 4c 43  3a 41 44 43 23 26 41 30  |&28C:CLC:ADC#&A0|
00000c50  3a 53 54 41 26 37 30 3a  4c 44 41 23 32 3a 53 54  |:STA&70:LDA#2:ST|
00000c60  41 26 37 31 3a 4c 44 59  23 30 3a 4c 44 41 23 26  |A&71:LDY#0:LDA#&|
00000c70  36 30 3a 53 54 41 28 26  37 30 29 2c 59 3a 4c 44  |60:STA(&70),Y:LD|
00000c80  41 23 30 3a 53 54 41 26  32 41 42 0d 00 a0 b3 20  |A#0:STA&2AB.... |
00000c90  2e 76 65 63 74 20 4c 44  41 26 32 30 41 3a 53 54  |.vect LDA&20A:ST|
00000ca0  41 4f 42 72 6f 75 74 32  2b 38 3a 4c 44 41 26 32  |AOBrout2+8:LDA&2|
00000cb0  30 42 3a 53 54 41 4f 42  72 6f 75 74 32 2b 39 3a  |0B:STAOBrout2+9:|
00000cc0  4a 53 52 62 61 6e 6b 32  3a 4c 44 41 26 32 30 41  |JSRbank2:LDA&20A|
00000cd0  3a 53 54 41 6f 73 62 79  74 65 4c 4f 3a 4c 44 41  |:STAosbyteLO:LDA|
00000ce0  26 32 30 42 3a 53 54 41  6f 73 62 79 74 65 48 49  |&20B:STAosbyteHI|
00000cf0  3a 4c 44 41 26 32 31 32  3a 53 54 41 6f 73 66 69  |:LDA&212:STAosfi|
00000d00  6c 65 4c 4f 3a 4c 44 41  26 32 31 33 3a 53 54 41  |leLO:LDA&213:STA|
00000d10  6f 73 66 69 6c 65 48 49  3a 4c 44 41 26 32 31 45  |osfileHI:LDA&21E|
00000d20  3a 53 54 41 6f 73 66 73  63 4c 4f 3a 4c 44 41 26  |:STAosfscLO:LDA&|
00000d30  32 31 46 3a 53 54 41 6f  73 66 73 63 48 49 0d 00  |21F:STAosfscHI..|
00000d40  a5 b2 20 4c 44 41 26 32  30 34 3a 53 54 41 69 6e  |.. LDA&204:STAin|
00000d50  74 65 72 4c 4f 3a 4c 44  41 26 32 30 35 3a 53 54  |terLO:LDA&205:ST|
00000d60  41 69 6e 74 65 72 48 49  3a 4c 44 41 26 32 32 30  |AinterHI:LDA&220|
00000d70  3a 53 54 41 65 76 65 6e  74 4c 4f 3a 4c 44 41 26  |:STAeventLO:LDA&|
00000d80  32 32 31 3a 53 54 41 65  76 65 6e 74 48 49 3a 4c  |221:STAeventHI:L|
00000d90  44 41 23 31 34 3a 4c 44  58 23 34 3a 4c 44 59 23  |DA#14:LDX#4:LDY#|
00000da0  30 3a 4a 53 52 4f 53 42  59 54 45 3a 4c 44 58 23  |0:JSROSBYTE:LDX#|
00000db0  32 3a 4c 44 59 23 30 3a  4a 53 52 4f 53 42 59 54  |2:LDY#0:JSROSBYT|
00000dc0  45 3a 53 45 49 3a 4a 53  52 76 65 63 74 6f 72 73  |E:SEI:JSRvectors|
00000dd0  3a 43 4c 49 3a 4a 53 52  62 61 6e 6b 31 3a 4c 44  |:CLI:JSRbank1:LD|
00000de0  41 23 30 3a 53 54 41 26  46 43 44 44 3a 52 54 53  |A#0:STA&FCDD:RTS|
00000df0  0d 00 aa 8d 20 2e 6d 6f  76 65 6c 6f 6f 70 32 20  |.... .moveloop2 |
00000e00  4c 44 59 23 30 3a 2e 6c  6f 6f 70 20 4c 44 41 28  |LDY#0:.loop LDA(|
00000e10  26 37 30 29 2c 59 3a 53  54 41 28 26 37 32 29 2c  |&70),Y:STA(&72),|
00000e20  59 3a 49 4e 43 26 37 30  3a 42 4e 45 61 3a 49 4e  |Y:INC&70:BNEa:IN|
00000e30  43 26 37 31 3a 2e 61 20  49 4e 43 26 37 32 3a 42  |C&71:.a INC&72:B|
00000e40  4e 45 62 3a 49 4e 43 26  37 33 3a 2e 62 20 4c 44  |NEb:INC&73:.b LD|
00000e50  41 26 37 30 3a 43 4d 50  26 37 34 3a 42 4e 45 6c  |A&70:CMP&74:BNEl|
00000e60  6f 6f 70 3a 4c 44 41 26  37 31 3a 43 4d 50 26 37  |oop:LDA&71:CMP&7|
00000e70  35 3a 42 4e 45 6c 6f 6f  70 3a 52 54 53 0d 00 b4  |5:BNEloop:RTS...|
00000e80  2d 20 5d 3a 4f 25 3d 50  25 3a 73 74 61 72 74 3d  |- ]:O%=P%:start=|
00000e90  4f 25 3a 50 25 3d 42 32  72 6f 75 74 69 6e 65 3a  |O%:P%=B2routine:|
00000ea0  5b 4f 50 54 70 61 73 73  2b 34 0d 00 be ae 20 4c  |[OPTpass+4.... L|
00000eb0  44 41 23 30 3a 41 44 43  23 30 3a 50 48 41 3a 53  |DA#0:ADC#0:PHA:S|
00000ec0  45 49 3a 4a 53 52 76 65  63 6e 6f 72 6d 3a 43 4c  |EI:JSRvecnorm:CL|
00000ed0  49 3a 4a 4d 50 63 6f 6e  74 3a 2e 76 65 63 6e 6f  |I:JMPcont:.vecno|
00000ee0  72 6d 20 4c 44 41 6f 73  66 73 63 4c 4f 3a 53 54  |rm LDAosfscLO:ST|
00000ef0  41 26 32 31 45 3a 4c 44  41 6f 73 66 73 63 48 49  |A&21E:LDAosfscHI|
00000f00  3a 53 54 41 26 32 31 46  3a 4c 44 41 6f 73 66 69  |:STA&21F:LDAosfi|
00000f10  6c 65 4c 4f 3a 53 54 41  26 32 31 32 3a 4c 44 41  |leLO:STA&212:LDA|
00000f20  6f 73 66 69 6c 65 48 49  3a 53 54 41 26 32 31 33  |osfileHI:STA&213|
00000f30  3a 4c 44 41 6f 73 62 79  74 65 4c 4f 3a 53 54 41  |:LDAosbyteLO:STA|
00000f40  26 32 30 41 3a 4c 44 41  6f 73 62 79 74 65 48 49  |&20A:LDAosbyteHI|
00000f50  3a 53 54 41 26 32 30 42  0d 00 c0 7c 20 4c 44 41  |:STA&20B...| LDA|
00000f60  65 76 65 6e 74 4c 4f 3a  53 54 41 26 32 32 30 3a  |eventLO:STA&220:|
00000f70  4c 44 41 65 76 65 6e 74  48 49 3a 53 54 41 26 32  |LDAeventHI:STA&2|
00000f80  32 31 3a 4c 44 41 26 32  30 34 3a 53 54 41 69 6e  |21:LDA&204:STAin|
00000f90  74 65 72 6e 65 77 4c 4f  3a 4c 44 41 26 32 30 35  |ternewLO:LDA&205|
00000fa0  3a 53 54 41 69 6e 74 65  72 6e 65 77 48 49 3a 4c  |:STAinternewHI:L|
00000fb0  44 41 69 6e 74 65 72 4c  4f 3a 53 54 41 26 32 30  |DAinterLO:STA&20|
00000fc0  34 3a 4c 44 41 69 6e 74  65 72 48 49 3a 53 54 41  |4:LDAinterHI:STA|
00000fd0  26 32 30 35 0d 00 c3 89  20 53 54 58 65 6e 64 61  |&205.... STXenda|
00000fe0  64 64 3a 4c 44 58 23 30  3a 2e 73 61 76 65 76 61  |dd:LDX#0:.saveva|
00000ff0  72 73 20 4c 44 41 26 37  30 2c 58 3a 53 54 41 74  |rs LDA&70,X:STAt|
00001000  65 6d 70 73 74 6f 72 65  2c 58 3a 49 4e 58 3a 43  |empstore,X:INX:C|
00001010  50 58 23 36 3a 42 4e 45  73 61 76 65 76 61 72 73  |PX#6:BNEsavevars|
00001020  3a 53 54 59 26 37 35 3a  4c 44 58 65 6e 64 61 64  |:STY&75:LDXendad|
00001030  64 3a 53 54 58 26 37 34  3a 52 54 53 3a 2e 63 6f  |d:STX&74:RTS:.co|
00001040  6e 74 20 50 4c 41 3a 42  45 51 66 69 6c 65 72 6f  |nt PLA:BEQfilero|
00001050  75 74 3a 4a 4d 50 66 73  63 72 6f 75 74 0d 00 c8  |ut:JMPfscrout...|
00001060  56 20 2e 66 69 6c 65 72  6f 75 74 20 4c 44 59 23  |V .filerout LDY#|
00001070  30 3a 4c 44 41 28 26 37  34 29 2c 59 3a 54 41 58  |0:LDA(&74),Y:TAX|
00001080  3a 49 4e 59 3a 4c 44 41  28 26 37 34 29 2c 59 3a  |:INY:LDA(&74),Y:|
00001090  53 54 58 26 37 30 3a 53  54 41 26 37 31 3a 44 45  |STX&70:STA&71:DE|
000010a0  59 3a 4a 53 52 66 69 6c  65 6e 61 6d 65 3a 4c 44  |Y:JSRfilename:LD|
000010b0  58 23 30 0d 00 d2 a9 20  2e 6c 6f 61 64 20 4c 44  |X#0.... .load LD|
000010c0  41 23 30 3a 53 54 41 26  37 30 3a 53 54 41 26 37  |A#0:STA&70:STA&7|
000010d0  32 3a 4c 44 41 23 39 3a  53 54 41 26 37 31 3a 4c  |2:LDA#9:STA&71:L|
000010e0  44 41 23 26 41 43 3a 53  54 41 26 37 33 3a 4c 44  |DA#&AC:STA&73:LD|
000010f0  41 23 26 31 44 3a 53 54  41 65 6e 64 61 64 64 3a  |A#&1D:STAendadd:|
00001100  4c 44 59 23 30 3a 4a 53  52 6d 6f 76 65 6c 6f 6f  |LDY#0:JSRmoveloo|
00001110  70 3a 4c 44 41 23 26 38  39 3a 53 54 41 26 37 31  |p:LDA#&89:STA&71|
00001120  3a 4c 44 41 23 39 3a 53  54 41 26 37 33 3a 4c 44  |:LDA#9:STA&73:LD|
00001130  41 23 26 39 44 3a 53 54  41 65 6e 64 61 64 64 3a  |A#&9D:STAendadd:|
00001140  4c 44 59 23 30 3a 4a 53  52 6d 6f 76 65 6c 6f 6f  |LDY#0:JSRmoveloo|
00001150  70 3a 4a 4d 50 6c 6f 61  64 61 64 64 0d 00 dc 63  |p:JMPloadadd...c|
00001160  20 2e 6d 6f 76 65 6c 6f  6f 70 20 4c 44 41 28 26  | .moveloop LDA(&|
00001170  37 30 29 2c 59 3a 53 54  41 28 26 37 32 29 2c 59  |70),Y:STA(&72),Y|
00001180  3a 49 4e 59 3a 42 4e 45  6d 6f 76 65 6c 6f 6f 70  |:INY:BNEmoveloop|
00001190  3a 49 4e 43 26 37 31 3a  49 4e 43 26 37 33 3a 4c  |:INC&71:INC&73:L|
000011a0  44 41 26 37 31 3a 43 4d  50 65 6e 64 61 64 64 3a  |DA&71:CMPendadd:|
000011b0  42 4e 45 6d 6f 76 65 6c  6f 6f 70 3a 52 54 53 0d  |BNEmoveloop:RTS.|
000011c0  00 e6 e3 20 2e 6c 6f 61  64 61 64 64 20 4c 44 41  |... .loadadd LDA|
000011d0  23 30 3a 53 54 41 26 41  30 30 3a 4c 44 41 23 26  |#0:STA&A00:LDA#&|
000011e0  42 3a 53 54 41 26 41 30  31 3a 53 54 58 65 6e 64  |B:STA&A01:STXend|
000011f0  61 64 64 3a 43 50 58 23  31 3a 42 45 51 66 69 6e  |add:CPX#1:BEQfin|
00001200  64 61 64 64 3a 4c 44 41  23 30 3a 53 54 41 26 37  |dadd:LDA#0:STA&7|
00001210  32 3a 4c 44 41 23 26 41  3a 53 54 41 26 37 33 3a  |2:LDA#&A:STA&73:|
00001220  4c 44 41 26 37 34 3a 53  54 41 26 37 30 3a 4c 44  |LDA&74:STA&70:LD|
00001230  41 23 33 3a 53 54 41 65  6e 64 61 64 64 3a 4c 44  |A#3:STAendadd:LD|
00001240  41 26 37 35 3a 4c 44 59  23 30 3a 2e 72 61 6d 20  |A&75:LDY#0:.ram |
00001250  43 4d 50 23 26 43 30 3a  42 4e 45 6e 6f 31 3a 4c  |CMP#&C0:BNEno1:L|
00001260  44 41 23 26 31 44 3a 4a  4d 50 73 74 3a 2e 6e 6f  |DA#&1D:JMPst:.no|
00001270  31 20 43 4d 50 23 26 31  44 3a 42 43 53 73 74 3a  |1 CMP#&1D:BCSst:|
00001280  43 4d 50 23 39 3a 42 43  43 73 74 3a 43 4c 43 3a  |CMP#9:BCCst:CLC:|
00001290  41 44 43 23 26 41 33 3a  2e 73 74 20 53 54 41 26  |ADC#&A3:.st STA&|
000012a0  37 31 0d 00 f0 5e 20 2e  74 72 20 4c 44 41 28 26  |71...^ .tr LDA(&|
000012b0  37 30 29 2c 59 3a 53 54  41 28 26 37 32 29 2c 59  |70),Y:STA(&72),Y|
000012c0  3a 49 4e 43 26 37 32 3a  4c 44 41 26 37 32 3a 43  |:INC&72:LDA&72:C|
000012d0  4d 50 23 26 31 32 3a 42  45 51 65 78 65 63 3a 49  |MP#&12:BEQexec:I|
000012e0  4e 43 26 37 30 3a 42 4e  45 74 72 3a 49 4e 43 26  |NC&70:BNEtr:INC&|
000012f0  37 31 3a 4c 44 41 26 37  31 3a 4a 4d 50 72 61 6d  |71:LDA&71:JMPram|
00001300  0d 00 fa 8a 20 2e 65 78  65 63 20 4c 44 41 23 30  |.... .exec LDA#0|
00001310  3a 53 54 41 26 41 30 30  3a 4c 44 41 23 26 42 3a  |:STA&A00:LDA#&B:|
00001320  53 54 41 26 41 30 31 3a  50 4c 41 3a 50 48 41 3a  |STA&A01:PLA:PHA:|
00001330  42 4e 45 6c 6f 61 64 65  72 3a 4a 4d 50 73 61 76  |BNEloader:JMPsav|
00001340  65 3a 2e 6c 6f 61 64 65  72 20 4c 44 41 26 41 30  |e:.loader LDA&A0|
00001350  36 3a 42 4e 45 66 69 6e  64 61 64 64 3a 4c 44 41  |6:BNEfindadd:LDA|
00001360  26 41 30 32 3a 53 54 41  26 37 30 3a 4c 44 41 26  |&A02:STA&70:LDA&|
00001370  41 30 33 3a 53 54 41 26  37 31 3a 4c 44 41 23 32  |A03:STA&71:LDA#2|
00001380  3a 53 54 41 65 6e 64 61  64 64 0d 01 04 d3 20 2e  |:STAendadd.... .|
00001390  66 69 6e 64 61 64 64 20  4c 44 41 23 35 3a 4c 44  |findadd LDA#5:LD|
000013a0  58 23 30 3a 4c 44 59 23  26 41 3a 4a 53 52 4f 53  |X#0:LDY#&A:JSROS|
000013b0  46 49 4c 45 3a 43 4d 50  23 31 3a 42 45 51 72 75  |FILE:CMP#1:BEQru|
000013c0  6e 3a 4a 4d 50 65 72 72  6f 72 31 3a 2e 72 75 6e  |n:JMPerror1:.run|
000013d0  20 4c 44 58 65 6e 64 61  64 64 3a 43 50 58 23 31  | LDXendadd:CPX#1|
000013e0  3a 42 4e 45 6c 61 64 64  72 3a 50 4c 41 3a 53 54  |:BNEladdr:PLA:ST|
000013f0  41 26 37 32 3a 50 4c 41  3a 53 54 41 26 37 33 3a  |A&72:PLA:STA&73:|
00001400  4c 44 58 26 41 30 36 3a  4c 44 59 26 41 30 37 3a  |LDX&A06:LDY&A07:|
00001410  44 45 58 3a 43 50 58 23  26 46 46 3a 42 4e 45 73  |DEX:CPX#&FF:BNEs|
00001420  74 61 63 6b 3a 44 45 59  3a 2e 73 74 61 63 6b 20  |tack:DEY:.stack |
00001430  54 59 41 3a 50 48 41 3a  54 58 41 3a 50 48 41 3a  |TYA:PHA:TXA:PHA:|
00001440  4c 44 41 26 37 33 3a 50  48 41 3a 4c 44 41 26 37  |LDA&73:PHA:LDA&7|
00001450  32 3a 50 48 41 3a 4a 4d  50 61 72 65 61 0d 01 0e  |2:PHA:JMParea...|
00001460  ac 20 2e 6c 61 64 64 72  20 43 50 58 23 32 3a 42  |. .laddr CPX#2:B|
00001470  4e 45 61 72 65 61 3a 4c  44 41 26 37 30 3a 53 54  |NEarea:LDA&70:ST|
00001480  41 26 41 30 32 3a 4c 44  41 26 37 31 3a 53 54 41  |A&A02:LDA&71:STA|
00001490  26 41 30 33 3a 4c 44 41  23 30 3a 53 54 41 26 41  |&A03:LDA#0:STA&A|
000014a0  30 36 3a 2e 61 72 65 61  20 4c 44 41 26 41 30 33  |06:.area LDA&A03|
000014b0  3a 43 4d 50 23 26 31 44  3a 42 43 53 6c 6f 61 64  |:CMP#&1D:BCSload|
000014c0  32 3a 43 4d 50 23 39 3a  42 43 53 62 79 74 65 6c  |2:CMP#9:BCSbytel|
000014d0  6f 61 64 3a 43 4c 43 3a  4c 44 41 26 41 30 32 3a  |oad:CLC:LDA&A02:|
000014e0  41 44 43 26 41 30 41 3a  4c 44 41 26 41 30 33 3a  |ADC&A0A:LDA&A03:|
000014f0  41 44 43 26 41 30 42 3a  43 4d 50 23 39 3a 42 43  |ADC&A0B:CMP#9:BC|
00001500  53 62 79 74 65 6c 6f 61  64 0d 01 18 31 20 2e 6c  |Sbyteload...1 .l|
00001510  6f 61 64 32 20 4c 44 41  23 26 46 46 3a 4c 44 58  |oad2 LDA#&FF:LDX|
00001520  23 30 3a 4c 44 59 23 26  41 3a 4a 53 52 4f 53 46  |#0:LDY#&A:JSROSF|
00001530  49 4c 45 3a 4a 4d 50 65  6e 64 0d 01 22 ed 20 2e  |ILE:JMPend..". .|
00001540  62 79 74 65 6c 6f 61 64  20 4c 44 41 23 26 34 30  |byteload LDA#&40|
00001550  3a 4c 44 58 23 30 3a 4c  44 59 23 26 42 3a 4a 53  |:LDX#0:LDY#&B:JS|
00001560  52 4f 53 46 49 4e 44 3a  54 41 59 3a 43 4d 50 23  |ROSFIND:TAY:CMP#|
00001570  30 3a 42 4e 45 6f 6b 3a  4a 4d 50 65 72 72 6f 72  |0:BNEok:JMPerror|
00001580  31 3a 2e 6f 6b 20 4c 44  41 26 41 30 32 3a 53 54  |1:.ok LDA&A02:ST|
00001590  41 26 37 30 3a 4c 44 41  26 41 30 33 3a 43 4d 50  |A&70:LDA&A03:CMP|
000015a0  23 39 3a 42 43 43 6e 6f  72 6d 3a 43 4c 43 3a 41  |#9:BCCnorm:CLC:A|
000015b0  44 43 23 26 41 33 3a 2e  6e 6f 72 6d 20 53 54 41  |DC#&A3:.norm STA|
000015c0  26 37 31 3a 2e 62 67 65  74 20 43 4c 43 3a 4a 53  |&71:.bget CLC:JS|
000015d0  52 4f 53 42 47 45 54 3a  42 43 53 65 6e 64 6c 6f  |ROSBGET:BCSendlo|
000015e0  61 64 3a 53 54 41 28 26  37 30 2c 58 29 3a 49 4e  |ad:STA(&70,X):IN|
000015f0  43 26 37 30 3a 42 4e 45  62 67 65 74 3a 49 4e 43  |C&70:BNEbget:INC|
00001600  26 37 31 3a 4c 44 41 26  37 31 3a 43 4d 50 23 26  |&71:LDA&71:CMP#&|
00001610  43 30 3a 42 45 51 73 75  62 3a 43 4d 50 23 39 3a  |C0:BEQsub:CMP#9:|
00001620  42 4e 45 62 67 65 74 0d  01 2c 57 20 4c 44 41 23  |BNEbget..,W LDA#|
00001630  26 41 43 3a 53 54 41 26  37 31 3a 42 4e 45 62 67  |&AC:STA&71:BNEbg|
00001640  65 74 3a 2e 73 75 62 20  4c 44 41 23 26 31 44 3a  |et:.sub LDA#&1D:|
00001650  53 54 41 26 37 31 3a 42  4e 45 62 67 65 74 3a 2e  |STA&71:BNEbget:.|
00001660  65 6e 64 6c 6f 61 64 20  4c 44 41 23 30 3a 4a 53  |endload LDA#0:JS|
00001670  52 4f 53 46 49 4e 44 3a  4a 4d 50 65 6e 64 0d 01  |ROSFIND:JMPend..|
00001680  2e 4f 20 2e 73 61 76 65  20 4c 44 41 26 41 30 42  |.O .save LDA&A0B|
00001690  3a 43 4d 50 23 26 31 44  3a 42 43 53 73 61 76 65  |:CMP#&1D:BCSsave|
000016a0  32 3a 43 4d 50 23 39 3a  42 43 53 62 79 74 65 73  |2:CMP#9:BCSbytes|
000016b0  61 76 65 3a 4c 44 41 26  41 30 46 3a 43 4d 50 23  |ave:LDA&A0F:CMP#|
000016c0  39 3a 42 43 53 62 79 74  65 73 61 76 65 0d 01 30  |9:BCSbytesave..0|
000016d0  2d 20 2e 73 61 76 65 32  20 4c 44 41 23 30 3a 54  |- .save2 LDA#0:T|
000016e0  41 58 3a 4c 44 59 23 26  41 3a 4a 53 52 4f 53 46  |AX:LDY#&A:JSROSF|
000016f0  49 4c 45 3a 4a 4d 50 65  6e 64 0d 01 32 c5 20 2e  |ILE:JMPend..2. .|
00001700  62 79 74 65 73 61 76 65  20 4c 44 41 26 41 30 46  |bytesave LDA&A0F|
00001710  3a 43 4d 50 23 26 31 44  3a 42 43 53 6f 70 65 6e  |:CMP#&1D:BCSopen|
00001720  6f 75 74 3a 43 4c 43 3a  41 44 43 23 26 41 33 3a  |out:CLC:ADC#&A3:|
00001730  53 54 41 26 41 30 46 3a  2e 6f 70 65 6e 6f 75 74  |STA&A0F:.openout|
00001740  20 4c 44 41 23 26 38 30  3a 4c 44 58 23 30 3a 4c  | LDA#&80:LDX#0:L|
00001750  44 59 23 26 42 3a 4a 53  52 4f 53 46 49 4e 44 3a  |DY#&B:JSROSFIND:|
00001760  54 41 59 3a 43 4d 50 23  30 3a 42 4e 45 6f 6b 53  |TAY:CMP#0:BNEokS|
00001770  3a 4a 4d 50 65 72 72 6f  72 31 3a 2e 6f 6b 53 20  |:JMPerror1:.okS |
00001780  4c 44 41 26 41 30 41 3a  53 54 41 26 37 30 3a 4c  |LDA&A0A:STA&70:L|
00001790  44 41 26 41 30 42 3a 43  4d 50 23 39 3a 42 43 43  |DA&A0B:CMP#9:BCC|
000017a0  6e 6f 72 6d 53 3a 43 4c  43 3a 41 44 43 23 26 41  |normS:CLC:ADC#&A|
000017b0  33 3a 2e 6e 6f 72 6d 53  20 53 54 41 26 37 31 0d  |3:.normS STA&71.|
000017c0  01 34 da 20 2e 62 70 75  74 20 4c 44 41 26 37 30  |.4. .bput LDA&70|
000017d0  3a 43 4d 50 26 41 30 45  3a 42 4e 45 73 61 3a 4c  |:CMP&A0E:BNEsa:L|
000017e0  44 41 26 37 31 3a 43 4d  50 26 41 30 46 3a 42 45  |DA&71:CMP&A0F:BE|
000017f0  51 65 6e 64 73 61 76 65  3a 2e 73 61 20 4c 44 41  |Qendsave:.sa LDA|
00001800  28 26 37 30 2c 58 29 3a  4a 53 52 4f 53 42 50 55  |(&70,X):JSROSBPU|
00001810  54 3a 49 4e 43 26 37 30  3a 42 4e 45 62 70 75 74  |T:INC&70:BNEbput|
00001820  3a 49 4e 43 26 37 31 3a  4c 44 41 26 37 31 3a 43  |:INC&71:LDA&71:C|
00001830  4d 50 23 26 43 30 3a 42  45 51 73 75 62 53 3a 43  |MP#&C0:BEQsubS:C|
00001840  4d 50 23 39 3a 42 4e 45  62 70 75 74 3a 4c 44 41  |MP#9:BNEbput:LDA|
00001850  23 26 41 43 3a 53 54 41  26 37 31 3a 42 4e 45 62  |#&AC:STA&71:BNEb|
00001860  70 75 74 3a 2e 73 75 62  53 20 4c 44 41 23 26 31  |put:.subS LDA#&1|
00001870  44 3a 53 54 41 26 37 31  3a 42 4e 45 62 70 75 74  |D:STA&71:BNEbput|
00001880  3a 2e 65 6e 64 73 61 76  65 20 4c 44 41 23 30 3a  |:.endsave LDA#0:|
00001890  4a 53 52 4f 53 46 49 4e  44 0d 01 35 4c 20 4c 44  |JSROSFIND..5L LD|
000018a0  41 23 31 3a 4c 44 58 23  30 3a 4c 44 59 23 26 41  |A#1:LDX#0:LDY#&A|
000018b0  3a 4a 53 52 4f 53 46 49  4c 45 3a 4c 44 41 23 33  |:JSROSFILE:LDA#3|
000018c0  3a 53 54 41 26 41 30 45  3a 4c 44 41 23 34 3a 4c  |:STA&A0E:LDA#4:L|
000018d0  44 58 23 30 3a 4c 44 59  23 26 41 3a 4a 53 52 4f  |DX#0:LDY#&A:JSRO|
000018e0  53 46 49 4c 45 0d 01 36  97 20 2e 65 6e 64 20 4c  |SFILE..6. .end L|
000018f0  44 41 23 30 3a 53 54 41  26 37 30 3a 53 54 41 26  |DA#0:STA&70:STA&|
00001900  37 32 3a 4c 44 41 23 39  3a 53 54 41 26 37 31 3a  |72:LDA#9:STA&71:|
00001910  4c 44 41 23 26 38 39 3a  53 54 41 26 37 33 3a 4c  |LDA#&89:STA&73:L|
00001920  44 41 23 26 31 44 3a 53  54 41 65 6e 64 61 64 64  |DA#&1D:STAendadd|
00001930  3a 4c 44 59 23 30 3a 4a  53 52 6d 6f 76 65 6c 6f  |:LDY#0:JSRmovelo|
00001940  6f 70 3a 4c 44 41 23 26  41 43 3a 53 54 41 26 37  |op:LDA#&AC:STA&7|
00001950  31 3a 4c 44 41 23 39 3a  53 54 41 26 37 33 3a 4c  |1:LDA#9:STA&73:L|
00001960  44 41 23 26 43 30 3a 53  54 41 65 6e 64 61 64 64  |DA#&C0:STAendadd|
00001970  3a 4a 53 52 6d 6f 76 65  6c 6f 6f 70 0d 01 3b 29  |:JSRmoveloop..;)|
00001980  20 4a 53 52 70 61 75 73  65 3a 2e 77 61 69 74 32  | JSRpause:.wait2|
00001990  20 4a 53 52 70 61 75 73  65 65 6e 64 3a 42 43 43  | JSRpauseend:BCC|
000019a0  77 61 69 74 32 0d 01 40  cd 20 2e 72 65 74 20 53  |wait2..@. .ret S|
000019b0  45 49 3a 4a 53 52 76 65  63 74 6f 72 73 32 3a 4a  |EI:JSRvectors2:J|
000019c0  53 52 76 61 72 73 3a 43  4c 49 3a 4a 4d 50 20 42  |SRvars:CLI:JMP B|
000019d0  41 43 4b 2d 28 6f 73 62  79 74 65 2d 62 61 6e 6b  |ACK-(osbyte-bank|
000019e0  31 2d 31 29 3a 5d 3a 76  65 63 74 6f 72 73 3d 4f  |1-1):]:vectors=O|
000019f0  25 3a 5b 4f 50 54 70 61  73 73 2b 34 3a 2e 76 65  |%:[OPTpass+4:.ve|
00001a00  63 74 6f 72 73 32 20 4c  44 41 23 28 4f 42 72 6f  |ctors2 LDA#(OBro|
00001a10  75 74 69 6e 65 20 83 32  35 36 29 3a 53 54 41 26  |utine .256):STA&|
00001a20  32 30 41 3a 4c 44 41 23  28 4f 42 72 6f 75 74 69  |20A:LDA#(OBrouti|
00001a30  6e 65 20 81 32 35 36 29  3a 53 54 41 26 32 30 42  |ne .256):STA&20B|
00001a40  3a 4c 44 41 23 28 4f 46  49 4c 45 20 83 32 35 36  |:LDA#(OFILE .256|
00001a50  29 3a 53 54 41 26 32 31  32 3a 4c 44 41 23 28 4f  |):STA&212:LDA#(O|
00001a60  46 49 4c 45 20 81 32 35  36 29 3a 53 54 41 26 32  |FILE .256):STA&2|
00001a70  31 33 0d 01 42 6a 20 4c  44 41 23 28 4f 46 53 43  |13..Bj LDA#(OFSC|
00001a80  20 83 32 35 36 29 3a 53  54 41 26 32 31 45 3a 4c  | .256):STA&21E:L|
00001a90  44 41 23 28 4f 46 53 43  20 81 32 35 36 29 3a 53  |DA#(OFSC .256):S|
00001aa0  54 41 26 32 31 46 3a 4c  44 41 23 28 45 56 45 4e  |TA&21F:LDA#(EVEN|
00001ab0  54 20 83 32 35 36 29 3a  53 54 41 26 32 32 30 3a  |T .256):STA&220:|
00001ac0  4c 44 41 23 28 45 56 45  4e 54 20 81 32 35 36 29  |LDA#(EVENT .256)|
00001ad0  3a 53 54 41 26 32 32 31  3a 52 54 53 0d 01 4a 6a  |:STA&221:RTS..Jj|
00001ae0  20 2e 76 61 72 73 20 4c  44 59 26 37 35 3a 4c 44  | .vars LDY&75:LD|
00001af0  58 26 37 34 3a 53 54 58  65 6e 64 61 64 64 3a 4c  |X&74:STXendadd:L|
00001b00  44 58 23 30 3a 2e 6c 6f  61 64 76 61 72 73 20 4c  |DX#0:.loadvars L|
00001b10  44 41 74 65 6d 70 73 74  6f 72 65 2c 58 3a 53 54  |DAtempstore,X:ST|
00001b20  41 26 37 30 2c 58 3a 49  4e 58 3a 43 50 58 23 36  |A&70,X:INX:CPX#6|
00001b30  3a 42 4e 45 6c 6f 61 64  76 61 72 73 3a 4c 44 58  |:BNEloadvars:LDX|
00001b40  65 6e 64 61 64 64 0d 01  4f 43 20 4c 44 41 69 6e  |endadd..OC LDAin|
00001b50  74 65 72 6e 65 77 4c 4f  3a 53 54 41 26 32 30 34  |ternewLO:STA&204|
00001b60  3a 4c 44 41 69 6e 74 65  72 6e 65 77 48 49 3a 53  |:LDAinternewHI:S|
00001b70  54 41 26 32 30 35 3a 4c  44 41 23 30 3a 53 54 41  |TA&205:LDA#0:STA|
00001b80  26 46 43 44 44 3a 52 54  53 0d 01 54 c1 20 2e 66  |&FCDD:RTS..T. .f|
00001b90  73 63 72 6f 75 74 20 50  4c 41 3a 50 48 41 3a 42  |scrout PLA:PHA:B|
00001ba0  45 51 72 65 74 3a 43 4d  50 23 34 3a 42 45 51 66  |EQret:CMP#4:BEQf|
00001bb0  73 63 3a 43 4d 50 23 32  3a 42 45 51 66 73 63 3a  |sc:CMP#2:BEQfsc:|
00001bc0  4a 53 52 6f 6c 64 4f 53  46 53 43 3a 4c 44 41 26  |JSRoldOSFSC:LDA&|
00001bd0  37 30 3a 53 54 41 26 31  30 44 35 3a 4c 44 41 26  |70:STA&10D5:LDA&|
00001be0  37 31 3a 53 54 41 26 44  43 43 3a 4c 44 41 26 37  |71:STA&DCC:LDA&7|
00001bf0  32 3a 53 54 41 26 44 43  44 3a 4c 44 41 26 37 33  |2:STA&DCD:LDA&73|
00001c00  3a 53 54 41 26 44 43 45  3a 4a 4d 50 72 65 74 3a  |:STA&DCE:JMPret:|
00001c10  2e 66 73 63 20 4c 44 41  26 37 34 3a 53 54 41 26  |.fsc LDA&74:STA&|
00001c20  37 30 3a 4c 44 41 26 37  35 3a 53 54 41 26 37 31  |70:LDA&75:STA&71|
00001c30  3a 4a 53 52 66 69 6c 65  6e 61 6d 65 3a 4c 44 58  |:JSRfilename:LDX|
00001c40  23 31 3a 4a 4d 50 6c 6f  61 64 0d 01 59 8e 20 2e  |#1:JMPload..Y. .|
00001c50  6f 6c 64 4f 53 46 53 43  20 4c 44 41 26 31 30 44  |oldOSFSC LDA&10D|
00001c60  35 3a 53 54 41 26 37 30  3a 4c 44 41 26 44 43 43  |5:STA&70:LDA&DCC|
00001c70  3a 53 54 41 26 37 31 3a  4c 44 41 26 44 43 44 3a  |:STA&71:LDA&DCD:|
00001c80  53 54 41 26 37 32 3a 4c  44 41 26 44 43 45 3a 53  |STA&72:LDA&DCE:S|
00001c90  54 41 26 37 33 3a 4c 44  41 23 26 36 30 3a 53 54  |TA&73:LDA#&60:ST|
00001ca0  41 26 44 43 43 3a 4c 44  41 23 26 39 45 3a 53 54  |A&DCC:LDA#&9E:ST|
00001cb0  41 26 44 43 44 3a 4c 44  41 23 34 3a 53 54 41 26  |A&DCD:LDA#4:STA&|
00001cc0  44 43 45 3a 50 4c 41 3a  50 48 41 3a 4a 4d 50 28  |DCE:PLA:PHA:JMP(|
00001cd0  6f 73 66 73 63 4c 4f 29  0d 01 5e cd 20 2e 66 69  |osfscLO)..^. .fi|
00001ce0  6c 65 6e 61 6d 65 20 4c  44 59 23 30 3a 4c 44 41  |lename LDY#0:LDA|
00001cf0  28 26 37 30 29 2c 59 3a  43 4d 50 23 26 44 3a 42  |(&70),Y:CMP#&D:B|
00001d00  45 51 6e 61 6d 65 3a 43  4d 50 23 26 32 30 3a 42  |EQname:CMP#&20:B|
00001d10  45 51 6e 61 6d 65 3a 4a  4d 50 6e 6f 74 7a 65 72  |EQname:JMPnotzer|
00001d20  6f 3a 2e 6e 61 6d 65 20  4c 44 41 6e 61 6d 65 4c  |o:.name LDAnameL|
00001d30  4f 3a 53 54 41 26 37 30  3a 53 54 41 26 37 32 3a  |O:STA&70:STA&72:|
00001d40  4c 44 41 6e 61 6d 65 48  49 3a 53 54 41 26 37 31  |LDAnameHI:STA&71|
00001d50  3a 53 54 41 26 37 33 3a  4c 44 41 28 26 37 30 29  |:STA&73:LDA(&70)|
00001d60  2c 59 3a 43 4d 50 23 30  3a 42 4e 45 6f 6b 32 3a  |,Y:CMP#0:BNEok2:|
00001d70  50 4c 41 3a 50 4c 41 3a  4a 4d 50 65 72 72 6f 72  |PLA:PLA:JMPerror|
00001d80  32 3a 2e 6f 6b 32 20 4c  44 41 28 26 37 32 29 2c  |2:.ok2 LDA(&72),|
00001d90  59 3a 49 4e 43 26 37 32  3a 42 4e 45 6e 6f 3a 49  |Y:INC&72:BNEno:I|
00001da0  4e 43 26 37 33 0d 01 68  e9 20 2e 6e 6f 20 43 4d  |NC&73..h. .no CM|
00001db0  50 23 26 44 3a 42 4e 45  6f 6b 32 3a 4c 44 41 26  |P#&D:BNEok2:LDA&|
00001dc0  37 32 3a 53 54 41 6e 61  6d 65 4c 4f 3a 4c 44 41  |72:STAnameLO:LDA|
00001dd0  26 37 33 3a 53 54 41 6e  61 6d 65 48 49 3a 2e 6e  |&73:STAnameHI:.n|
00001de0  6f 74 7a 65 72 6f 20 4c  44 41 23 30 3a 53 54 41  |otzero LDA#0:STA|
00001df0  26 37 32 3a 4c 44 41 23  26 38 42 3a 53 54 41 26  |&72:LDA#&8B:STA&|
00001e00  37 33 3a 2e 74 72 61 6e  73 6c 6f 6f 70 20 4c 44  |73:.transloop LD|
00001e10  41 28 26 37 30 29 2c 59  3a 53 54 41 28 26 37 32  |A(&70),Y:STA(&72|
00001e20  29 2c 59 3a 43 4d 50 23  26 44 3a 42 45 51 65 6e  |),Y:CMP#&D:BEQen|
00001e30  64 66 69 6c 65 3a 43 4d  50 23 26 32 30 3a 42 4e  |dfile:CMP#&20:BN|
00001e40  45 63 6f 6e 74 66 69 6c  65 3a 4c 44 41 23 26 44  |Econtfile:LDA#&D|
00001e50  3a 53 54 41 28 26 37 32  29 2c 59 3a 42 4e 45 65  |:STA(&72),Y:BNEe|
00001e60  6e 64 66 69 6c 65 3a 2e  63 6f 6e 74 66 69 6c 65  |ndfile:.contfile|
00001e70  20 49 4e 59 3a 4a 4d 50  74 72 61 6e 73 6c 6f 6f  | INY:JMPtransloo|
00001e80  70 3a 2e 65 6e 64 66 69  6c 65 20 52 54 53 0d 01  |p:.endfile RTS..|
00001e90  72 d1 20 2e 65 72 72 6f  72 31 20 4c 44 41 23 28  |r. .error1 LDA#(|
00001ea0  6e 6f 74 66 6f 75 6e 64  20 83 32 35 36 29 3a 53  |notfound .256):S|
00001eb0  54 41 26 37 30 3a 4c 44  41 23 28 6e 6f 74 66 6f  |TA&70:LDA#(notfo|
00001ec0  75 6e 64 20 81 32 35 36  29 3a 53 54 41 26 37 31  |und .256):STA&71|
00001ed0  3a 4a 4d 50 65 72 72 6f  72 3a 2e 65 72 72 6f 72  |:JMPerror:.error|
00001ee0  32 20 4c 44 41 23 28 6e  6f 6d 6f 72 65 20 83 32  |2 LDA#(nomore .2|
00001ef0  35 36 29 3a 53 54 41 26  37 30 3a 4c 44 41 23 28  |56):STA&70:LDA#(|
00001f00  6e 6f 6d 6f 72 65 20 81  32 35 36 29 3a 53 54 41  |nomore .256):STA|
00001f10  26 37 31 3a 2e 65 72 72  6f 72 20 4c 44 59 23 30  |&71:.error LDY#0|
00001f20  3a 2e 70 72 69 6e 74 6c  6f 6f 70 20 4c 44 41 28  |:.printloop LDA(|
00001f30  26 37 30 29 2c 59 3a 49  4e 59 3a 4a 53 52 4f 53  |&70),Y:INY:JSROS|
00001f40  41 53 43 49 3a 43 4d 50  23 26 44 3a 42 4e 45 70  |ASCI:CMP#&D:BNEp|
00001f50  72 69 6e 74 6c 6f 6f 70  3a 4a 4d 50 72 65 74 0d  |rintloop:JMPret.|
00001f60  01 74 b6 20 2e 65 76 72  6f 75 74 69 6e 65 20 4a  |.t. .evroutine J|
00001f70  53 52 76 65 63 6e 6f 72  6d 3a 4c 44 41 23 31 33  |SRvecnorm:LDA#13|
00001f80  3a 4c 44 58 23 34 3a 4c  44 59 23 30 3a 4a 53 52  |:LDX#4:LDY#0:JSR|
00001f90  4f 53 42 59 54 45 3a 4a  53 52 70 61 75 73 65 3a  |OSBYTE:JSRpause:|
00001fa0  2e 77 61 69 74 20 4a 53  52 63 68 65 61 74 3a 4a  |.wait JSRcheat:J|
00001fb0  53 52 73 6c 6f 77 3a 4a  53 52 70 61 75 73 65 65  |SRslow:JSRpausee|
00001fc0  6e 64 3a 42 43 43 77 61  69 74 3a 4c 44 41 23 31  |nd:BCCwait:LDA#1|
00001fd0  34 3a 4c 44 58 23 34 3a  4c 44 59 23 30 3a 4a 53  |4:LDX#4:LDY#0:JS|
00001fe0  52 4f 53 42 59 54 45 3a  4a 53 52 76 65 63 74 6f  |ROSBYTE:JSRvecto|
00001ff0  72 73 32 3a 4a 53 52 76  61 72 73 3a 4a 4d 50 20  |rs2:JSRvars:JMP |
00002000  42 41 43 4b 2d 28 6f 73  62 79 74 65 2d 62 61 6e  |BACK-(osbyte-ban|
00002010  6b 31 2d 31 29 0d 01 76  8e 20 2e 73 6c 6f 77 20  |k1-1)..v. .slow |
00002020  4c 44 41 23 26 38 31 3a  4c 44 58 23 28 a4 69 6e  |LDA#&81:LDX#(.in|
00002030  6b 65 79 28 53 6c 6f 77  4b 65 79 24 29 29 3a 4c  |key(SlowKey$)):L|
00002040  44 59 23 26 46 46 3a 4a  53 52 4f 53 42 59 54 45  |DY#&FF:JSROSBYTE|
00002050  3a 42 43 43 66 61 73 74  3a 4c 44 58 23 26 46 45  |:BCCfast:LDX#&FE|
00002060  3a 4c 44 59 23 26 46 46  3a 4a 53 52 4f 53 42 59  |:LDY#&FF:JSROSBY|
00002070  54 45 3a 42 43 43 66 61  73 74 3a 49 4e 43 64 65  |TE:BCCfast:INCde|
00002080  6c 61 79 3a 4c 44 58 64  65 6c 61 79 3a 43 50 58  |lay:LDXdelay:CPX|
00002090  23 31 3a 42 4e 45 66 61  73 74 3a 44 45 43 64 65  |#1:BNEfast:DECde|
000020a0  6c 61 79 0d 01 77 80 20  2e 66 61 73 74 20 4c 44  |lay..w. .fast LD|
000020b0  58 23 28 a4 69 6e 6b 65  79 28 46 61 73 74 4b 65  |X#(.inkey(FastKe|
000020c0  79 24 29 29 3a 4c 44 59  23 26 46 46 3a 4a 53 52  |y$)):LDY#&FF:JSR|
000020d0  4f 53 42 59 54 45 3a 42  43 43 64 65 6c 6c 6f 6f  |OSBYTE:BCCdelloo|
000020e0  70 3a 4c 44 58 23 26 46  45 3a 4c 44 59 23 26 46  |p:LDX#&FE:LDY#&F|
000020f0  46 3a 4a 53 52 4f 53 42  59 54 45 3a 42 43 43 64  |F:JSROSBYTE:BCCd|
00002100  65 6c 6c 6f 6f 70 3a 44  45 43 64 65 6c 61 79 3a  |elloop:DECdelay:|
00002110  42 4e 45 64 65 6c 6c 6f  6f 70 3a 49 4e 43 64 65  |BNEdelloop:INCde|
00002120  6c 61 79 0d 01 78 6a 20  2e 64 65 6c 6c 6f 6f 70  |lay..xj .delloop|
00002130  20 4c 44 41 64 65 6c 61  79 3a 53 54 41 26 37 30  | LDAdelay:STA&70|
00002140  3a 2e 64 65 6c 31 20 44  45 43 26 37 30 3a 42 45  |:.del1 DEC&70:BE|
00002150  51 64 65 6c 65 6e 64 3a  4c 44 41 23 30 3a 53 54  |Qdelend:LDA#0:ST|
00002160  41 26 37 31 3a 2e 64 65  6c 32 20 44 45 43 26 37  |A&71:.del2 DEC&7|
00002170  31 3a 42 4e 45 64 65 6c  32 3a 4a 4d 50 64 65 6c  |1:BNEdel2:JMPdel|
00002180  31 3a 2e 64 65 6c 65 6e  64 20 52 54 53 0d 01 79  |1:.delend RTS..y|
00002190  ec 2e 63 68 65 61 74 20  4c 44 41 63 68 66 6c 61  |..cheat LDAchfla|
000021a0  67 3a 42 45 51 63 68 65  6e 64 3a 4c 44 41 23 26  |g:BEQchend:LDA#&|
000021b0  38 31 3a 4c 44 58 23 28  a4 69 6e 6b 65 79 28 43  |81:LDX#(.inkey(C|
000021c0  68 4b 65 79 24 29 29 3a  4c 44 59 23 26 46 46 3a  |hKey$)):LDY#&FF:|
000021d0  4a 53 52 4f 53 42 59 54  45 3a 42 43 43 63 68 3a  |JSROSBYTE:BCCch:|
000021e0  4c 44 41 23 26 38 31 3a  4c 44 58 23 26 46 45 3a  |LDA#&81:LDX#&FE:|
000021f0  4c 44 59 23 26 46 46 3a  4a 53 52 4f 53 42 59 54  |LDY#&FF:JSROSBYT|
00002200  45 3a 42 43 53 63 68 65  6e 64 3a 2e 63 68 20 4c  |E:BCSchend:.ch L|
00002210  44 41 23 30 3a 53 54 41  26 42 45 32 3a 53 54 41  |DA#0:STA&BE2:STA|
00002220  26 42 45 34 3a 53 54 41  26 42 45 31 3a 53 54 41  |&BE4:STA&BE1:STA|
00002230  26 42 45 33 3a 53 54 41  26 42 45 30 3a 53 54 41  |&BE3:STA&BE0:STA|
00002240  26 42 38 30 3a 4c 44 41  23 31 3a 53 54 41 26 42  |&B80:LDA#1:STA&B|
00002250  38 31 3a 52 54 53 3a 2e  63 68 65 6e 64 20 4c 44  |81:RTS:.chend LD|
00002260  41 23 30 3a 53 54 41 26  42 38 31 3a 53 54 41 63  |A#0:STA&B81:STAc|
00002270  68 66 6c 61 67 3a 52 54  53 0d 01 7a a4 20 2e 70  |hflag:RTS..z. .p|
00002280  61 75 73 65 20 4c 44 41  23 26 38 31 3a 4c 44 58  |ause LDA#&81:LDX|
00002290  23 28 a4 69 6e 6b 65 79  28 50 61 75 73 65 4b 65  |#(.inkey(PauseKe|
000022a0  79 24 29 29 3a 4c 44 59  23 26 46 46 3a 4a 53 52  |y$)):LDY#&FF:JSR|
000022b0  4f 53 42 59 54 45 3a 4c  44 41 23 30 3a 42 43 43  |OSBYTE:LDA#0:BCC|
000022c0  70 61 75 73 65 72 65 74  3a 4c 44 41 23 26 38 31  |pauseret:LDA#&81|
000022d0  3a 4c 44 58 23 26 46 45  3a 4c 44 59 23 26 46 46  |:LDX#&FE:LDY#&FF|
000022e0  3a 4a 53 52 4f 53 42 59  54 45 3a 4c 44 41 23 30  |:JSROSBYTE:LDA#0|
000022f0  3a 42 43 43 70 61 75 73  65 72 65 74 3a 4c 44 41  |:BCCpauseret:LDA|
00002300  23 31 3a 2e 70 61 75 73  65 72 65 74 20 53 54 41  |#1:.pauseret STA|
00002310  70 61 75 73 65 66 6c 61  67 3a 52 54 53 0d 01 7b  |pauseflag:RTS..{|
00002320  af 20 2e 70 61 75 73 65  65 6e 64 20 4c 44 41 70  |. .pauseend LDAp|
00002330  61 75 73 65 66 6c 61 67  3a 42 45 51 75 6e 70 61  |auseflag:BEQunpa|
00002340  75 73 65 3a 4c 44 41 23  26 38 31 3a 4c 44 58 23  |use:LDA#&81:LDX#|
00002350  28 a4 69 6e 6b 65 79 28  43 6f 6e 74 4b 65 79 24  |(.inkey(ContKey$|
00002360  29 29 3a 4c 44 59 23 26  46 46 3a 4a 53 52 4f 53  |)):LDY#&FF:JSROS|
00002370  42 59 54 45 3a 42 43 43  73 74 61 79 70 61 75 73  |BYTE:BCCstaypaus|
00002380  65 3a 4c 44 41 23 26 38  31 3a 4c 44 58 23 26 46  |e:LDA#&81:LDX#&F|
00002390  45 3a 4c 44 59 23 26 46  46 3a 4a 53 52 4f 53 42  |E:LDY#&FF:JSROSB|
000023a0  59 54 45 3a 42 43 43 73  74 61 79 70 61 75 73 65  |YTE:BCCstaypause|
000023b0  3a 2e 75 6e 70 61 75 73  65 20 53 45 43 3a 2e 73  |:.unpause SEC:.s|
000023c0  74 61 79 70 61 75 73 65  20 52 54 53 0d 01 7c e6  |taypause RTS..|.|
000023d0  20 2e 6e 6f 74 66 6f 75  6e 64 20 45 51 55 53 22  | .notfound EQUS"|
000023e0  4e 6f 74 20 66 6f 75 6e  64 22 3a 45 51 55 42 31  |Not found":EQUB1|
000023f0  33 3a 2e 6e 6f 6d 6f 72  65 20 45 51 55 53 22 4e  |3:.nomore EQUS"N|
00002400  6f 20 6d 6f 72 65 20 66  69 6c 65 6e 61 6d 65 73  |o more filenames|
00002410  22 3a 45 51 55 42 31 33  3a 2e 6e 61 6d 65 4c 4f  |":EQUB13:.nameLO|
00002420  20 45 51 55 42 6e 61 6d  65 73 20 83 32 35 36 3a  | EQUBnames .256:|
00002430  2e 6e 61 6d 65 48 49 20  45 51 55 42 6e 61 6d 65  |.nameHI EQUBname|
00002440  73 20 81 32 35 36 3a 2e  65 6e 64 61 64 64 20 45  |s .256:.endadd E|
00002450  51 55 42 30 3a 2e 6f 73  66 69 6c 65 4c 4f 20 45  |QUB0:.osfileLO E|
00002460  51 55 42 30 3a 2e 6f 73  66 69 6c 65 48 49 20 45  |QUB0:.osfileHI E|
00002470  51 55 42 30 3a 2e 6f 73  66 73 63 4c 4f 20 45 51  |QUB0:.osfscLO EQ|
00002480  55 42 30 3a 2e 6f 73 66  73 63 48 49 20 45 51 55  |UB0:.osfscHI EQU|
00002490  42 30 3a 2e 6f 73 62 79  74 65 4c 4f 20 45 51 55  |B0:.osbyteLO EQU|
000024a0  42 30 3a 2e 6f 73 62 79  74 65 48 49 20 45 51 55  |B0:.osbyteHI EQU|
000024b0  42 30 0d 01 7e 72 20 2e  65 76 65 6e 74 4c 4f 20  |B0..~r .eventLO |
000024c0  45 51 55 42 30 3a 2e 65  76 65 6e 74 48 49 20 45  |EQUB0:.eventHI E|
000024d0  51 55 42 30 3a 2e 69 6e  74 65 72 4c 4f 20 45 51  |QUB0:.interLO EQ|
000024e0  55 42 30 3a 2e 69 6e 74  65 72 48 49 20 45 51 55  |UB0:.interHI EQU|
000024f0  42 30 3a 2e 69 6e 74 65  72 6e 65 77 4c 4f 20 45  |B0:.internewLO E|
00002500  51 55 42 30 3a 2e 69 6e  74 65 72 6e 65 77 48 49  |QUB0:.internewHI|
00002510  20 45 51 55 42 30 3a 2e  63 68 66 6c 61 67 20 45  | EQUB0:.chflag E|
00002520  51 55 42 31 0d 01 81 71  20 2e 74 65 6d 70 73 74  |QUB1...q .tempst|
00002530  6f 72 65 20 45 51 55 44  30 3a 45 51 55 57 30 3a  |ore EQUD0:EQUW0:|
00002540  2e 70 61 75 73 65 66 6c  61 67 20 45 51 55 42 30  |.pauseflag EQUB0|
00002550  3a 2e 64 65 6c 61 79 20  45 51 55 42 31 3a 2e 6e  |:.delay EQUB1:.n|
00002560  61 6d 65 73 3a 5d 3a 24  4f 25 3d 66 69 6c 65 6e  |ames:]:$O%=filen|
00002570  61 6d 65 73 24 3a 4f 25  3d 4f 25 2b a9 28 66 69  |ames$:O%=O%+.(fi|
00002580  6c 65 6e 61 6d 65 73 24  29 2b 31 3a 3f 28 4f 25  |lenames$)+1:?(O%|
00002590  2d 31 29 3d 30 0d 01 86  ca 20 62 61 6e 6b 31 3d  |-1)=0.... bank1=|
000025a0  4f 25 3a 5b 4f 50 54 70  61 73 73 2b 34 3a 4c 44  |O%:[OPTpass+4:LD|
000025b0  41 23 30 3a 53 54 41 26  46 34 3a 53 54 41 26 46  |A#0:STA&F4:STA&F|
000025c0  45 30 35 3a 5d 3a 50 25  3d 4f 25 3a 5b 4f 50 54  |E05:]:P%=O%:[OPT|
000025d0  70 61 73 73 2b 34 3a 52  54 53 3a 5d 3a 6f 73 62  |pass+4:RTS:]:osb|
000025e0  79 74 65 3d 4f 25 3a 50  25 3d 4f 42 72 6f 75 74  |yte=O%:P%=OBrout|
000025f0  69 6e 65 3a 5b 4f 50 54  70 61 73 73 2b 34 3a 43  |ine:[OPTpass+4:C|
00002600  4d 50 23 31 34 30 3a 42  45 51 74 61 70 65 3a 50  |MP#140:BEQtape:P|
00002610  48 41 3a 4c 44 41 4f 42  72 6f 75 74 32 2b 38 3a  |HA:LDAOBrout2+8:|
00002620  53 54 41 26 32 30 41 3a  4a 4d 50 4f 42 72 6f 75  |STA&20A:JMPOBrou|
00002630  74 32 3a 2e 74 61 70 65  20 52 54 53 3a 5d 3a 6f  |t2:.tape RTS:]:o|
00002640  73 62 79 74 65 32 3d 4f  25 3a 50 25 3d 4f 42 72  |sbyte2=O%:P%=OBr|
00002650  6f 75 74 32 3a 5b 4f 50  54 70 61 73 73 2b 34 0d  |out2:[OPTpass+4.|
00002660  01 8b 9c 20 4c 44 41 4f  42 72 6f 75 74 32 2b 39  |... LDAOBrout2+9|
00002670  3a 53 54 41 26 32 30 42  3a 50 4c 41 3a 4a 53 52  |:STA&20B:PLA:JSR|
00002680  26 30 30 30 30 3a 4a 4d  50 4f 42 72 6f 75 74 33  |&0000:JMPOBrout3|
00002690  3a 5d 3a 6f 73 62 79 74  65 33 3d 4f 25 3a 50 25  |:]:osbyte3=O%:P%|
000026a0  3d 4f 42 72 6f 75 74 33  3a 5b 4f 50 54 70 61 73  |=OBrout3:[OPTpas|
000026b0  73 2b 34 3a 50 48 41 3a  4c 44 41 23 28 4f 42 72  |s+4:PHA:LDA#(OBr|
000026c0  6f 75 74 69 6e 65 20 83  32 35 36 29 3a 53 54 41  |outine .256):STA|
000026d0  26 32 30 41 3a 4c 44 41  23 28 4f 42 72 6f 75 74  |&20A:LDA#(OBrout|
000026e0  69 6e 65 20 81 32 35 36  29 3a 53 54 41 26 32 30  |ine .256):STA&20|
000026f0  42 3a 50 4c 41 3a 52 54  53 3a 5d 0d 01 90 b8 20  |B:PLA:RTS:].... |
00002700  66 69 6c 65 3d 4f 25 3a  50 25 3d 4f 46 49 4c 45  |file=O%:P%=OFILE|
00002710  3a 5b 4f 50 54 70 61 73  73 2b 34 3a 43 4c 43 3a  |:[OPTpass+4:CLC:|
00002720  42 43 43 6f 66 3a 2e 4f  46 53 43 20 53 45 43 3a  |BCCof:.OFSC SEC:|
00002730  2e 6f 66 20 50 48 50 3a  50 48 41 3a 5d 3a 62 61  |.of PHP:PHA:]:ba|
00002740  6e 6b 32 3d 4f 25 3a 5b  4f 50 54 70 61 73 73 2b  |nk2=O%:[OPTpass+|
00002750  34 3a 4c 44 41 23 30 3a  53 54 41 26 46 34 3a 53  |4:LDA#0:STA&F4:S|
00002760  54 41 26 46 45 30 35 3a  2e 65 6e 74 65 72 3a 5d  |TA&FE05:.enter:]|
00002770  3a 50 25 3d 4f 25 3a 5b  4f 50 54 70 61 73 73 2b  |:P%=O%:[OPTpass+|
00002780  34 3a 52 54 53 3a 5d 3a  66 69 6c 65 72 65 74 3d  |4:RTS:]:fileret=|
00002790  4f 25 3a 50 25 3d 42 41  43 4b 3a 5b 4f 50 54 70  |O%:P%=BACK:[OPTp|
000027a0  61 73 73 2b 34 3a 50 4c  41 3a 50 4c 50 3a 52 54  |ass+4:PLA:PLP:RT|
000027b0  53 3a 5d 0d 01 95 54 20  65 76 72 6f 75 74 3d 4f  |S:]...T evrout=O|
000027c0  25 3a 50 25 3d 45 56 45  4e 54 3a 5b 4f 50 54 70  |%:P%=EVENT:[OPTp|
000027d0  61 73 73 2b 34 3a 50 48  50 3a 50 48 41 3a 4c 44  |ass+4:PHP:PHA:LD|
000027e0  41 23 30 3a 53 54 41 26  46 34 3a 53 54 41 26 46  |A#0:STA&F4:STA&F|
000027f0  45 30 35 3a 2e 65 6e 74  65 72 65 76 3a 5d 3a 65  |E05:.enterev:]:e|
00002800  76 65 6e 64 3d 4f 25 0d  01 9a 06 20 ed 0d 01 a4  |vend=O%.... ....|
00002810  3b 20 f1 22 53 61 76 65  20 28 59 2f 4e 29 3f 22  |; ."Save (Y/N)?"|
00002820  3a 41 24 3d be 3a e7 20  41 24 3d 22 59 22 20 8c  |:A$=.:. A$="Y" .|
00002830  20 ff 22 53 41 56 45 20  44 4c 53 34 20 32 30 30  | ."SAVE DLS4 200|
00002840  30 20 22 2b c3 7e 4f 25  0d 01 a9 06 20 e0 0d 01  |0 "+.~O%.... ...|
00002850  ae 12 20 dd a4 69 6e 6b  65 79 28 4b 65 79 24 29  |.. ..inkey(Key$)|
00002860  0d 01 b3 06 20 f7 0d 01  b8 1b 20 e3 6c 65 74 74  |.... ..... .lett|
00002870  65 72 3d 31 20 b8 20 97  28 4b 65 79 24 29 2d 36  |er=1 . .(Key$)-6|
00002880  34 0d 01 c2 0c 20 f3 20  76 61 6c 75 65 0d 01 cc  |4.... . value...|
00002890  0d 20 ed 20 6c 65 74 74  65 72 0d 01 d6 0f 20 3d  |. . letter.... =|
000028a0  76 61 6c 75 65 2b 32 35  36 0d 01 e0 71 20 dc 20  |value+256...q . |
000028b0  2d 36 36 2c 2d 31 30 31  2c 2d 38 33 2c 2d 35 31  |-66,-101,-83,-51|
000028c0  2c 2d 33 35 2c 2d 36 38  2c 2d 38 34 2c 2d 38 35  |,-35,-68,-84,-85|
000028d0  2c 2d 33 38 2c 2d 37 30  2c 2d 37 31 2c 2d 38 37  |,-38,-70,-71,-87|
000028e0  2c 2d 31 30 32 2c 2d 38  36 2c 2d 35 35 2c 2d 35  |,-102,-86,-55,-5|
000028f0  36 2c 2d 31 37 2c 2d 35  32 2c 2d 38 32 2c 2d 33  |6,-17,-52,-82,-3|
00002900  36 2c 2d 35 34 2c 2d 31  30 30 2c 2d 33 34 2c 2d  |6,-54,-100,-34,-|
00002910  36 37 2c 2d 36 39 2c 2d  39 38 0d ff              |67,-69,-98..|
0000291c
Rep2Cheat.m0
Rep2Cheat.m1
Rep2Cheat.m2
Rep2Cheat.m4
Rep2Cheat.m5