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

DLoadSave3

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn ADFS disks » Electron » Electron_disk_loader_A.ADF
Filename: DLoadSave3
Read OK:
File size: 28AD bytes
Load address: FFFF1D00
Exec address: FFFF8023
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
    1 REM    TAPE -> ADFS  Loader/Saver                   by M. FORD , 1994                                                          (with event-driven pause                 and slow/fast routines)        Filename: DLoadSave3
    2 filenames$="CRAZEE"+CHR$13+"CRAZEER"+CHR$13
    3 PauseKey$="P":ContKey$="O":SlowKey$="S":FastKey$="W"
    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 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
  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:.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 DLS 2000 "+STR$~O%
  425 END
  430 DEFFNinkey(Key$)
  435 RESTORE
  440 FORletter=1 TO ASC(Key$)-64
  450 READ value
  460 NEXT letter
  470 =value+256
  480 DATA -66,-101,-83,-51,-35,-68,-84,-85,-38,-70,-71,-87,-102,-86,-55,-56,-17,-52,-82,-36,-54,-100,-34,-67,-69,-98
� �    TAPE -> ADFS  Loader/Saver                   by M. FORD , 1994                                                          (with event-driven pause                 and slow/fast routines)        Filename: DLoadSave3
* filenames$="CRAZEE"+�13+"CRAZEER"+�13
9 PauseKey$="P":ContKey$="O":SlowKey$="S":FastKey$="W"
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 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
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
�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 DLS 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 de 20 f4 20 20  20 20 54 41 50 45 20 2d  |.... .    TAPE -|
00000010  3e 20 41 44 46 53 20 20  4c 6f 61 64 65 72 2f 53  |> ADFS  Loader/S|
00000020  61 76 65 72 20 20 20 20  20 20 20 20 20 20 20 20  |aver            |
00000030  20 20 20 20 20 20 20 62  79 20 4d 2e 20 46 4f 52  |       by M. FOR|
00000040  44 20 2c 20 31 39 39 34  20 20 20 20 20 20 20 20  |D , 1994        |
00000050  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000080  20 20 28 77 69 74 68 20  65 76 65 6e 74 2d 64 72  |  (with event-dr|
00000090  69 76 65 6e 20 70 61 75  73 65 20 20 20 20 20 20  |iven pause      |
000000a0  20 20 20 20 20 20 20 20  20 20 20 61 6e 64 20 73  |           and s|
000000b0  6c 6f 77 2f 66 61 73 74  20 72 6f 75 74 69 6e 65  |low/fast routine|
000000c0  73 29 20 20 20 20 20 20  20 20 46 69 6c 65 6e 61  |s)        Filena|
000000d0  6d 65 3a 20 44 4c 6f 61  64 53 61 76 65 33 0d 00  |me: DLoadSave3..|
000000e0  02 2a 20 66 69 6c 65 6e  61 6d 65 73 24 3d 22 43  |.* filenames$="C|
000000f0  52 41 5a 45 45 22 2b bd  31 33 2b 22 43 52 41 5a  |RAZEE"+.13+"CRAZ|
00000100  45 45 52 22 2b bd 31 33  0d 00 03 39 20 50 61 75  |EER"+.13...9 Pau|
00000110  73 65 4b 65 79 24 3d 22  50 22 3a 43 6f 6e 74 4b  |seKey$="P":ContK|
00000120  65 79 24 3d 22 4f 22 3a  53 6c 6f 77 4b 65 79 24  |ey$="O":SlowKey$|
00000130  3d 22 53 22 3a 46 61 73  74 4b 65 79 24 3d 22 57  |="S":FastKey$="W|
00000140  22 0d 00 05 63 20 4f 46  49 4c 45 3d 26 41 41 33  |"...c OFILE=&AA3|
00000150  41 3a 42 41 43 4b 3d 26  38 36 39 38 3a 4f 42 72  |A:BACK=&8698:OBr|
00000160  6f 75 74 69 6e 65 3d 26  39 43 30 35 3a 4f 42 72  |outine=&9C05:OBr|
00000170  6f 75 74 32 3d 26 38 43  31 30 3a 4f 42 72 6f 75  |out2=&8C10:OBrou|
00000180  74 33 3d 26 39 39 41 39  3a 42 32 72 6f 75 74 69  |t3=&99A9:B2routi|
00000190  6e 65 3d 26 41 30 30 30  3a 45 56 45 4e 54 3d 26  |ne=&A000:EVENT=&|
000001a0  41 41 41 45 0d 00 06 5f  20 4f 53 42 59 54 45 3d  |AAAE..._ OSBYTE=|
000001b0  26 46 46 46 34 3a 4f 53  57 4f 52 44 3d 26 46 46  |&FFF4:OSWORD=&FF|
000001c0  46 31 3a 4f 53 46 49 4c  45 3d 26 46 46 44 44 3a  |F1:OSFILE=&FFDD:|
000001d0  4f 53 42 47 45 54 3d 26  46 46 44 37 3a 4f 53 42  |OSBGET=&FFD7:OSB|
000001e0  50 55 54 3d 26 46 46 44  34 3a 4f 53 46 49 4e 44  |PUT=&FFD4:OSFIND|
000001f0  3d 26 46 46 43 45 3a 4f  53 41 53 43 49 3d 26 46  |=&FFCE:OSASCI=&F|
00000200  46 45 33 0d 00 0a 26 20  e3 70 61 73 73 3d 30 20  |FE3...& .pass=0 |
00000210  b8 20 32 20 88 20 32 3a  50 25 3d 26 32 30 30 30  |. 2 . 2:P%=&2000|
00000220  3a 5b 4f 50 54 70 61 73  73 0d 00 14 66 20 4c 44  |:[OPTpass...f LD|
00000230  41 23 30 3a 53 54 41 26  46 43 44 43 3a 53 54 41  |A#0:STA&FCDC:STA|
00000240  26 46 43 44 45 3a 4c 44  41 23 31 35 3a 53 54 41  |&FCDE:LDA#15:STA|
00000250  26 46 34 3a 53 54 41 26  46 45 30 35 3a 4c 44 58  |&F4:STA&FE05:LDX|
00000260  23 32 3a 53 45 49 3a 2e  74 65 73 74 20 54 58 41  |#2:SEI:.test TXA|
00000270  3a 53 54 41 26 46 34 3a  53 54 41 26 46 45 30 35  |:STA&F4:STA&FE05|
00000280  3a 4c 44 41 23 30 3a 4c  44 41 26 38 38 30 30 0d  |:LDA#0:LDA&8800.|
00000290  00 1e 37 20 49 4e 43 26  38 38 30 30 3a 43 4d 50  |..7 INC&8800:CMP|
000002a0  26 38 38 30 30 3a 42 4e  45 66 6f 75 6e 64 3a 44  |&8800:BNEfound:D|
000002b0  45 58 3a 44 45 58 3a 42  50 4c 74 65 73 74 3a 4c  |EX:DEX:BPLtest:L|
000002c0  44 58 23 26 46 46 0d 00  28 3e 20 2e 66 6f 75 6e  |DX#&FF..(> .foun|
000002d0  64 20 44 45 43 26 38 38  30 30 3a 43 4c 49 3a 53  |d DEC&8800:CLI:S|
000002e0  54 58 62 61 6e 6b 31 2b  31 3a 49 4e 58 3a 53 54  |TXbank1+1:INX:ST|
000002f0  58 62 61 6e 6b 32 2b 31  3a 53 54 58 65 76 72 6f  |Xbank2+1:STXevro|
00000300  75 74 2b 33 0d 00 32 ef  20 2e 42 41 53 49 43 72  |ut+3..2. .BASICr|
00000310  6f 6d 20 4c 44 41 23 31  31 3a 53 54 41 26 46 34  |om LDA#11:STA&F4|
00000320  3a 53 54 41 26 46 45 30  35 3a 4c 44 41 23 30 3a  |:STA&FE05:LDA#0:|
00000330  53 54 41 26 37 30 3a 53  54 41 26 37 32 3a 53 54  |STA&70:STA&72:ST|
00000340  41 26 37 34 3a 4c 44 41  23 26 38 30 3a 53 54 41  |A&74:LDA#&80:STA|
00000350  26 37 31 3a 4c 44 41 23  26 34 30 3a 53 54 41 26  |&71:LDA#&40:STA&|
00000360  37 33 3a 4c 44 41 23 26  41 30 3a 53 54 41 26 37  |73:LDA#&A0:STA&7|
00000370  35 3a 4a 53 52 6d 6f 76  65 6c 6f 6f 70 32 3a 4c  |5:JSRmoveloop2:L|
00000380  44 41 23 31 35 3a 53 54  41 26 46 34 3a 53 54 41  |DA#15:STA&F4:STA|
00000390  26 46 45 30 35 3a 4a 53  52 62 61 6e 6b 31 3a 4c  |&FE05:JSRbank1:L|
000003a0  44 41 23 30 3a 53 54 41  26 37 30 3a 53 54 41 26  |DA#0:STA&70:STA&|
000003b0  37 32 3a 53 54 41 26 37  34 3a 4c 44 41 23 26 34  |72:STA&74:LDA#&4|
000003c0  30 3a 53 54 41 26 37 31  3a 4c 44 41 23 26 38 30  |0:STA&71:LDA#&80|
000003d0  3a 53 54 41 26 37 33 3a  4c 44 41 23 26 36 30 3a  |:STA&73:LDA#&60:|
000003e0  53 54 41 26 37 35 3a 4a  53 52 6d 6f 76 65 6c 6f  |STA&75:JSRmovelo|
000003f0  6f 70 32 0d 00 3c e4 4c  44 41 23 31 31 3a 53 54  |op2..<.LDA#11:ST|
00000400  41 26 46 34 3a 53 54 41  26 46 45 30 35 3a 4c 44  |A&F4:STA&FE05:LD|
00000410  41 23 30 3a 53 54 41 26  37 30 3a 53 54 41 26 37  |A#0:STA&70:STA&7|
00000420  32 3a 53 54 41 26 37 34  3a 4c 44 41 23 26 41 30  |2:STA&74:LDA#&A0|
00000430  3a 53 54 41 26 37 31 3a  4c 44 41 23 26 34 30 3a  |:STA&71:LDA#&40:|
00000440  53 54 41 26 37 33 3a 4c  44 41 23 26 43 30 3a 53  |STA&73:LDA#&C0:S|
00000450  54 41 26 37 35 3a 4a 53  52 6d 6f 76 65 6c 6f 6f  |TA&75:JSRmoveloo|
00000460  70 32 3a 4c 44 41 23 31  35 3a 53 54 41 26 46 34  |p2:LDA#15:STA&F4|
00000470  3a 53 54 41 26 46 45 30  35 3a 4a 53 52 62 61 6e  |:STA&FE05:JSRban|
00000480  6b 31 3a 4c 44 41 23 30  3a 53 54 41 26 37 30 3a  |k1:LDA#0:STA&70:|
00000490  53 54 41 26 37 32 3a 53  54 41 26 37 34 3a 4c 44  |STA&72:STA&74:LD|
000004a0  41 23 26 34 30 3a 53 54  41 26 37 31 3a 4c 44 41  |A#&40:STA&71:LDA|
000004b0  23 26 41 30 3a 53 54 41  26 37 33 3a 4c 44 41 23  |#&A0:STA&73:LDA#|
000004c0  26 36 30 3a 53 54 41 26  37 35 3a 4a 53 52 6d 6f  |&60:STA&75:JSRmo|
000004d0  76 65 6c 6f 6f 70 32 0d  00 46 aa 20 2e 62 61 6e  |veloop2..F. .ban|
000004e0  6b 32 65 6e 74 72 79 20  4a 53 52 62 61 6e 6b 32  |k2entry JSRbank2|
000004f0  3a 4c 44 41 23 28 65 6e  74 65 72 20 83 32 35 36  |:LDA#(enter .256|
00000500  29 3a 53 54 41 26 37 30  3a 4c 44 41 23 28 65 6e  |):STA&70:LDA#(en|
00000510  74 65 72 20 81 32 35 36  29 3a 53 54 41 26 37 31  |ter .256):STA&71|
00000520  3a 4c 44 59 23 30 3a 4c  44 41 23 26 34 43 3a 53  |:LDY#0:LDA#&4C:S|
00000530  54 41 28 26 37 30 29 2c  59 3a 49 4e 59 3a 4c 44  |TA(&70),Y:INY:LD|
00000540  41 23 28 42 32 72 6f 75  74 69 6e 65 20 83 32 35  |A#(B2routine .25|
00000550  36 29 3a 53 54 41 28 26  37 30 29 2c 59 3a 49 4e  |6):STA(&70),Y:IN|
00000560  59 3a 4c 44 41 23 28 42  32 72 6f 75 74 69 6e 65  |Y:LDA#(B2routine|
00000570  20 81 32 35 36 29 3a 53  54 41 28 26 37 30 29 2c  | .256):STA(&70),|
00000580  59 0d 00 4b a5 20 2e 65  76 65 6e 74 65 6e 74 72  |Y..K. .evententr|
00000590  79 20 4c 44 41 23 28 65  6e 74 65 72 65 76 20 83  |y LDA#(enterev .|
000005a0  32 35 36 29 3a 53 54 41  26 37 30 3a 4c 44 41 23  |256):STA&70:LDA#|
000005b0  28 65 6e 74 65 72 65 76  20 81 32 35 36 29 3a 53  |(enterev .256):S|
000005c0  54 41 26 37 31 3a 4c 44  59 23 30 3a 4c 44 41 23  |TA&71:LDY#0:LDA#|
000005d0  26 34 43 3a 53 54 41 28  26 37 30 29 2c 59 3a 49  |&4C:STA(&70),Y:I|
000005e0  4e 59 3a 4c 44 41 23 28  65 76 72 6f 75 74 69 6e  |NY:LDA#(evroutin|
000005f0  65 20 83 32 35 36 29 3a  53 54 41 28 26 37 30 29  |e .256):STA(&70)|
00000600  2c 59 3a 49 4e 59 3a 4c  44 41 23 28 65 76 72 6f  |,Y:INY:LDA#(evro|
00000610  75 74 69 6e 65 20 81 32  35 36 29 3a 53 54 41 28  |utine .256):STA(|
00000620  26 37 30 29 2c 59 0d 00  50 b4 20 2e 62 61 6e 6b  |&70),Y..P. .bank|
00000630  32 6d 61 69 6e 20 4c 44  41 23 28 73 74 61 72 74  |2main LDA#(start|
00000640  20 83 32 35 36 29 3a 53  54 41 26 37 30 3a 4c 44  | .256):STA&70:LD|
00000650  41 23 28 73 74 61 72 74  20 81 32 35 36 29 3a 53  |A#(start .256):S|
00000660  54 41 26 37 31 3a 4c 44  41 23 28 62 61 6e 6b 31  |TA&71:LDA#(bank1|
00000670  20 83 32 35 36 29 3a 53  54 41 26 37 34 3a 4c 44  | .256):STA&74:LD|
00000680  41 23 28 62 61 6e 6b 31  20 81 32 35 36 29 3a 53  |A#(bank1 .256):S|
00000690  54 41 26 37 35 3a 4c 44  41 23 28 42 32 72 6f 75  |TA&75:LDA#(B2rou|
000006a0  74 69 6e 65 20 83 32 35  36 29 3a 53 54 41 26 37  |tine .256):STA&7|
000006b0  32 3a 4c 44 41 23 28 42  32 72 6f 75 74 69 6e 65  |2:LDA#(B2routine|
000006c0  20 81 32 35 36 29 3a 53  54 41 26 37 33 3a 4a 53  | .256):STA&73:JS|
000006d0  52 6d 6f 76 65 6c 6f 6f  70 32 0d 00 5a 61 20 2e  |Rmoveloop2..Za .|
000006e0  41 44 46 53 64 61 74 61  20 4c 44 41 23 30 3a 53  |ADFSdata LDA#0:S|
000006f0  54 41 26 37 30 3a 53 54  41 26 37 32 3a 53 54 41  |TA&70:STA&72:STA|
00000700  26 37 34 3a 4c 44 41 23  39 3a 53 54 41 26 37 31  |&74:LDA#9:STA&71|
00000710  3a 4c 44 41 23 26 38 39  3a 53 54 41 26 37 33 3a  |:LDA#&89:STA&73:|
00000720  4c 44 41 23 26 31 44 3a  53 54 41 26 37 35 3a 4a  |LDA#&1D:STA&75:J|
00000730  53 52 6d 6f 76 65 6c 6f  6f 70 32 0d 00 64 d7 20  |SRmoveloop2..d. |
00000740  2e 62 31 72 65 74 75 72  6e 20 4c 44 41 23 28 62  |.b1return LDA#(b|
00000750  61 6e 6b 31 20 83 32 35  36 29 3a 53 54 41 26 37  |ank1 .256):STA&7|
00000760  30 3a 4c 44 41 23 28 62  61 6e 6b 31 20 81 32 35  |0:LDA#(bank1 .25|
00000770  36 29 3a 53 54 41 26 37  31 3a 4c 44 41 23 28 42  |6):STA&71:LDA#(B|
00000780  41 43 4b 2d 28 6f 73 62  79 74 65 2d 62 61 6e 6b  |ACK-(osbyte-bank|
00000790  31 2d 31 29 29 20 83 32  35 36 29 3a 53 54 41 26  |1-1)) .256):STA&|
000007a0  37 32 3a 4c 44 41 23 28  42 41 43 4b 2d 28 6f 73  |72:LDA#(BACK-(os|
000007b0  62 79 74 65 2d 62 61 6e  6b 31 2d 31 29 29 20 81  |byte-bank1-1)) .|
000007c0  32 35 36 29 3a 53 54 41  26 37 33 3a 4c 44 41 23  |256):STA&73:LDA#|
000007d0  28 28 6f 73 62 79 74 65  2d 31 29 20 83 32 35 36  |((osbyte-1) .256|
000007e0  29 3a 53 54 41 26 37 34  3a 4c 44 41 23 28 28 6f  |):STA&74:LDA#((o|
000007f0  73 62 79 74 65 2d 31 29  20 81 32 35 36 29 3a 53  |sbyte-1) .256):S|
00000800  54 41 26 37 35 3a 4a 53  52 6d 6f 76 65 6c 6f 6f  |TA&75:JSRmoveloo|
00000810  70 32 0d 00 6e c2 20 2e  62 31 6f 73 62 79 74 65  |p2..n. .b1osbyte|
00000820  20 4a 53 52 62 61 6e 6b  31 3a 4c 44 41 23 28 6f  | JSRbank1:LDA#(o|
00000830  73 62 79 74 65 20 83 32  35 36 29 3a 53 54 41 26  |sbyte .256):STA&|
00000840  37 30 3a 4c 44 41 23 28  6f 73 62 79 74 65 20 81  |70:LDA#(osbyte .|
00000850  32 35 36 29 3a 53 54 41  26 37 31 3a 4c 44 41 23  |256):STA&71:LDA#|
00000860  28 4f 42 72 6f 75 74 69  6e 65 20 83 32 35 36 29  |(OBroutine .256)|
00000870  3a 53 54 41 26 37 32 3a  4c 44 41 23 28 4f 42 72  |:STA&72:LDA#(OBr|
00000880  6f 75 74 69 6e 65 20 81  32 35 36 29 3a 53 54 41  |outine .256):STA|
00000890  26 37 33 3a 4c 44 41 23  28 6f 73 62 79 74 65 32  |&73:LDA#(osbyte2|
000008a0  20 83 32 35 36 29 3a 53  54 41 26 37 34 3a 4c 44  | .256):STA&74:LD|
000008b0  41 23 28 6f 73 62 79 74  65 32 20 81 32 35 36 29  |A#(osbyte2 .256)|
000008c0  3a 53 54 41 26 37 35 3a  4a 53 52 6d 6f 76 65 6c  |:STA&75:JSRmovel|
000008d0  6f 6f 70 32 0d 00 70 b8  20 2e 62 31 6f 73 62 79  |oop2..p. .b1osby|
000008e0  74 65 32 20 4c 44 41 23  28 6f 73 62 79 74 65 32  |te2 LDA#(osbyte2|
000008f0  20 83 32 35 36 29 3a 53  54 41 26 37 30 3a 4c 44  | .256):STA&70:LD|
00000900  41 23 28 6f 73 62 79 74  65 32 20 81 32 35 36 29  |A#(osbyte2 .256)|
00000910  3a 53 54 41 26 37 31 3a  4c 44 41 23 28 4f 42 72  |:STA&71:LDA#(OBr|
00000920  6f 75 74 32 20 83 32 35  36 29 3a 53 54 41 26 37  |out2 .256):STA&7|
00000930  32 3a 4c 44 41 23 28 4f  42 72 6f 75 74 32 20 81  |2:LDA#(OBrout2 .|
00000940  32 35 36 29 3a 53 54 41  26 37 33 3a 4c 44 41 23  |256):STA&73:LDA#|
00000950  28 6f 73 62 79 74 65 33  20 83 32 35 36 29 3a 53  |(osbyte3 .256):S|
00000960  54 41 26 37 34 3a 4c 44  41 23 28 6f 73 62 79 74  |TA&74:LDA#(osbyt|
00000970  65 33 20 81 32 35 36 29  3a 53 54 41 26 37 35 3a  |e3 .256):STA&75:|
00000980  4a 53 52 6d 6f 76 65 6c  6f 6f 70 32 0d 00 72 b2  |JSRmoveloop2..r.|
00000990  20 2e 62 31 6f 73 62 79  74 65 33 20 4c 44 41 23  | .b1osbyte3 LDA#|
000009a0  28 6f 73 62 79 74 65 33  20 83 32 35 36 29 3a 53  |(osbyte3 .256):S|
000009b0  54 41 26 37 30 3a 4c 44  41 23 28 6f 73 62 79 74  |TA&70:LDA#(osbyt|
000009c0  65 33 20 81 32 35 36 29  3a 53 54 41 26 37 31 3a  |e3 .256):STA&71:|
000009d0  4c 44 41 23 28 4f 42 72  6f 75 74 33 20 83 32 35  |LDA#(OBrout3 .25|
000009e0  36 29 3a 53 54 41 26 37  32 3a 4c 44 41 23 28 4f  |6):STA&72:LDA#(O|
000009f0  42 72 6f 75 74 33 20 81  32 35 36 29 3a 53 54 41  |Brout3 .256):STA|
00000a00  26 37 33 3a 4c 44 41 23  28 66 69 6c 65 20 83 32  |&73:LDA#(file .2|
00000a10  35 36 29 3a 53 54 41 26  37 34 3a 4c 44 41 23 28  |56):STA&74:LDA#(|
00000a20  66 69 6c 65 20 81 32 35  36 29 3a 53 54 41 26 37  |file .256):STA&7|
00000a30  35 3a 4a 53 52 6d 6f 76  65 6c 6f 6f 70 32 0d 00  |5:JSRmoveloop2..|
00000a40  78 b5 20 2e 62 31 6f 73  66 69 6c 65 20 4c 44 41  |x. .b1osfile LDA|
00000a50  23 28 66 69 6c 65 20 83  32 35 36 29 3a 53 54 41  |#(file .256):STA|
00000a60  26 37 30 3a 4c 44 41 23  28 66 69 6c 65 20 81 32  |&70:LDA#(file .2|
00000a70  35 36 29 3a 53 54 41 26  37 31 3a 4c 44 41 23 28  |56):STA&71:LDA#(|
00000a80  4f 46 49 4c 45 20 83 32  35 36 29 3a 53 54 41 26  |OFILE .256):STA&|
00000a90  37 32 3a 4c 44 41 23 28  4f 46 49 4c 45 20 81 32  |72:LDA#(OFILE .2|
00000aa0  35 36 29 3a 53 54 41 26  37 33 3a 4c 44 41 23 28  |56):STA&73:LDA#(|
00000ab0  28 66 69 6c 65 72 65 74  2d 31 29 20 83 32 35 36  |(fileret-1) .256|
00000ac0  29 3a 53 54 41 26 37 34  3a 4c 44 41 23 28 28 66  |):STA&74:LDA#((f|
00000ad0  69 6c 65 72 65 74 2d 31  29 20 81 32 35 36 29 3a  |ileret-1) .256):|
00000ae0  53 54 41 26 37 35 3a 4a  53 52 6d 6f 76 65 6c 6f  |STA&75:JSRmovelo|
00000af0  6f 70 32 0d 00 82 b0 20  2e 62 31 66 69 6c 65 72  |op2.... .b1filer|
00000b00  65 74 20 4c 44 41 23 28  66 69 6c 65 72 65 74 20  |et LDA#(fileret |
00000b10  83 32 35 36 29 3a 53 54  41 26 37 30 3a 4c 44 41  |.256):STA&70:LDA|
00000b20  23 28 66 69 6c 65 72 65  74 20 81 32 35 36 29 3a  |#(fileret .256):|
00000b30  53 54 41 26 37 31 3a 4c  44 41 23 28 42 41 43 4b  |STA&71:LDA#(BACK|
00000b40  20 83 32 35 36 29 3a 53  54 41 26 37 32 3a 4c 44  | .256):STA&72:LD|
00000b50  41 23 28 42 41 43 4b 20  81 32 35 36 29 3a 53 54  |A#(BACK .256):ST|
00000b60  41 26 37 33 3a 4c 44 41  23 28 65 76 72 6f 75 74  |A&73:LDA#(evrout|
00000b70  20 83 32 35 36 29 3a 53  54 41 26 37 34 3a 4c 44  | .256):STA&74:LD|
00000b80  41 23 28 65 76 72 6f 75  74 20 81 32 35 36 29 3a  |A#(evrout .256):|
00000b90  53 54 41 26 37 35 3a 4a  53 52 6d 6f 76 65 6c 6f  |STA&75:JSRmovelo|
00000ba0  6f 70 32 0d 00 87 ac 20  2e 62 31 65 76 65 6e 74  |op2.... .b1event|
00000bb0  20 4c 44 41 23 28 65 76  72 6f 75 74 20 83 32 35  | LDA#(evrout .25|
00000bc0  36 29 3a 53 54 41 26 37  30 3a 4c 44 41 23 28 65  |6):STA&70:LDA#(e|
00000bd0  76 72 6f 75 74 20 81 32  35 36 29 3a 53 54 41 26  |vrout .256):STA&|
00000be0  37 31 3a 4c 44 41 23 28  45 56 45 4e 54 20 83 32  |71:LDA#(EVENT .2|
00000bf0  35 36 29 3a 53 54 41 26  37 32 3a 4c 44 41 23 28  |56):STA&72:LDA#(|
00000c00  45 56 45 4e 54 20 81 32  35 36 29 3a 53 54 41 26  |EVENT .256):STA&|
00000c10  37 33 3a 4c 44 41 23 28  65 76 65 6e 64 20 83 32  |73:LDA#(evend .2|
00000c20  35 36 29 3a 53 54 41 26  37 34 3a 4c 44 41 23 28  |56):STA&74:LDA#(|
00000c30  65 76 65 6e 64 20 81 32  35 36 29 3a 53 54 41 26  |evend .256):STA&|
00000c40  37 35 3a 4a 53 52 6d 6f  76 65 6c 6f 6f 70 32 0d  |75:JSRmoveloop2.|
00000c50  00 8c 6a 20 2e 70 61 67  65 20 4c 44 41 23 30 3a  |..j .page LDA#0:|
00000c60  53 54 41 26 37 30 3a 53  54 41 26 37 32 3a 4c 44  |STA&70:STA&72:LD|
00000c70  41 26 31 38 3a 53 54 41  26 37 31 3a 4c 44 41 23  |A&18:STA&71:LDA#|
00000c80  26 45 3a 53 54 41 26 37  33 3a 53 54 41 26 31 38  |&E:STA&73:STA&18|
00000c90  3a 4c 44 41 26 31 32 3a  53 54 41 26 37 34 3a 4c  |:LDA&12:STA&74:L|
00000ca0  44 41 26 31 33 3a 53 54  41 26 37 35 3a 4a 53 52  |DA&13:STA&75:JSR|
00000cb0  6d 6f 76 65 6c 6f 6f 70  32 0d 00 96 67 20 2e 6c  |moveloop2...g .l|
00000cc0  61 6e 67 52 4f 4d 20 4c  44 41 62 61 6e 6b 31 2b  |angROM LDAbank1+|
00000cd0  31 3a 53 54 41 26 32 38  43 3a 43 4c 43 3a 41 44  |1:STA&28C:CLC:AD|
00000ce0  43 23 26 41 30 3a 53 54  41 26 37 30 3a 4c 44 41  |C#&A0:STA&70:LDA|
00000cf0  23 32 3a 53 54 41 26 37  31 3a 4c 44 59 23 30 3a  |#2:STA&71:LDY#0:|
00000d00  4c 44 41 23 26 36 30 3a  53 54 41 28 26 37 30 29  |LDA#&60:STA(&70)|
00000d10  2c 59 3a 4c 44 41 23 30  3a 53 54 41 26 32 41 42  |,Y:LDA#0:STA&2AB|
00000d20  0d 00 a0 b3 20 2e 76 65  63 74 20 4c 44 41 26 32  |.... .vect LDA&2|
00000d30  30 41 3a 53 54 41 4f 42  72 6f 75 74 32 2b 38 3a  |0A:STAOBrout2+8:|
00000d40  4c 44 41 26 32 30 42 3a  53 54 41 4f 42 72 6f 75  |LDA&20B:STAOBrou|
00000d50  74 32 2b 39 3a 4a 53 52  62 61 6e 6b 32 3a 4c 44  |t2+9:JSRbank2:LD|
00000d60  41 26 32 30 41 3a 53 54  41 6f 73 62 79 74 65 4c  |A&20A:STAosbyteL|
00000d70  4f 3a 4c 44 41 26 32 30  42 3a 53 54 41 6f 73 62  |O:LDA&20B:STAosb|
00000d80  79 74 65 48 49 3a 4c 44  41 26 32 31 32 3a 53 54  |yteHI:LDA&212:ST|
00000d90  41 6f 73 66 69 6c 65 4c  4f 3a 4c 44 41 26 32 31  |AosfileLO:LDA&21|
00000da0  33 3a 53 54 41 6f 73 66  69 6c 65 48 49 3a 4c 44  |3:STAosfileHI:LD|
00000db0  41 26 32 31 45 3a 53 54  41 6f 73 66 73 63 4c 4f  |A&21E:STAosfscLO|
00000dc0  3a 4c 44 41 26 32 31 46  3a 53 54 41 6f 73 66 73  |:LDA&21F:STAosfs|
00000dd0  63 48 49 0d 00 a5 b2 20  4c 44 41 26 32 30 34 3a  |cHI.... LDA&204:|
00000de0  53 54 41 69 6e 74 65 72  4c 4f 3a 4c 44 41 26 32  |STAinterLO:LDA&2|
00000df0  30 35 3a 53 54 41 69 6e  74 65 72 48 49 3a 4c 44  |05:STAinterHI:LD|
00000e00  41 26 32 32 30 3a 53 54  41 65 76 65 6e 74 4c 4f  |A&220:STAeventLO|
00000e10  3a 4c 44 41 26 32 32 31  3a 53 54 41 65 76 65 6e  |:LDA&221:STAeven|
00000e20  74 48 49 3a 4c 44 41 23  31 34 3a 4c 44 58 23 34  |tHI:LDA#14:LDX#4|
00000e30  3a 4c 44 59 23 30 3a 4a  53 52 4f 53 42 59 54 45  |:LDY#0:JSROSBYTE|
00000e40  3a 4c 44 58 23 32 3a 4c  44 59 23 30 3a 4a 53 52  |:LDX#2:LDY#0:JSR|
00000e50  4f 53 42 59 54 45 3a 53  45 49 3a 4a 53 52 76 65  |OSBYTE:SEI:JSRve|
00000e60  63 74 6f 72 73 3a 43 4c  49 3a 4a 53 52 62 61 6e  |ctors:CLI:JSRban|
00000e70  6b 31 3a 4c 44 41 23 30  3a 53 54 41 26 46 43 44  |k1:LDA#0:STA&FCD|
00000e80  44 3a 52 54 53 0d 00 aa  8d 20 2e 6d 6f 76 65 6c  |D:RTS.... .movel|
00000e90  6f 6f 70 32 20 4c 44 59  23 30 3a 2e 6c 6f 6f 70  |oop2 LDY#0:.loop|
00000ea0  20 4c 44 41 28 26 37 30  29 2c 59 3a 53 54 41 28  | LDA(&70),Y:STA(|
00000eb0  26 37 32 29 2c 59 3a 49  4e 43 26 37 30 3a 42 4e  |&72),Y:INC&70:BN|
00000ec0  45 61 3a 49 4e 43 26 37  31 3a 2e 61 20 49 4e 43  |Ea:INC&71:.a INC|
00000ed0  26 37 32 3a 42 4e 45 62  3a 49 4e 43 26 37 33 3a  |&72:BNEb:INC&73:|
00000ee0  2e 62 20 4c 44 41 26 37  30 3a 43 4d 50 26 37 34  |.b LDA&70:CMP&74|
00000ef0  3a 42 4e 45 6c 6f 6f 70  3a 4c 44 41 26 37 31 3a  |:BNEloop:LDA&71:|
00000f00  43 4d 50 26 37 35 3a 42  4e 45 6c 6f 6f 70 3a 52  |CMP&75:BNEloop:R|
00000f10  54 53 0d 00 b4 2d 20 5d  3a 4f 25 3d 50 25 3a 73  |TS...- ]:O%=P%:s|
00000f20  74 61 72 74 3d 4f 25 3a  50 25 3d 42 32 72 6f 75  |tart=O%:P%=B2rou|
00000f30  74 69 6e 65 3a 5b 4f 50  54 70 61 73 73 2b 34 0d  |tine:[OPTpass+4.|
00000f40  00 be ae 20 4c 44 41 23  30 3a 41 44 43 23 30 3a  |... LDA#0:ADC#0:|
00000f50  50 48 41 3a 53 45 49 3a  4a 53 52 76 65 63 6e 6f  |PHA:SEI:JSRvecno|
00000f60  72 6d 3a 43 4c 49 3a 4a  4d 50 63 6f 6e 74 3a 2e  |rm:CLI:JMPcont:.|
00000f70  76 65 63 6e 6f 72 6d 20  4c 44 41 6f 73 66 73 63  |vecnorm LDAosfsc|
00000f80  4c 4f 3a 53 54 41 26 32  31 45 3a 4c 44 41 6f 73  |LO:STA&21E:LDAos|
00000f90  66 73 63 48 49 3a 53 54  41 26 32 31 46 3a 4c 44  |fscHI:STA&21F:LD|
00000fa0  41 6f 73 66 69 6c 65 4c  4f 3a 53 54 41 26 32 31  |AosfileLO:STA&21|
00000fb0  32 3a 4c 44 41 6f 73 66  69 6c 65 48 49 3a 53 54  |2:LDAosfileHI:ST|
00000fc0  41 26 32 31 33 3a 4c 44  41 6f 73 62 79 74 65 4c  |A&213:LDAosbyteL|
00000fd0  4f 3a 53 54 41 26 32 30  41 3a 4c 44 41 6f 73 62  |O:STA&20A:LDAosb|
00000fe0  79 74 65 48 49 3a 53 54  41 26 32 30 42 0d 00 c0  |yteHI:STA&20B...|
00000ff0  7c 20 4c 44 41 65 76 65  6e 74 4c 4f 3a 53 54 41  || LDAeventLO:STA|
00001000  26 32 32 30 3a 4c 44 41  65 76 65 6e 74 48 49 3a  |&220:LDAeventHI:|
00001010  53 54 41 26 32 32 31 3a  4c 44 41 26 32 30 34 3a  |STA&221:LDA&204:|
00001020  53 54 41 69 6e 74 65 72  6e 65 77 4c 4f 3a 4c 44  |STAinternewLO:LD|
00001030  41 26 32 30 35 3a 53 54  41 69 6e 74 65 72 6e 65  |A&205:STAinterne|
00001040  77 48 49 3a 4c 44 41 69  6e 74 65 72 4c 4f 3a 53  |wHI:LDAinterLO:S|
00001050  54 41 26 32 30 34 3a 4c  44 41 69 6e 74 65 72 48  |TA&204:LDAinterH|
00001060  49 3a 53 54 41 26 32 30  35 0d 00 c3 89 20 53 54  |I:STA&205.... ST|
00001070  58 65 6e 64 61 64 64 3a  4c 44 58 23 30 3a 2e 73  |Xendadd:LDX#0:.s|
00001080  61 76 65 76 61 72 73 20  4c 44 41 26 37 30 2c 58  |avevars LDA&70,X|
00001090  3a 53 54 41 74 65 6d 70  73 74 6f 72 65 2c 58 3a  |:STAtempstore,X:|
000010a0  49 4e 58 3a 43 50 58 23  36 3a 42 4e 45 73 61 76  |INX:CPX#6:BNEsav|
000010b0  65 76 61 72 73 3a 53 54  59 26 37 35 3a 4c 44 58  |evars:STY&75:LDX|
000010c0  65 6e 64 61 64 64 3a 53  54 58 26 37 34 3a 52 54  |endadd:STX&74:RT|
000010d0  53 3a 2e 63 6f 6e 74 20  50 4c 41 3a 42 45 51 66  |S:.cont PLA:BEQf|
000010e0  69 6c 65 72 6f 75 74 3a  4a 4d 50 66 73 63 72 6f  |ilerout:JMPfscro|
000010f0  75 74 0d 00 c8 56 20 2e  66 69 6c 65 72 6f 75 74  |ut...V .filerout|
00001100  20 4c 44 59 23 30 3a 4c  44 41 28 26 37 34 29 2c  | LDY#0:LDA(&74),|
00001110  59 3a 54 41 58 3a 49 4e  59 3a 4c 44 41 28 26 37  |Y:TAX:INY:LDA(&7|
00001120  34 29 2c 59 3a 53 54 58  26 37 30 3a 53 54 41 26  |4),Y:STX&70:STA&|
00001130  37 31 3a 44 45 59 3a 4a  53 52 66 69 6c 65 6e 61  |71:DEY:JSRfilena|
00001140  6d 65 3a 4c 44 58 23 30  0d 00 d2 a9 20 2e 6c 6f  |me:LDX#0.... .lo|
00001150  61 64 20 4c 44 41 23 30  3a 53 54 41 26 37 30 3a  |ad LDA#0:STA&70:|
00001160  53 54 41 26 37 32 3a 4c  44 41 23 39 3a 53 54 41  |STA&72:LDA#9:STA|
00001170  26 37 31 3a 4c 44 41 23  26 41 43 3a 53 54 41 26  |&71:LDA#&AC:STA&|
00001180  37 33 3a 4c 44 41 23 26  31 44 3a 53 54 41 65 6e  |73:LDA#&1D:STAen|
00001190  64 61 64 64 3a 4c 44 59  23 30 3a 4a 53 52 6d 6f  |dadd:LDY#0:JSRmo|
000011a0  76 65 6c 6f 6f 70 3a 4c  44 41 23 26 38 39 3a 53  |veloop:LDA#&89:S|
000011b0  54 41 26 37 31 3a 4c 44  41 23 39 3a 53 54 41 26  |TA&71:LDA#9:STA&|
000011c0  37 33 3a 4c 44 41 23 26  39 44 3a 53 54 41 65 6e  |73:LDA#&9D:STAen|
000011d0  64 61 64 64 3a 4c 44 59  23 30 3a 4a 53 52 6d 6f  |dadd:LDY#0:JSRmo|
000011e0  76 65 6c 6f 6f 70 3a 4a  4d 50 6c 6f 61 64 61 64  |veloop:JMPloadad|
000011f0  64 0d 00 dc 63 20 2e 6d  6f 76 65 6c 6f 6f 70 20  |d...c .moveloop |
00001200  4c 44 41 28 26 37 30 29  2c 59 3a 53 54 41 28 26  |LDA(&70),Y:STA(&|
00001210  37 32 29 2c 59 3a 49 4e  59 3a 42 4e 45 6d 6f 76  |72),Y:INY:BNEmov|
00001220  65 6c 6f 6f 70 3a 49 4e  43 26 37 31 3a 49 4e 43  |eloop:INC&71:INC|
00001230  26 37 33 3a 4c 44 41 26  37 31 3a 43 4d 50 65 6e  |&73:LDA&71:CMPen|
00001240  64 61 64 64 3a 42 4e 45  6d 6f 76 65 6c 6f 6f 70  |dadd:BNEmoveloop|
00001250  3a 52 54 53 0d 00 e6 e3  20 2e 6c 6f 61 64 61 64  |:RTS.... .loadad|
00001260  64 20 4c 44 41 23 30 3a  53 54 41 26 41 30 30 3a  |d LDA#0:STA&A00:|
00001270  4c 44 41 23 26 42 3a 53  54 41 26 41 30 31 3a 53  |LDA#&B:STA&A01:S|
00001280  54 58 65 6e 64 61 64 64  3a 43 50 58 23 31 3a 42  |TXendadd:CPX#1:B|
00001290  45 51 66 69 6e 64 61 64  64 3a 4c 44 41 23 30 3a  |EQfindadd:LDA#0:|
000012a0  53 54 41 26 37 32 3a 4c  44 41 23 26 41 3a 53 54  |STA&72:LDA#&A:ST|
000012b0  41 26 37 33 3a 4c 44 41  26 37 34 3a 53 54 41 26  |A&73:LDA&74:STA&|
000012c0  37 30 3a 4c 44 41 23 33  3a 53 54 41 65 6e 64 61  |70:LDA#3:STAenda|
000012d0  64 64 3a 4c 44 41 26 37  35 3a 4c 44 59 23 30 3a  |dd:LDA&75:LDY#0:|
000012e0  2e 72 61 6d 20 43 4d 50  23 26 43 30 3a 42 4e 45  |.ram CMP#&C0:BNE|
000012f0  6e 6f 31 3a 4c 44 41 23  26 31 44 3a 4a 4d 50 73  |no1:LDA#&1D:JMPs|
00001300  74 3a 2e 6e 6f 31 20 43  4d 50 23 26 31 44 3a 42  |t:.no1 CMP#&1D:B|
00001310  43 53 73 74 3a 43 4d 50  23 39 3a 42 43 43 73 74  |CSst:CMP#9:BCCst|
00001320  3a 43 4c 43 3a 41 44 43  23 26 41 33 3a 2e 73 74  |:CLC:ADC#&A3:.st|
00001330  20 53 54 41 26 37 31 0d  00 f0 5e 20 2e 74 72 20  | STA&71...^ .tr |
00001340  4c 44 41 28 26 37 30 29  2c 59 3a 53 54 41 28 26  |LDA(&70),Y:STA(&|
00001350  37 32 29 2c 59 3a 49 4e  43 26 37 32 3a 4c 44 41  |72),Y:INC&72:LDA|
00001360  26 37 32 3a 43 4d 50 23  26 31 32 3a 42 45 51 65  |&72:CMP#&12:BEQe|
00001370  78 65 63 3a 49 4e 43 26  37 30 3a 42 4e 45 74 72  |xec:INC&70:BNEtr|
00001380  3a 49 4e 43 26 37 31 3a  4c 44 41 26 37 31 3a 4a  |:INC&71:LDA&71:J|
00001390  4d 50 72 61 6d 0d 00 fa  8a 20 2e 65 78 65 63 20  |MPram.... .exec |
000013a0  4c 44 41 23 30 3a 53 54  41 26 41 30 30 3a 4c 44  |LDA#0:STA&A00:LD|
000013b0  41 23 26 42 3a 53 54 41  26 41 30 31 3a 50 4c 41  |A#&B:STA&A01:PLA|
000013c0  3a 50 48 41 3a 42 4e 45  6c 6f 61 64 65 72 3a 4a  |:PHA:BNEloader:J|
000013d0  4d 50 73 61 76 65 3a 2e  6c 6f 61 64 65 72 20 4c  |MPsave:.loader L|
000013e0  44 41 26 41 30 36 3a 42  4e 45 66 69 6e 64 61 64  |DA&A06:BNEfindad|
000013f0  64 3a 4c 44 41 26 41 30  32 3a 53 54 41 26 37 30  |d:LDA&A02:STA&70|
00001400  3a 4c 44 41 26 41 30 33  3a 53 54 41 26 37 31 3a  |:LDA&A03:STA&71:|
00001410  4c 44 41 23 32 3a 53 54  41 65 6e 64 61 64 64 0d  |LDA#2:STAendadd.|
00001420  01 04 d3 20 2e 66 69 6e  64 61 64 64 20 4c 44 41  |... .findadd LDA|
00001430  23 35 3a 4c 44 58 23 30  3a 4c 44 59 23 26 41 3a  |#5:LDX#0:LDY#&A:|
00001440  4a 53 52 4f 53 46 49 4c  45 3a 43 4d 50 23 31 3a  |JSROSFILE:CMP#1:|
00001450  42 45 51 72 75 6e 3a 4a  4d 50 65 72 72 6f 72 31  |BEQrun:JMPerror1|
00001460  3a 2e 72 75 6e 20 4c 44  58 65 6e 64 61 64 64 3a  |:.run LDXendadd:|
00001470  43 50 58 23 31 3a 42 4e  45 6c 61 64 64 72 3a 50  |CPX#1:BNEladdr:P|
00001480  4c 41 3a 53 54 41 26 37  32 3a 50 4c 41 3a 53 54  |LA:STA&72:PLA:ST|
00001490  41 26 37 33 3a 4c 44 58  26 41 30 36 3a 4c 44 59  |A&73:LDX&A06:LDY|
000014a0  26 41 30 37 3a 44 45 58  3a 43 50 58 23 26 46 46  |&A07:DEX:CPX#&FF|
000014b0  3a 42 4e 45 73 74 61 63  6b 3a 44 45 59 3a 2e 73  |:BNEstack:DEY:.s|
000014c0  74 61 63 6b 20 54 59 41  3a 50 48 41 3a 54 58 41  |tack TYA:PHA:TXA|
000014d0  3a 50 48 41 3a 4c 44 41  26 37 33 3a 50 48 41 3a  |:PHA:LDA&73:PHA:|
000014e0  4c 44 41 26 37 32 3a 50  48 41 3a 4a 4d 50 61 72  |LDA&72:PHA:JMPar|
000014f0  65 61 0d 01 0e ac 20 2e  6c 61 64 64 72 20 43 50  |ea.... .laddr CP|
00001500  58 23 32 3a 42 4e 45 61  72 65 61 3a 4c 44 41 26  |X#2:BNEarea:LDA&|
00001510  37 30 3a 53 54 41 26 41  30 32 3a 4c 44 41 26 37  |70:STA&A02:LDA&7|
00001520  31 3a 53 54 41 26 41 30  33 3a 4c 44 41 23 30 3a  |1:STA&A03:LDA#0:|
00001530  53 54 41 26 41 30 36 3a  2e 61 72 65 61 20 4c 44  |STA&A06:.area LD|
00001540  41 26 41 30 33 3a 43 4d  50 23 26 31 44 3a 42 43  |A&A03:CMP#&1D:BC|
00001550  53 6c 6f 61 64 32 3a 43  4d 50 23 39 3a 42 43 53  |Sload2:CMP#9:BCS|
00001560  62 79 74 65 6c 6f 61 64  3a 43 4c 43 3a 4c 44 41  |byteload:CLC:LDA|
00001570  26 41 30 32 3a 41 44 43  26 41 30 41 3a 4c 44 41  |&A02:ADC&A0A:LDA|
00001580  26 41 30 33 3a 41 44 43  26 41 30 42 3a 43 4d 50  |&A03:ADC&A0B:CMP|
00001590  23 39 3a 42 43 53 62 79  74 65 6c 6f 61 64 0d 01  |#9:BCSbyteload..|
000015a0  18 31 20 2e 6c 6f 61 64  32 20 4c 44 41 23 26 46  |.1 .load2 LDA#&F|
000015b0  46 3a 4c 44 58 23 30 3a  4c 44 59 23 26 41 3a 4a  |F:LDX#0:LDY#&A:J|
000015c0  53 52 4f 53 46 49 4c 45  3a 4a 4d 50 65 6e 64 0d  |SROSFILE:JMPend.|
000015d0  01 22 ed 20 2e 62 79 74  65 6c 6f 61 64 20 4c 44  |.". .byteload LD|
000015e0  41 23 26 34 30 3a 4c 44  58 23 30 3a 4c 44 59 23  |A#&40:LDX#0:LDY#|
000015f0  26 42 3a 4a 53 52 4f 53  46 49 4e 44 3a 54 41 59  |&B:JSROSFIND:TAY|
00001600  3a 43 4d 50 23 30 3a 42  4e 45 6f 6b 3a 4a 4d 50  |:CMP#0:BNEok:JMP|
00001610  65 72 72 6f 72 31 3a 2e  6f 6b 20 4c 44 41 26 41  |error1:.ok LDA&A|
00001620  30 32 3a 53 54 41 26 37  30 3a 4c 44 41 26 41 30  |02:STA&70:LDA&A0|
00001630  33 3a 43 4d 50 23 39 3a  42 43 43 6e 6f 72 6d 3a  |3:CMP#9:BCCnorm:|
00001640  43 4c 43 3a 41 44 43 23  26 41 33 3a 2e 6e 6f 72  |CLC:ADC#&A3:.nor|
00001650  6d 20 53 54 41 26 37 31  3a 2e 62 67 65 74 20 43  |m STA&71:.bget C|
00001660  4c 43 3a 4a 53 52 4f 53  42 47 45 54 3a 42 43 53  |LC:JSROSBGET:BCS|
00001670  65 6e 64 6c 6f 61 64 3a  53 54 41 28 26 37 30 2c  |endload:STA(&70,|
00001680  58 29 3a 49 4e 43 26 37  30 3a 42 4e 45 62 67 65  |X):INC&70:BNEbge|
00001690  74 3a 49 4e 43 26 37 31  3a 4c 44 41 26 37 31 3a  |t:INC&71:LDA&71:|
000016a0  43 4d 50 23 26 43 30 3a  42 45 51 73 75 62 3a 43  |CMP#&C0:BEQsub:C|
000016b0  4d 50 23 39 3a 42 4e 45  62 67 65 74 0d 01 2c 57  |MP#9:BNEbget..,W|
000016c0  20 4c 44 41 23 26 41 43  3a 53 54 41 26 37 31 3a  | LDA#&AC:STA&71:|
000016d0  42 4e 45 62 67 65 74 3a  2e 73 75 62 20 4c 44 41  |BNEbget:.sub LDA|
000016e0  23 26 31 44 3a 53 54 41  26 37 31 3a 42 4e 45 62  |#&1D:STA&71:BNEb|
000016f0  67 65 74 3a 2e 65 6e 64  6c 6f 61 64 20 4c 44 41  |get:.endload LDA|
00001700  23 30 3a 4a 53 52 4f 53  46 49 4e 44 3a 4a 4d 50  |#0:JSROSFIND:JMP|
00001710  65 6e 64 0d 01 2e 4f 20  2e 73 61 76 65 20 4c 44  |end...O .save LD|
00001720  41 26 41 30 42 3a 43 4d  50 23 26 31 44 3a 42 43  |A&A0B:CMP#&1D:BC|
00001730  53 73 61 76 65 32 3a 43  4d 50 23 39 3a 42 43 53  |Ssave2:CMP#9:BCS|
00001740  62 79 74 65 73 61 76 65  3a 4c 44 41 26 41 30 46  |bytesave:LDA&A0F|
00001750  3a 43 4d 50 23 39 3a 42  43 53 62 79 74 65 73 61  |:CMP#9:BCSbytesa|
00001760  76 65 0d 01 30 2d 20 2e  73 61 76 65 32 20 4c 44  |ve..0- .save2 LD|
00001770  41 23 30 3a 54 41 58 3a  4c 44 59 23 26 41 3a 4a  |A#0:TAX:LDY#&A:J|
00001780  53 52 4f 53 46 49 4c 45  3a 4a 4d 50 65 6e 64 0d  |SROSFILE:JMPend.|
00001790  01 32 c5 20 2e 62 79 74  65 73 61 76 65 20 4c 44  |.2. .bytesave LD|
000017a0  41 26 41 30 46 3a 43 4d  50 23 26 31 44 3a 42 43  |A&A0F:CMP#&1D:BC|
000017b0  53 6f 70 65 6e 6f 75 74  3a 43 4c 43 3a 41 44 43  |Sopenout:CLC:ADC|
000017c0  23 26 41 33 3a 53 54 41  26 41 30 46 3a 2e 6f 70  |#&A3:STA&A0F:.op|
000017d0  65 6e 6f 75 74 20 4c 44  41 23 26 38 30 3a 4c 44  |enout LDA#&80:LD|
000017e0  58 23 30 3a 4c 44 59 23  26 42 3a 4a 53 52 4f 53  |X#0:LDY#&B:JSROS|
000017f0  46 49 4e 44 3a 54 41 59  3a 43 4d 50 23 30 3a 42  |FIND:TAY:CMP#0:B|
00001800  4e 45 6f 6b 53 3a 4a 4d  50 65 72 72 6f 72 31 3a  |NEokS:JMPerror1:|
00001810  2e 6f 6b 53 20 4c 44 41  26 41 30 41 3a 53 54 41  |.okS LDA&A0A:STA|
00001820  26 37 30 3a 4c 44 41 26  41 30 42 3a 43 4d 50 23  |&70:LDA&A0B:CMP#|
00001830  39 3a 42 43 43 6e 6f 72  6d 53 3a 43 4c 43 3a 41  |9:BCCnormS:CLC:A|
00001840  44 43 23 26 41 33 3a 2e  6e 6f 72 6d 53 20 53 54  |DC#&A3:.normS ST|
00001850  41 26 37 31 0d 01 34 da  20 2e 62 70 75 74 20 4c  |A&71..4. .bput L|
00001860  44 41 26 37 30 3a 43 4d  50 26 41 30 45 3a 42 4e  |DA&70:CMP&A0E:BN|
00001870  45 73 61 3a 4c 44 41 26  37 31 3a 43 4d 50 26 41  |Esa:LDA&71:CMP&A|
00001880  30 46 3a 42 45 51 65 6e  64 73 61 76 65 3a 2e 73  |0F:BEQendsave:.s|
00001890  61 20 4c 44 41 28 26 37  30 2c 58 29 3a 4a 53 52  |a LDA(&70,X):JSR|
000018a0  4f 53 42 50 55 54 3a 49  4e 43 26 37 30 3a 42 4e  |OSBPUT:INC&70:BN|
000018b0  45 62 70 75 74 3a 49 4e  43 26 37 31 3a 4c 44 41  |Ebput:INC&71:LDA|
000018c0  26 37 31 3a 43 4d 50 23  26 43 30 3a 42 45 51 73  |&71:CMP#&C0:BEQs|
000018d0  75 62 53 3a 43 4d 50 23  39 3a 42 4e 45 62 70 75  |ubS:CMP#9:BNEbpu|
000018e0  74 3a 4c 44 41 23 26 41  43 3a 53 54 41 26 37 31  |t:LDA#&AC:STA&71|
000018f0  3a 42 4e 45 62 70 75 74  3a 2e 73 75 62 53 20 4c  |:BNEbput:.subS L|
00001900  44 41 23 26 31 44 3a 53  54 41 26 37 31 3a 42 4e  |DA#&1D:STA&71:BN|
00001910  45 62 70 75 74 3a 2e 65  6e 64 73 61 76 65 20 4c  |Ebput:.endsave L|
00001920  44 41 23 30 3a 4a 53 52  4f 53 46 49 4e 44 0d 01  |DA#0:JSROSFIND..|
00001930  35 4c 20 4c 44 41 23 31  3a 4c 44 58 23 30 3a 4c  |5L LDA#1:LDX#0:L|
00001940  44 59 23 26 41 3a 4a 53  52 4f 53 46 49 4c 45 3a  |DY#&A:JSROSFILE:|
00001950  4c 44 41 23 33 3a 53 54  41 26 41 30 45 3a 4c 44  |LDA#3:STA&A0E:LD|
00001960  41 23 34 3a 4c 44 58 23  30 3a 4c 44 59 23 26 41  |A#4:LDX#0:LDY#&A|
00001970  3a 4a 53 52 4f 53 46 49  4c 45 0d 01 36 97 20 2e  |:JSROSFILE..6. .|
00001980  65 6e 64 20 4c 44 41 23  30 3a 53 54 41 26 37 30  |end LDA#0:STA&70|
00001990  3a 53 54 41 26 37 32 3a  4c 44 41 23 39 3a 53 54  |:STA&72:LDA#9:ST|
000019a0  41 26 37 31 3a 4c 44 41  23 26 38 39 3a 53 54 41  |A&71:LDA#&89:STA|
000019b0  26 37 33 3a 4c 44 41 23  26 31 44 3a 53 54 41 65  |&73:LDA#&1D:STAe|
000019c0  6e 64 61 64 64 3a 4c 44  59 23 30 3a 4a 53 52 6d  |ndadd:LDY#0:JSRm|
000019d0  6f 76 65 6c 6f 6f 70 3a  4c 44 41 23 26 41 43 3a  |oveloop:LDA#&AC:|
000019e0  53 54 41 26 37 31 3a 4c  44 41 23 39 3a 53 54 41  |STA&71:LDA#9:STA|
000019f0  26 37 33 3a 4c 44 41 23  26 43 30 3a 53 54 41 65  |&73:LDA#&C0:STAe|
00001a00  6e 64 61 64 64 3a 4a 53  52 6d 6f 76 65 6c 6f 6f  |ndadd:JSRmoveloo|
00001a10  70 0d 01 3b 29 20 4a 53  52 70 61 75 73 65 3a 2e  |p..;) JSRpause:.|
00001a20  77 61 69 74 32 20 4a 53  52 70 61 75 73 65 65 6e  |wait2 JSRpauseen|
00001a30  64 3a 42 43 43 77 61 69  74 32 0d 01 40 cd 20 2e  |d:BCCwait2..@. .|
00001a40  72 65 74 20 53 45 49 3a  4a 53 52 76 65 63 74 6f  |ret SEI:JSRvecto|
00001a50  72 73 32 3a 4a 53 52 76  61 72 73 3a 43 4c 49 3a  |rs2:JSRvars:CLI:|
00001a60  4a 4d 50 20 42 41 43 4b  2d 28 6f 73 62 79 74 65  |JMP BACK-(osbyte|
00001a70  2d 62 61 6e 6b 31 2d 31  29 3a 5d 3a 76 65 63 74  |-bank1-1):]:vect|
00001a80  6f 72 73 3d 4f 25 3a 5b  4f 50 54 70 61 73 73 2b  |ors=O%:[OPTpass+|
00001a90  34 3a 2e 76 65 63 74 6f  72 73 32 20 4c 44 41 23  |4:.vectors2 LDA#|
00001aa0  28 4f 42 72 6f 75 74 69  6e 65 20 83 32 35 36 29  |(OBroutine .256)|
00001ab0  3a 53 54 41 26 32 30 41  3a 4c 44 41 23 28 4f 42  |:STA&20A:LDA#(OB|
00001ac0  72 6f 75 74 69 6e 65 20  81 32 35 36 29 3a 53 54  |routine .256):ST|
00001ad0  41 26 32 30 42 3a 4c 44  41 23 28 4f 46 49 4c 45  |A&20B:LDA#(OFILE|
00001ae0  20 83 32 35 36 29 3a 53  54 41 26 32 31 32 3a 4c  | .256):STA&212:L|
00001af0  44 41 23 28 4f 46 49 4c  45 20 81 32 35 36 29 3a  |DA#(OFILE .256):|
00001b00  53 54 41 26 32 31 33 0d  01 42 6a 20 4c 44 41 23  |STA&213..Bj LDA#|
00001b10  28 4f 46 53 43 20 83 32  35 36 29 3a 53 54 41 26  |(OFSC .256):STA&|
00001b20  32 31 45 3a 4c 44 41 23  28 4f 46 53 43 20 81 32  |21E:LDA#(OFSC .2|
00001b30  35 36 29 3a 53 54 41 26  32 31 46 3a 4c 44 41 23  |56):STA&21F:LDA#|
00001b40  28 45 56 45 4e 54 20 83  32 35 36 29 3a 53 54 41  |(EVENT .256):STA|
00001b50  26 32 32 30 3a 4c 44 41  23 28 45 56 45 4e 54 20  |&220:LDA#(EVENT |
00001b60  81 32 35 36 29 3a 53 54  41 26 32 32 31 3a 52 54  |.256):STA&221:RT|
00001b70  53 0d 01 4a 6a 20 2e 76  61 72 73 20 4c 44 59 26  |S..Jj .vars LDY&|
00001b80  37 35 3a 4c 44 58 26 37  34 3a 53 54 58 65 6e 64  |75:LDX&74:STXend|
00001b90  61 64 64 3a 4c 44 58 23  30 3a 2e 6c 6f 61 64 76  |add:LDX#0:.loadv|
00001ba0  61 72 73 20 4c 44 41 74  65 6d 70 73 74 6f 72 65  |ars LDAtempstore|
00001bb0  2c 58 3a 53 54 41 26 37  30 2c 58 3a 49 4e 58 3a  |,X:STA&70,X:INX:|
00001bc0  43 50 58 23 36 3a 42 4e  45 6c 6f 61 64 76 61 72  |CPX#6:BNEloadvar|
00001bd0  73 3a 4c 44 58 65 6e 64  61 64 64 0d 01 4f 43 20  |s:LDXendadd..OC |
00001be0  4c 44 41 69 6e 74 65 72  6e 65 77 4c 4f 3a 53 54  |LDAinternewLO:ST|
00001bf0  41 26 32 30 34 3a 4c 44  41 69 6e 74 65 72 6e 65  |A&204:LDAinterne|
00001c00  77 48 49 3a 53 54 41 26  32 30 35 3a 4c 44 41 23  |wHI:STA&205:LDA#|
00001c10  30 3a 53 54 41 26 46 43  44 44 3a 52 54 53 0d 01  |0:STA&FCDD:RTS..|
00001c20  54 c1 20 2e 66 73 63 72  6f 75 74 20 50 4c 41 3a  |T. .fscrout PLA:|
00001c30  50 48 41 3a 42 45 51 72  65 74 3a 43 4d 50 23 34  |PHA:BEQret:CMP#4|
00001c40  3a 42 45 51 66 73 63 3a  43 4d 50 23 32 3a 42 45  |:BEQfsc:CMP#2:BE|
00001c50  51 66 73 63 3a 4a 53 52  6f 6c 64 4f 53 46 53 43  |Qfsc:JSRoldOSFSC|
00001c60  3a 4c 44 41 26 37 30 3a  53 54 41 26 31 30 44 35  |:LDA&70:STA&10D5|
00001c70  3a 4c 44 41 26 37 31 3a  53 54 41 26 44 43 43 3a  |:LDA&71:STA&DCC:|
00001c80  4c 44 41 26 37 32 3a 53  54 41 26 44 43 44 3a 4c  |LDA&72:STA&DCD:L|
00001c90  44 41 26 37 33 3a 53 54  41 26 44 43 45 3a 4a 4d  |DA&73:STA&DCE:JM|
00001ca0  50 72 65 74 3a 2e 66 73  63 20 4c 44 41 26 37 34  |Pret:.fsc LDA&74|
00001cb0  3a 53 54 41 26 37 30 3a  4c 44 41 26 37 35 3a 53  |:STA&70:LDA&75:S|
00001cc0  54 41 26 37 31 3a 4a 53  52 66 69 6c 65 6e 61 6d  |TA&71:JSRfilenam|
00001cd0  65 3a 4c 44 58 23 31 3a  4a 4d 50 6c 6f 61 64 0d  |e:LDX#1:JMPload.|
00001ce0  01 59 8e 20 2e 6f 6c 64  4f 53 46 53 43 20 4c 44  |.Y. .oldOSFSC LD|
00001cf0  41 26 31 30 44 35 3a 53  54 41 26 37 30 3a 4c 44  |A&10D5:STA&70:LD|
00001d00  41 26 44 43 43 3a 53 54  41 26 37 31 3a 4c 44 41  |A&DCC:STA&71:LDA|
00001d10  26 44 43 44 3a 53 54 41  26 37 32 3a 4c 44 41 26  |&DCD:STA&72:LDA&|
00001d20  44 43 45 3a 53 54 41 26  37 33 3a 4c 44 41 23 26  |DCE:STA&73:LDA#&|
00001d30  36 30 3a 53 54 41 26 44  43 43 3a 4c 44 41 23 26  |60:STA&DCC:LDA#&|
00001d40  39 45 3a 53 54 41 26 44  43 44 3a 4c 44 41 23 34  |9E:STA&DCD:LDA#4|
00001d50  3a 53 54 41 26 44 43 45  3a 50 4c 41 3a 50 48 41  |:STA&DCE:PLA:PHA|
00001d60  3a 4a 4d 50 28 6f 73 66  73 63 4c 4f 29 0d 01 5e  |:JMP(osfscLO)..^|
00001d70  cd 20 2e 66 69 6c 65 6e  61 6d 65 20 4c 44 59 23  |. .filename LDY#|
00001d80  30 3a 4c 44 41 28 26 37  30 29 2c 59 3a 43 4d 50  |0:LDA(&70),Y:CMP|
00001d90  23 26 44 3a 42 45 51 6e  61 6d 65 3a 43 4d 50 23  |#&D:BEQname:CMP#|
00001da0  26 32 30 3a 42 45 51 6e  61 6d 65 3a 4a 4d 50 6e  |&20:BEQname:JMPn|
00001db0  6f 74 7a 65 72 6f 3a 2e  6e 61 6d 65 20 4c 44 41  |otzero:.name LDA|
00001dc0  6e 61 6d 65 4c 4f 3a 53  54 41 26 37 30 3a 53 54  |nameLO:STA&70:ST|
00001dd0  41 26 37 32 3a 4c 44 41  6e 61 6d 65 48 49 3a 53  |A&72:LDAnameHI:S|
00001de0  54 41 26 37 31 3a 53 54  41 26 37 33 3a 4c 44 41  |TA&71:STA&73:LDA|
00001df0  28 26 37 30 29 2c 59 3a  43 4d 50 23 30 3a 42 4e  |(&70),Y:CMP#0:BN|
00001e00  45 6f 6b 32 3a 50 4c 41  3a 50 4c 41 3a 4a 4d 50  |Eok2:PLA:PLA:JMP|
00001e10  65 72 72 6f 72 32 3a 2e  6f 6b 32 20 4c 44 41 28  |error2:.ok2 LDA(|
00001e20  26 37 32 29 2c 59 3a 49  4e 43 26 37 32 3a 42 4e  |&72),Y:INC&72:BN|
00001e30  45 6e 6f 3a 49 4e 43 26  37 33 0d 01 68 e9 20 2e  |Eno:INC&73..h. .|
00001e40  6e 6f 20 43 4d 50 23 26  44 3a 42 4e 45 6f 6b 32  |no CMP#&D:BNEok2|
00001e50  3a 4c 44 41 26 37 32 3a  53 54 41 6e 61 6d 65 4c  |:LDA&72:STAnameL|
00001e60  4f 3a 4c 44 41 26 37 33  3a 53 54 41 6e 61 6d 65  |O:LDA&73:STAname|
00001e70  48 49 3a 2e 6e 6f 74 7a  65 72 6f 20 4c 44 41 23  |HI:.notzero LDA#|
00001e80  30 3a 53 54 41 26 37 32  3a 4c 44 41 23 26 38 42  |0:STA&72:LDA#&8B|
00001e90  3a 53 54 41 26 37 33 3a  2e 74 72 61 6e 73 6c 6f  |:STA&73:.translo|
00001ea0  6f 70 20 4c 44 41 28 26  37 30 29 2c 59 3a 53 54  |op LDA(&70),Y:ST|
00001eb0  41 28 26 37 32 29 2c 59  3a 43 4d 50 23 26 44 3a  |A(&72),Y:CMP#&D:|
00001ec0  42 45 51 65 6e 64 66 69  6c 65 3a 43 4d 50 23 26  |BEQendfile:CMP#&|
00001ed0  32 30 3a 42 4e 45 63 6f  6e 74 66 69 6c 65 3a 4c  |20:BNEcontfile:L|
00001ee0  44 41 23 26 44 3a 53 54  41 28 26 37 32 29 2c 59  |DA#&D:STA(&72),Y|
00001ef0  3a 42 4e 45 65 6e 64 66  69 6c 65 3a 2e 63 6f 6e  |:BNEendfile:.con|
00001f00  74 66 69 6c 65 20 49 4e  59 3a 4a 4d 50 74 72 61  |tfile INY:JMPtra|
00001f10  6e 73 6c 6f 6f 70 3a 2e  65 6e 64 66 69 6c 65 20  |nsloop:.endfile |
00001f20  52 54 53 0d 01 72 d1 20  2e 65 72 72 6f 72 31 20  |RTS..r. .error1 |
00001f30  4c 44 41 23 28 6e 6f 74  66 6f 75 6e 64 20 83 32  |LDA#(notfound .2|
00001f40  35 36 29 3a 53 54 41 26  37 30 3a 4c 44 41 23 28  |56):STA&70:LDA#(|
00001f50  6e 6f 74 66 6f 75 6e 64  20 81 32 35 36 29 3a 53  |notfound .256):S|
00001f60  54 41 26 37 31 3a 4a 4d  50 65 72 72 6f 72 3a 2e  |TA&71:JMPerror:.|
00001f70  65 72 72 6f 72 32 20 4c  44 41 23 28 6e 6f 6d 6f  |error2 LDA#(nomo|
00001f80  72 65 20 83 32 35 36 29  3a 53 54 41 26 37 30 3a  |re .256):STA&70:|
00001f90  4c 44 41 23 28 6e 6f 6d  6f 72 65 20 81 32 35 36  |LDA#(nomore .256|
00001fa0  29 3a 53 54 41 26 37 31  3a 2e 65 72 72 6f 72 20  |):STA&71:.error |
00001fb0  4c 44 59 23 30 3a 2e 70  72 69 6e 74 6c 6f 6f 70  |LDY#0:.printloop|
00001fc0  20 4c 44 41 28 26 37 30  29 2c 59 3a 49 4e 59 3a  | LDA(&70),Y:INY:|
00001fd0  4a 53 52 4f 53 41 53 43  49 3a 43 4d 50 23 26 44  |JSROSASCI:CMP#&D|
00001fe0  3a 42 4e 45 70 72 69 6e  74 6c 6f 6f 70 3a 4a 4d  |:BNEprintloop:JM|
00001ff0  50 72 65 74 0d 01 74 ad  20 2e 65 76 72 6f 75 74  |Pret..t. .evrout|
00002000  69 6e 65 20 4a 53 52 76  65 63 6e 6f 72 6d 3a 4c  |ine JSRvecnorm:L|
00002010  44 41 23 31 33 3a 4c 44  58 23 34 3a 4c 44 59 23  |DA#13:LDX#4:LDY#|
00002020  30 3a 4a 53 52 4f 53 42  59 54 45 3a 4a 53 52 70  |0:JSROSBYTE:JSRp|
00002030  61 75 73 65 3a 2e 77 61  69 74 20 4a 53 52 73 6c  |ause:.wait JSRsl|
00002040  6f 77 3a 4a 53 52 70 61  75 73 65 65 6e 64 3a 42  |ow:JSRpauseend:B|
00002050  43 43 77 61 69 74 3a 4c  44 41 23 31 34 3a 4c 44  |CCwait:LDA#14:LD|
00002060  58 23 34 3a 4c 44 59 23  30 3a 4a 53 52 4f 53 42  |X#4:LDY#0:JSROSB|
00002070  59 54 45 3a 4a 53 52 76  65 63 74 6f 72 73 32 3a  |YTE:JSRvectors2:|
00002080  4a 53 52 76 61 72 73 3a  4a 4d 50 20 42 41 43 4b  |JSRvars:JMP BACK|
00002090  2d 28 6f 73 62 79 74 65  2d 62 61 6e 6b 31 2d 31  |-(osbyte-bank1-1|
000020a0  29 0d 01 76 8e 20 2e 73  6c 6f 77 20 4c 44 41 23  |)..v. .slow LDA#|
000020b0  26 38 31 3a 4c 44 58 23  28 a4 69 6e 6b 65 79 28  |&81:LDX#(.inkey(|
000020c0  53 6c 6f 77 4b 65 79 24  29 29 3a 4c 44 59 23 26  |SlowKey$)):LDY#&|
000020d0  46 46 3a 4a 53 52 4f 53  42 59 54 45 3a 42 43 43  |FF:JSROSBYTE:BCC|
000020e0  66 61 73 74 3a 4c 44 58  23 26 46 45 3a 4c 44 59  |fast:LDX#&FE:LDY|
000020f0  23 26 46 46 3a 4a 53 52  4f 53 42 59 54 45 3a 42  |#&FF:JSROSBYTE:B|
00002100  43 43 66 61 73 74 3a 49  4e 43 64 65 6c 61 79 3a  |CCfast:INCdelay:|
00002110  4c 44 58 64 65 6c 61 79  3a 43 50 58 23 31 3a 42  |LDXdelay:CPX#1:B|
00002120  4e 45 66 61 73 74 3a 44  45 43 64 65 6c 61 79 0d  |NEfast:DECdelay.|
00002130  01 77 80 20 2e 66 61 73  74 20 4c 44 58 23 28 a4  |.w. .fast LDX#(.|
00002140  69 6e 6b 65 79 28 46 61  73 74 4b 65 79 24 29 29  |inkey(FastKey$))|
00002150  3a 4c 44 59 23 26 46 46  3a 4a 53 52 4f 53 42 59  |:LDY#&FF:JSROSBY|
00002160  54 45 3a 42 43 43 64 65  6c 6c 6f 6f 70 3a 4c 44  |TE:BCCdelloop:LD|
00002170  58 23 26 46 45 3a 4c 44  59 23 26 46 46 3a 4a 53  |X#&FE:LDY#&FF:JS|
00002180  52 4f 53 42 59 54 45 3a  42 43 43 64 65 6c 6c 6f  |ROSBYTE:BCCdello|
00002190  6f 70 3a 44 45 43 64 65  6c 61 79 3a 42 4e 45 64  |op:DECdelay:BNEd|
000021a0  65 6c 6c 6f 6f 70 3a 49  4e 43 64 65 6c 61 79 0d  |elloop:INCdelay.|
000021b0  01 78 6a 20 2e 64 65 6c  6c 6f 6f 70 20 4c 44 41  |.xj .delloop LDA|
000021c0  64 65 6c 61 79 3a 53 54  41 26 37 30 3a 2e 64 65  |delay:STA&70:.de|
000021d0  6c 31 20 44 45 43 26 37  30 3a 42 45 51 64 65 6c  |l1 DEC&70:BEQdel|
000021e0  65 6e 64 3a 4c 44 41 23  30 3a 53 54 41 26 37 31  |end:LDA#0:STA&71|
000021f0  3a 2e 64 65 6c 32 20 44  45 43 26 37 31 3a 42 4e  |:.del2 DEC&71:BN|
00002200  45 64 65 6c 32 3a 4a 4d  50 64 65 6c 31 3a 2e 64  |Edel2:JMPdel1:.d|
00002210  65 6c 65 6e 64 20 52 54  53 0d 01 7a a4 20 2e 70  |elend RTS..z. .p|
00002220  61 75 73 65 20 4c 44 41  23 26 38 31 3a 4c 44 58  |ause LDA#&81:LDX|
00002230  23 28 a4 69 6e 6b 65 79  28 50 61 75 73 65 4b 65  |#(.inkey(PauseKe|
00002240  79 24 29 29 3a 4c 44 59  23 26 46 46 3a 4a 53 52  |y$)):LDY#&FF:JSR|
00002250  4f 53 42 59 54 45 3a 4c  44 41 23 30 3a 42 43 43  |OSBYTE:LDA#0:BCC|
00002260  70 61 75 73 65 72 65 74  3a 4c 44 41 23 26 38 31  |pauseret:LDA#&81|
00002270  3a 4c 44 58 23 26 46 45  3a 4c 44 59 23 26 46 46  |:LDX#&FE:LDY#&FF|
00002280  3a 4a 53 52 4f 53 42 59  54 45 3a 4c 44 41 23 30  |:JSROSBYTE:LDA#0|
00002290  3a 42 43 43 70 61 75 73  65 72 65 74 3a 4c 44 41  |:BCCpauseret:LDA|
000022a0  23 31 3a 2e 70 61 75 73  65 72 65 74 20 53 54 41  |#1:.pauseret STA|
000022b0  70 61 75 73 65 66 6c 61  67 3a 52 54 53 0d 01 7b  |pauseflag:RTS..{|
000022c0  af 20 2e 70 61 75 73 65  65 6e 64 20 4c 44 41 70  |. .pauseend LDAp|
000022d0  61 75 73 65 66 6c 61 67  3a 42 45 51 75 6e 70 61  |auseflag:BEQunpa|
000022e0  75 73 65 3a 4c 44 41 23  26 38 31 3a 4c 44 58 23  |use:LDA#&81:LDX#|
000022f0  28 a4 69 6e 6b 65 79 28  43 6f 6e 74 4b 65 79 24  |(.inkey(ContKey$|
00002300  29 29 3a 4c 44 59 23 26  46 46 3a 4a 53 52 4f 53  |)):LDY#&FF:JSROS|
00002310  42 59 54 45 3a 42 43 43  73 74 61 79 70 61 75 73  |BYTE:BCCstaypaus|
00002320  65 3a 4c 44 41 23 26 38  31 3a 4c 44 58 23 26 46  |e:LDA#&81:LDX#&F|
00002330  45 3a 4c 44 59 23 26 46  46 3a 4a 53 52 4f 53 42  |E:LDY#&FF:JSROSB|
00002340  59 54 45 3a 42 43 43 73  74 61 79 70 61 75 73 65  |YTE:BCCstaypause|
00002350  3a 2e 75 6e 70 61 75 73  65 20 53 45 43 3a 2e 73  |:.unpause SEC:.s|
00002360  74 61 79 70 61 75 73 65  20 52 54 53 0d 01 7c e6  |taypause RTS..|.|
00002370  20 2e 6e 6f 74 66 6f 75  6e 64 20 45 51 55 53 22  | .notfound EQUS"|
00002380  4e 6f 74 20 66 6f 75 6e  64 22 3a 45 51 55 42 31  |Not found":EQUB1|
00002390  33 3a 2e 6e 6f 6d 6f 72  65 20 45 51 55 53 22 4e  |3:.nomore EQUS"N|
000023a0  6f 20 6d 6f 72 65 20 66  69 6c 65 6e 61 6d 65 73  |o more filenames|
000023b0  22 3a 45 51 55 42 31 33  3a 2e 6e 61 6d 65 4c 4f  |":EQUB13:.nameLO|
000023c0  20 45 51 55 42 6e 61 6d  65 73 20 83 32 35 36 3a  | EQUBnames .256:|
000023d0  2e 6e 61 6d 65 48 49 20  45 51 55 42 6e 61 6d 65  |.nameHI EQUBname|
000023e0  73 20 81 32 35 36 3a 2e  65 6e 64 61 64 64 20 45  |s .256:.endadd E|
000023f0  51 55 42 30 3a 2e 6f 73  66 69 6c 65 4c 4f 20 45  |QUB0:.osfileLO E|
00002400  51 55 42 30 3a 2e 6f 73  66 69 6c 65 48 49 20 45  |QUB0:.osfileHI E|
00002410  51 55 42 30 3a 2e 6f 73  66 73 63 4c 4f 20 45 51  |QUB0:.osfscLO EQ|
00002420  55 42 30 3a 2e 6f 73 66  73 63 48 49 20 45 51 55  |UB0:.osfscHI EQU|
00002430  42 30 3a 2e 6f 73 62 79  74 65 4c 4f 20 45 51 55  |B0:.osbyteLO EQU|
00002440  42 30 3a 2e 6f 73 62 79  74 65 48 49 20 45 51 55  |B0:.osbyteHI EQU|
00002450  42 30 0d 01 7e 64 20 2e  65 76 65 6e 74 4c 4f 20  |B0..~d .eventLO |
00002460  45 51 55 42 30 3a 2e 65  76 65 6e 74 48 49 20 45  |EQUB0:.eventHI E|
00002470  51 55 42 30 3a 2e 69 6e  74 65 72 4c 4f 20 45 51  |QUB0:.interLO EQ|
00002480  55 42 30 3a 2e 69 6e 74  65 72 48 49 20 45 51 55  |UB0:.interHI EQU|
00002490  42 30 3a 2e 69 6e 74 65  72 6e 65 77 4c 4f 20 45  |B0:.internewLO E|
000024a0  51 55 42 30 3a 2e 69 6e  74 65 72 6e 65 77 48 49  |QUB0:.internewHI|
000024b0  20 45 51 55 42 30 0d 01  81 71 20 2e 74 65 6d 70  | EQUB0...q .temp|
000024c0  73 74 6f 72 65 20 45 51  55 44 30 3a 45 51 55 57  |store EQUD0:EQUW|
000024d0  30 3a 2e 70 61 75 73 65  66 6c 61 67 20 45 51 55  |0:.pauseflag EQU|
000024e0  42 30 3a 2e 64 65 6c 61  79 20 45 51 55 42 31 3a  |B0:.delay EQUB1:|
000024f0  2e 6e 61 6d 65 73 3a 5d  3a 24 4f 25 3d 66 69 6c  |.names:]:$O%=fil|
00002500  65 6e 61 6d 65 73 24 3a  4f 25 3d 4f 25 2b a9 28  |enames$:O%=O%+.(|
00002510  66 69 6c 65 6e 61 6d 65  73 24 29 2b 31 3a 3f 28  |filenames$)+1:?(|
00002520  4f 25 2d 31 29 3d 30 0d  01 86 ca 20 62 61 6e 6b  |O%-1)=0.... bank|
00002530  31 3d 4f 25 3a 5b 4f 50  54 70 61 73 73 2b 34 3a  |1=O%:[OPTpass+4:|
00002540  4c 44 41 23 30 3a 53 54  41 26 46 34 3a 53 54 41  |LDA#0:STA&F4:STA|
00002550  26 46 45 30 35 3a 5d 3a  50 25 3d 4f 25 3a 5b 4f  |&FE05:]:P%=O%:[O|
00002560  50 54 70 61 73 73 2b 34  3a 52 54 53 3a 5d 3a 6f  |PTpass+4:RTS:]:o|
00002570  73 62 79 74 65 3d 4f 25  3a 50 25 3d 4f 42 72 6f  |sbyte=O%:P%=OBro|
00002580  75 74 69 6e 65 3a 5b 4f  50 54 70 61 73 73 2b 34  |utine:[OPTpass+4|
00002590  3a 43 4d 50 23 31 34 30  3a 42 45 51 74 61 70 65  |:CMP#140:BEQtape|
000025a0  3a 50 48 41 3a 4c 44 41  4f 42 72 6f 75 74 32 2b  |:PHA:LDAOBrout2+|
000025b0  38 3a 53 54 41 26 32 30  41 3a 4a 4d 50 4f 42 72  |8:STA&20A:JMPOBr|
000025c0  6f 75 74 32 3a 2e 74 61  70 65 20 52 54 53 3a 5d  |out2:.tape RTS:]|
000025d0  3a 6f 73 62 79 74 65 32  3d 4f 25 3a 50 25 3d 4f  |:osbyte2=O%:P%=O|
000025e0  42 72 6f 75 74 32 3a 5b  4f 50 54 70 61 73 73 2b  |Brout2:[OPTpass+|
000025f0  34 0d 01 8b 9c 20 4c 44  41 4f 42 72 6f 75 74 32  |4.... LDAOBrout2|
00002600  2b 39 3a 53 54 41 26 32  30 42 3a 50 4c 41 3a 4a  |+9:STA&20B:PLA:J|
00002610  53 52 26 30 30 30 30 3a  4a 4d 50 4f 42 72 6f 75  |SR&0000:JMPOBrou|
00002620  74 33 3a 5d 3a 6f 73 62  79 74 65 33 3d 4f 25 3a  |t3:]:osbyte3=O%:|
00002630  50 25 3d 4f 42 72 6f 75  74 33 3a 5b 4f 50 54 70  |P%=OBrout3:[OPTp|
00002640  61 73 73 2b 34 3a 50 48  41 3a 4c 44 41 23 28 4f  |ass+4:PHA:LDA#(O|
00002650  42 72 6f 75 74 69 6e 65  20 83 32 35 36 29 3a 53  |Broutine .256):S|
00002660  54 41 26 32 30 41 3a 4c  44 41 23 28 4f 42 72 6f  |TA&20A:LDA#(OBro|
00002670  75 74 69 6e 65 20 81 32  35 36 29 3a 53 54 41 26  |utine .256):STA&|
00002680  32 30 42 3a 50 4c 41 3a  52 54 53 3a 5d 0d 01 90  |20B:PLA:RTS:]...|
00002690  b8 20 66 69 6c 65 3d 4f  25 3a 50 25 3d 4f 46 49  |. file=O%:P%=OFI|
000026a0  4c 45 3a 5b 4f 50 54 70  61 73 73 2b 34 3a 43 4c  |LE:[OPTpass+4:CL|
000026b0  43 3a 42 43 43 6f 66 3a  2e 4f 46 53 43 20 53 45  |C:BCCof:.OFSC SE|
000026c0  43 3a 2e 6f 66 20 50 48  50 3a 50 48 41 3a 5d 3a  |C:.of PHP:PHA:]:|
000026d0  62 61 6e 6b 32 3d 4f 25  3a 5b 4f 50 54 70 61 73  |bank2=O%:[OPTpas|
000026e0  73 2b 34 3a 4c 44 41 23  30 3a 53 54 41 26 46 34  |s+4:LDA#0:STA&F4|
000026f0  3a 53 54 41 26 46 45 30  35 3a 2e 65 6e 74 65 72  |:STA&FE05:.enter|
00002700  3a 5d 3a 50 25 3d 4f 25  3a 5b 4f 50 54 70 61 73  |:]:P%=O%:[OPTpas|
00002710  73 2b 34 3a 52 54 53 3a  5d 3a 66 69 6c 65 72 65  |s+4:RTS:]:filere|
00002720  74 3d 4f 25 3a 50 25 3d  42 41 43 4b 3a 5b 4f 50  |t=O%:P%=BACK:[OP|
00002730  54 70 61 73 73 2b 34 3a  50 4c 41 3a 50 4c 50 3a  |Tpass+4:PLA:PLP:|
00002740  52 54 53 3a 5d 0d 01 95  54 20 65 76 72 6f 75 74  |RTS:]...T evrout|
00002750  3d 4f 25 3a 50 25 3d 45  56 45 4e 54 3a 5b 4f 50  |=O%:P%=EVENT:[OP|
00002760  54 70 61 73 73 2b 34 3a  50 48 50 3a 50 48 41 3a  |Tpass+4:PHP:PHA:|
00002770  4c 44 41 23 30 3a 53 54  41 26 46 34 3a 53 54 41  |LDA#0:STA&F4:STA|
00002780  26 46 45 30 35 3a 2e 65  6e 74 65 72 65 76 3a 5d  |&FE05:.enterev:]|
00002790  3a 65 76 65 6e 64 3d 4f  25 0d 01 9a 06 20 ed 0d  |:evend=O%.... ..|
000027a0  01 a4 3a 20 f1 22 53 61  76 65 20 28 59 2f 4e 29  |..: ."Save (Y/N)|
000027b0  3f 22 3a 41 24 3d be 3a  e7 20 41 24 3d 22 59 22  |?":A$=.:. A$="Y"|
000027c0  20 8c 20 ff 22 53 41 56  45 20 44 4c 53 20 32 30  | . ."SAVE DLS 20|
000027d0  30 30 20 22 2b c3 7e 4f  25 0d 01 a9 06 20 e0 0d  |00 "+.~O%.... ..|
000027e0  01 ae 12 20 dd a4 69 6e  6b 65 79 28 4b 65 79 24  |... ..inkey(Key$|
000027f0  29 0d 01 b3 06 20 f7 0d  01 b8 1b 20 e3 6c 65 74  |).... ..... .let|
00002800  74 65 72 3d 31 20 b8 20  97 28 4b 65 79 24 29 2d  |ter=1 . .(Key$)-|
00002810  36 34 0d 01 c2 0c 20 f3  20 76 61 6c 75 65 0d 01  |64.... . value..|
00002820  cc 0d 20 ed 20 6c 65 74  74 65 72 0d 01 d6 0f 20  |.. . letter.... |
00002830  3d 76 61 6c 75 65 2b 32  35 36 0d 01 e0 71 20 dc  |=value+256...q .|
00002840  20 2d 36 36 2c 2d 31 30  31 2c 2d 38 33 2c 2d 35  | -66,-101,-83,-5|
00002850  31 2c 2d 33 35 2c 2d 36  38 2c 2d 38 34 2c 2d 38  |1,-35,-68,-84,-8|
00002860  35 2c 2d 33 38 2c 2d 37  30 2c 2d 37 31 2c 2d 38  |5,-38,-70,-71,-8|
00002870  37 2c 2d 31 30 32 2c 2d  38 36 2c 2d 35 35 2c 2d  |7,-102,-86,-55,-|
00002880  35 36 2c 2d 31 37 2c 2d  35 32 2c 2d 38 32 2c 2d  |56,-17,-52,-82,-|
00002890  33 36 2c 2d 35 34 2c 2d  31 30 30 2c 2d 33 34 2c  |36,-54,-100,-34,|
000028a0  2d 36 37 2c 2d 36 39 2c  2d 39 38 0d ff           |-67,-69,-98..|
000028ad
DLoadSave3.m0
DLoadSave3.m1
DLoadSave3.m2
DLoadSave3.m4
DLoadSave3.m5