Home » Personal collection » Acorn ADFS disks » Archimedes » Rhythm_Box_11B.ADF » Code/Game2A

Code/Game2A

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 » Archimedes » Rhythm_Box_11B.ADF
Filename: Code/Game2A
Read OK:
File size: 1C17 bytes
Load address: FFFFFB49
Exec address: D6F96EB8
File contents
   10osbyte=&FFF4:osword=&FFF1:oswrch=&FFEE:P%=0:O%=&5300
   20[OPT pass
   30.xch EQUB0:.ych EQUB0:.col EQUB0:.score EQUW0:.scrch EQUB0:.titstat EQUB0:.mdir EQUB0
   40.xset EQUB0:.yset EQUB0:.xscr EQUB0:.yscr EQUB0:.xpos EQUB0:.ypos EQUB0:.mfine EQUB0:.mtype EQUB0
   50.scrno EQUB0:.upvelo EQUB0:.xold EQUB0:.yold EQUB0:.fine EQUB0:.sound EQUB1:.clock EQUB0:.titcyc EQUB0:.invflag EQUB0
   60.face EQUB1:.phase EQUB0:.rghts EQUB0:.wiper EQUB0:.movstag EQUB0:.changed EQUB0:.power EQUB0:.powchange EQUB0:.objects EQUW0:.obch EQUB0:.getstat EQUB0
   70.vector EQUW0:.lastat EQUB0:.lasad EQUW0:.lasdir EQUB0:.lastep EQUB0:.xf EQUB0:.yf EQUB0:.wirep EQUW0:.wirepb EQUW0:.xmont EQUB0:.ymont EQUB0:.mflag EQUB0:.monstat EQUB0:.wiperm EQUB0
   80.scrofd EQUB0:EQUD0:.deaded EQUB0:.clearup EQUB0:.xmoo EQUB0:.ymoo EQUB0:.fnst EQUB0
   90.scrtxt EQUD0:.shoot EQUB0:.itemp EQUB0
  100.delyou LDXxmoo:LDYymoo:.mcd STXxset:STYyset
  110]:IFP%>&70THENPRINT"Code Overflow to:";P%:END
  120P%=&1000:O%=&5800:[OPT pass
  130LDY#&80:LDA#&30:.zerolop STA&1FFF,Y:DEY:BNEzerolop:LDA#&FF:STAscrtxt+3:SEI:LDA&204:STAvector:LDA&205:STAvector+1:LDA#(irq MOD 256):STA&204:LDA#(irq DIV 256):STA&205:CLI
  140.prog JSRtitle:JSRscroff:LDA#1
  150STApowchange:STAobch:STAscrch:LDY#255:STYpower:STYobjects:STYobjects+1:INY:STYscore:STYscore+1
  160.game LDA#0:STAxscr:STAyscr:LDA#2:STAxpos:STAypos:LDX#&20:.clrpot STXclrpnt+2:STXclrplp+2:.clrplp LDA&20FE:AND#&7F:.clrpnt STA&20FE:INX:CPX#&80:BNEclrpot
  170.newscr JSRscreen:.oldscr JSRquitch:JSRsboard:LDA#0:STAmovstag:LDAfine:BEQmoveslop:STAchanged:LDAwiper:PHA:JSRmainclear:PLA:STAwiper:.moveslop LDAchanged:BEQnodyou:JSRdispyou:.nodyou JSRdispmon:JSRwait:INCmovstag
  180LDAmovstag:CMP#3:BNEmoveslop:LDAmfine:PHA:LDAfine:STAfnst:LDA#0:STAmovstag
  190STAchanged:STAfine:STAmfine:JSRdispyou:JSRdispmon:PLA:STAmfine:JSRwait:JSRmainclear
  200.finend JSRlaser:JSRdeadedch:JSRmonpro:JSRgetoput:LDAupvelo:BEQfallh:JSRjumpup:LDAxpos:STAxset:LDAypos:STAyset:JSRgetblock:CMP#10:BNEnofall:BEQwatt
  210.fallh LDAxpos:STAxset:LDAypos:STAyset:JSRgetblock:CMP#8:BEQwatt:CMP#14:BEQladder:.laddown LDAypos:CMP#9:BEQdownscr:INCyset:JSRgetblock:JSRdoorch:BCSfalldown:AND#&30:BEQfalldown:BNEnofall
  220.downscr LDA#0:STAypos:INCyscr:JMPnewscr:.watt JMPzap:.ladder JMP ladderb
  230.falldown LDA#5:STAfine:INCypos:.nofall LDA#((oldscr-1) DIV 256):PHA:LDA#((oldscr-1) MOD 256):PHA
  240.moveyou LDX#&B6:JSRkeybyte:BCCnjump:JSRjump:.njump LDX#&9E:JSRkeybyte:BCSleft:.nleft LDX#&BD:JSRkeybyte:BCCnright:BCSright
  250.left LDA#0:STAface:STArghts:LDAxpos:BEQleftscr:SEC:SBC#1:STAxset:LDAypos:STAyset:JSRgetblock:JSRdoorch:BCSnoupl:AND#&30:CMP#&10:BEQnomove:CMP#&20:BEQnomove:CMP#&30:BNEnoupl:DECypos:DECxpos:LDA#3:STAfine:.nright RTS
  260.noupl DECxpos:LDA#1:STAfine:.nomove RTS:.right LDA#0:STArghts:LDA#1:STAface:LDAxpos:CMP#9:BEQrightscr:CLC:ADC#1:STAxset:LDAypos:STAyset:JSRgetblock:JSRdoorch:BCSnoupr:AND#&30:CMP#&10:BEQnomover:CMP#&20:BEQnomover:CMP#&30:BNEnoupr
  270DECypos:LDA#4:.nouprs INCxpos:STAfine:.nosnd RTS:.noupr LDA#2:JMPnouprs:.nomover LDA#1:STArghts:STAchanged:RTS:.leftscr LDA#9:STAxpos:DECxscr:.scrpass JMPscreen:.rightscr LDA#0:STAxpos:INCxscr:BNEscrpass
  280.jump LDAypos:CMP#9:BEQnosnd:CLC:ADC#1:STAyset:LDAxpos:STAxset:JSRgetblock:AND#&30:BEQnosnd:LDA#3:STAupvelo:LDAsound:BEQnosnd:LDA#7:LDX#(jumpn MOD 256):LDY#(jumpn DIV 256):JMPosword
  290.dispshr SEI:LDAwiper:BEQnowipe:LDY#0:.wiplop LDA(wirep),Y:STA(&78),Y:INY:CPY#32:BNEwiplop:LDA&78:CLC:ADC#&80:STA&78:LDA&79:ADC#2:STA&79:LDY#0:.wipeb LDA(wirepb),Y:STA(&78),Y:INY:CPY#32:BNEwipeb
  300.nowipe LDA#1:STAwiper:LDAxpos:ASL A:ASL A:ASL A:ASL A:ASL A:ASL A:STA&70:LDAxpos:LSR A:LSR A:CLC:ADC#&35:STA&71:LDAypos:CLC:ADC&71:STA&71:LDAypos:ASL A:ASL A:CLC:ADC&71:STA&71:LDY#0
  310STY&72:LDA#&1A:STA&73:LDXmovstag:LDAsequen,X:CLC:ADCfine:TAX:LDA&70:CLC:ADClowad,X:STA&70:LDA&71:ADChighad,X:STA&71:LDAmflag:BNEmonsadr:CPX#0:BEQnophase:LDAmovstag:CMP#2:BEQnophase:LDXphase:INX
  320.addph LDA&72:CLC:ADC#&80:STA&72:LDA&73:ADC#0:STA&73:DEX:BNEaddph:LDAphase:EOR#1:STAphase:JMPnophase:.monsadr LDAmonstat:EOR#1:STAmonstat:ASL A:ASL A:ASL A:ASL A:ASL A:CLC:ADC#&80:STA&72:LDA#&1B:STA&73:LDA#1:STAwiperm
  330LDAmtype:CMP#2:BNEnotyptr:LDA&72:CLC:ADC#&80:STA&72:LDA&73:ADC#0:STA&73:.notyptr JMPleface
  340.nophase LDArghts:BEQnotrght:LDA&70:CLC:ADC#32:STA&70:LDA&71:ADC#0:STA&71:.notrght LDAface:BNEleface:LDA&72:CLC:ADC#&20:STA&72:.leface LDA&70:STA&78:LDA&71:STA&79
  350.ladisp LDA(&70),Y:STA(wirep),Y:EOR(&72),Y:STA(&70),Y:INY:CPY#32:BNEladisp:LDA&72:CLC:ADC#&40:STA&72:LDA&73:ADC#0:STA&73:LDA&70:CLC:ADC#&80:STA&70:LDA&71:ADC#2:STA&71:LDY#0
  360.lbdisp LDA(&70),Y:STA(wirepb),Y:EOR(&72),Y:STA(&70),Y:INY:CPY#32:BNElbdisp:CLI:RTS
  370.wait LDAclock:CMP&80:BNEwait:LDAclock:ADC#5:STA&80:RTS
  380.jumpup DECupvelo:LDAypos:BEQupscr:SEC:SBC#1:STAyset:LDAxpos:STAxset:JSRgetblock:JSRdoorch:BCSupone:AND#&30:BEQupone:LDA#0:STAupvelo:RTS:.upone LDA#6:STAfine:DECypos:RTS:.upscr DECyscr:LDA#9:STAypos:JMPscreen
  390.screen LDA#0:STAclearup:STAlastat:STAinvflag:JSRscroff:LDAxpos:STAxold:LDAypos:STAyold:JSRpoint:LDA#&FF:STAyset:.ylop LDA#&FF:STAxset:INCyset
  400.xlop INCxset:JSRblockon:LDAxset:CMP#9:BEQnexty:JMPxlop:.nexty LDAyset:CMP#9:BNEylop:JSRsboard:JSRnamscr
  410.scron LDA#17:STAscrofd:.scronlop LDA#&C:LDX#(scrofd MOD256):LDY#(scrofd DIV256):JSRosword:DECscrofd:LDAscrofd:AND#7:STAscrofd+1:LDAscrofd:BNEscronlop:LDAclock:CLC:ADC#4:STA&80:LDA#0:STAwiper:STAwiperm:LDA#1:STAchanged:JMPmonset
  420.ladderb LDX#&97:JSRkeybyte:BCSfallset:LDX#&B6:JSRkeybyte:BCCstable:LDA#1:STAupvelo:JSRjumpup:JMPoldscr:.stable JMPnofall:.fallset JMPladdown
  430.blockon JSRobjcheck:JSRgetblock:LDAxset:ASL A:ASL A:ASL A:ASL A:ASL A:ASL A:STA&70:LDAxset:LSR A:LSR A:CLC:ADC#&35:STA&71:LDAyset:CLC:ADC&71:STA&71:LDAyset:ASL A:ASL A:CLC:ADC&71:STA&71
  440LDA&72:LSR A:LSR A:CLC:ADC#&20:STA&73:LDA&72:CMP#30:BEQdoorcol:LSR A:ROR A:ROR A:AND#&C0:STA&72:LDY#0
  450.transtop LDA(&72),Y:AND#&3F:STA&74:LDA(&70),Y:AND#&C0:CLC:ADC&74:STA(&70),Y:INY:CPY#&40:BNEtranstop:LDY#0:LDA&72:CLC:ADC#&40:STA&72:LDA&70:CLC:ADC#&80:STA&70:LDA&71:ADC#2:STA&71
  460.transbot LDA(&72),Y:AND#&3F:STA&74:LDA(&70),Y:AND#&C0:CLC:ADC&74:STA(&70),Y:INY:CPY#&40:BNEtransbot:RTS:.doorcol JMPlocktype
  470.getblock LDA#&20:CLC:ADCxscr:STA&71:LDAyscr:ASL A:ASL A:ASL A:ASL A:CLC:ADC&71:STAscrno
  480STA&71:LDAyset:STA&70:ASL A:ASL A:ASL A:PHA:CLC:ADC&70:STA&70:PLA:ASL A:CLC:ADC&70:STA&70:LDYxset:LDAxdata,Y:TAY:LDA(&70),Y:ROL A:ROL A:ROL A:AND#3:STA&72:INY:LDA(&70),Y:LSR A:LSR A:LSR A:LSR A:AND#12
  490CLC:ADC&72:STA&72:LDAxset:LSR A:TAY:LDAhbdat,Y:TAY:LDA(&70),Y:STA&73:LDAxset:AND#1:BNEbit2:LDA&73:ASL A:ROL A:ROL A:JMPfbgot
  500.bit2 LDA&73:ASL A:ROL A:.fbgot AND#1:ASL A:ASL A:ASL A:ASL A:CLC:ADC&72:ASL A:STA&72:RTS
  510.putch ASL A:ASL A:ASL A:TAX:LDA#0:STA&70:LDA#&30:STA&71:LDYxch
  520.xlopc BEQnoxch:LDA&70:CLC:ADC#&20:STA&70:LDA&71:ADC#0:STA&71:DEY:JMPxlopc
  530.noxch LDYych:.ylopc BEQnoych:LDA&70:CLC:ADC#&80:STA&70:LDA&71:ADC#2:STA&71:DEY:JMPylopc
  540.noych LDY#0:.sline LDA&C00,X:.linelop PHA:ASL A:ROL A:ROL A:AND#3:BEQblanch:STAitemp:LDA#0
  550.colch CLC:ADCcol:DECitemp:BNEcolch:.blanch STAitemp:LDA(&70),Y:AND#&C0:ORAitemp:EORinvflag:STA(&70),Y:TYA:CLC:ADC#8:TAY:CMP#&20:BCSnewlin
  560PLA:ASL A:ASL A:JMPlinelop:.newlin AND#7:TAY:PLA:INY:INX:CPY#8:BNEsline:RTS
  570.keybyte LDA#&81:LDY#&FF:JMPosbyte
  580]:ENDPROC

8osbyte=&FFF4:osword=&FFF1:oswrch=&FFEE:P%=0:O%=&5300

[OPT pass
Y.xch EQUB0:.ych EQUB0:.col EQUB0:.score EQUW0:.scrch EQUB0:.titstat EQUB0:.mdir EQUB0
(e.xset EQUB0:.yset EQUB0:.xscr EQUB0:.yscr EQUB0:.xpos EQUB0:.ypos EQUB0:.mfine EQUB0:.mtype EQUB0
2y.scrno EQUB0:.upvelo EQUB0:.xold EQUB0:.yold EQUB0:.fine EQUB0:.sound EQUB1:.clock EQUB0:.titcyc EQUB0:.invflag EQUB0
<�.face EQUB1:.phase EQUB0:.rghts EQUB0:.wiper EQUB0:.movstag EQUB0:.changed EQUB0:.power EQUB0:.powchange EQUB0:.objects EQUW0:.obch EQUB0:.getstat EQUB0
F�.vector EQUW0:.lastat EQUB0:.lasad EQUW0:.lasdir EQUB0:.lastep EQUB0:.xf EQUB0:.yf EQUB0:.wirep EQUW0:.wirepb EQUW0:.xmont EQUB0:.ymont EQUB0:.mflag EQUB0:.monstat EQUB0:.wiperm EQUB0
PX.scrofd EQUB0:EQUD0:.deaded EQUB0:.clearup EQUB0:.xmoo EQUB0:.ymoo EQUB0:.fnst EQUB0
Z+.scrtxt EQUD0:.shoot EQUB0:.itemp EQUB0
d0.delyou LDXxmoo:LDYymoo:.mcd STXxset:STYyset
n']:�P%>&70��"Code Overflow to:";P%:�
xP%=&1000:O%=&5800:[OPT pass
��LDY#&80:LDA#&30:.zerolop STA&1FFF,Y:DEY:BNEzerolop:LDA#&FF:STAscrtxt+3:SEI:LDA&204:STAvector:LDA&205:STAvector+1:LDA#(irq � 256):STA&204:LDA#(irq � 256):STA&205:CLI
�".prog JSRtitle:JSRscroff:LDA#1
�bSTApowchange:STAobch:STAscrch:LDY#255:STYpower:STYobjects:STYobjects+1:INY:STYscore:STYscore+1
��.game LDA#0:STAxscr:STAyscr:LDA#2:STAxpos:STAypos:LDX#&20:.clrpot STXclrpnt+2:STXclrplp+2:.clrplp LDA&20FE:�#&7F:.clrpnt STA&20FE:INX:CPX#&80:BNEclrpot
��.newscr JSRscreen:.oldscr JSRquitch:JSRsboard:LDA#0:STAmovstag:LDAfine:BEQmoveslop:STAchanged:LDAwiper:PHA:JSRmainclear:PLA:STAwiper:.moveslop LDAchanged:BEQnodyou:JSRdispyou:.nodyou JSRdispmon:JSRwait:INCmovstag
�NLDAmovstag:CMP#3:BNEmoveslop:LDAmfine:PHA:LDAfine:STAfnst:LDA#0:STAmovstag
�WSTAchanged:STAfine:STAmfine:JSRdispyou:JSRdispmon:PLA:STAmfine:JSRwait:JSRmainclear
ȗ.finend JSRlaser:JSRdeadedch:JSRmonpro:JSRgetoput:LDAupvelo:BEQfallh:JSRjumpup:LDAxpos:STAxset:LDAypos:STAyset:JSRgetblock:CMP#10:BNEnofall:BEQwatt
ҽ.fallh LDAxpos:STAxset:LDAypos:STAyset:JSRgetblock:CMP#8:BEQwatt:CMP#14:BEQladder:.laddown LDAypos:CMP#9:BEQdownscr:INCyset:JSRgetblock:JSRdoorch:BCSfalldown:�#&30:BEQfalldown:BNEnofall
�M.downscr LDA#0:STAypos:INCyscr:JMPnewscr:.watt JMPzap:.ladder JMP ladderb
�a.falldown LDA#5:STAfine:INCypos:.nofall LDA#((oldscr-1) � 256):PHA:LDA#((oldscr-1) � 256):PHA
�.moveyou LDX#&B6:JSRkeybyte:BCCnjump:JSRjump:.njump LDX#&9E:JSRkeybyte:BCSleft:.nleft LDX#&BD:JSRkeybyte:BCCnright:BCSright
��.left LDA#0:STAface:STArghts:LDAxpos:BEQleftscr:SEC:SBC#1:STAxset:LDAypos:STAyset:JSRgetblock:JSRdoorch:BCSnoupl:�#&30:CMP#&10:BEQnomove:CMP#&20:BEQnomove:CMP#&30:BNEnoupl:DECypos:DECxpos:LDA#3:STAfine:.nright RTS
�.noupl DECxpos:LDA#1:STAfine:.nomove RTS:.right LDA#0:STArghts:LDA#1:STAface:LDAxpos:CMP#9:BEQrightscr:CLC:ADC#1:STAxset:LDAypos:STAyset:JSRgetblock:JSRdoorch:BCSnoupr:�#&30:CMP#&10:BEQnomover:CMP#&20:BEQnomover:CMP#&30:BNEnoupr
�DECypos:LDA#4:.nouprs INCxpos:STAfine:.nosnd RTS:.noupr LDA#2:JMPnouprs:.nomover LDA#1:STArghts:STAchanged:RTS:.leftscr LDA#9:STAxpos:DECxscr:.scrpass JMPscreen:.rightscr LDA#0:STAxpos:INCxscr:BNEscrpass
�.jump LDAypos:CMP#9:BEQnosnd:CLC:ADC#1:STAyset:LDAxpos:STAxset:JSRgetblock:�#&30:BEQnosnd:LDA#3:STAupvelo:LDAsound:BEQnosnd:LDA#7:LDX#(jumpn � 256):LDY#(jumpn � 256):JMPosword
"�.dispshr SEI:LDAwiper:BEQnowipe:LDY#0:.wiplop LDA(wirep),Y:STA(&78),Y:INY:CPY#32:BNEwiplop:LDA&78:CLC:ADC#&80:STA&78:LDA&79:ADC#2:STA&79:LDY#0:.wipeb LDA(wirepb),Y:STA(&78),Y:INY:CPY#32:BNEwipeb
,�.nowipe LDA#1:STAwiper:LDAxpos:ASL A:ASL A:ASL A:ASL A:ASL A:ASL A:STA&70:LDAxpos:LSR A:LSR A:CLC:ADC#&35:STA&71:LDAypos:CLC:ADC&71:STA&71:LDAypos:ASL A:ASL A:CLC:ADC&71:STA&71:LDY#0
6�STY&72:LDA#&1A:STA&73:LDXmovstag:LDAsequen,X:CLC:ADCfine:TAX:LDA&70:CLC:ADClowad,X:STA&70:LDA&71:ADChighad,X:STA&71:LDAmflag:BNEmonsadr:CPX#0:BEQnophase:LDAmovstag:CMP#2:BEQnophase:LDXphase:INX
@�.addph LDA&72:CLC:ADC#&80:STA&72:LDA&73:ADC#0:STA&73:DEX:BNEaddph:LDAphase:�#1:STAphase:JMPnophase:.monsadr LDAmonstat:�#1:STAmonstat:ASL A:ASL A:ASL A:ASL A:ASL A:CLC:ADC#&80:STA&72:LDA#&1B:STA&73:LDA#1:STAwiperm
J^LDAmtype:CMP#2:BNEnotyptr:LDA&72:CLC:ADC#&80:STA&72:LDA&73:ADC#0:STA&73:.notyptr JMPleface
T�.nophase LDArghts:BEQnotrght:LDA&70:CLC:ADC#32:STA&70:LDA&71:ADC#0:STA&71:.notrght LDAface:BNEleface:LDA&72:CLC:ADC#&20:STA&72:.leface LDA&70:STA&78:LDA&71:STA&79
^�.ladisp LDA(&70),Y:STA(wirep),Y:�(&72),Y:STA(&70),Y:INY:CPY#32:BNEladisp:LDA&72:CLC:ADC#&40:STA&72:LDA&73:ADC#0:STA&73:LDA&70:CLC:ADC#&80:STA&70:LDA&71:ADC#2:STA&71:LDY#0
hU.lbdisp LDA(&70),Y:STA(wirepb),Y:�(&72),Y:STA(&70),Y:INY:CPY#32:BNElbdisp:CLI:RTS
r;.wait LDAclock:CMP&80:BNEwait:LDAclock:ADC#5:STA&80:RTS
|�.jumpup DECupvelo:LDAypos:BEQupscr:SEC:SBC#1:STAyset:LDAxpos:STAxset:JSRgetblock:JSRdoorch:BCSupone:�#&30:BEQupone:LDA#0:STAupvelo:RTS:.upone LDA#6:STAfine:DECypos:RTS:.upscr DECyscr:LDA#9:STAypos:JMPscreen
��.screen LDA#0:STAclearup:STAlastat:STAinvflag:JSRscroff:LDAxpos:STAxold:LDAypos:STAyold:JSRpoint:LDA#&FF:STAyset:.ylop LDA#&FF:STAxset:INCyset
�l.xlop INCxset:JSRblockon:LDAxset:CMP#9:BEQnexty:JMPxlop:.nexty LDAyset:CMP#9:BNEylop:JSRsboard:JSRnamscr
��.scron LDA#17:STAscrofd:.scronlop LDA#&C:LDX#(scrofd �256):LDY#(scrofd �256):JSRosword:DECscrofd:LDAscrofd:�#7:STAscrofd+1:LDAscrofd:BNEscronlop:LDAclock:CLC:ADC#4:STA&80:LDA#0:STAwiper:STAwiperm:LDA#1:STAchanged:JMPmonset
��.ladderb LDX#&97:JSRkeybyte:BCSfallset:LDX#&B6:JSRkeybyte:BCCstable:LDA#1:STAupvelo:JSRjumpup:JMPoldscr:.stable JMPnofall:.fallset JMPladdown
��.blockon JSRobjcheck:JSRgetblock:LDAxset:ASL A:ASL A:ASL A:ASL A:ASL A:ASL A:STA&70:LDAxset:LSR A:LSR A:CLC:ADC#&35:STA&71:LDAyset:CLC:ADC&71:STA&71:LDAyset:ASL A:ASL A:CLC:ADC&71:STA&71
�gLDA&72:LSR A:LSR A:CLC:ADC#&20:STA&73:LDA&72:CMP#30:BEQdoorcol:LSR A:ROR A:ROR A:�#&C0:STA&72:LDY#0
².transtop LDA(&72),Y:�#&3F:STA&74:LDA(&70),Y:�#&C0:CLC:ADC&74:STA(&70),Y:INY:CPY#&40:BNEtranstop:LDY#0:LDA&72:CLC:ADC#&40:STA&72:LDA&70:CLC:ADC#&80:STA&70:LDA&71:ADC#2:STA&71
�}.transbot LDA(&72),Y:�#&3F:STA&74:LDA(&70),Y:�#&C0:CLC:ADC&74:STA(&70),Y:INY:CPY#&40:BNEtransbot:RTS:.doorcol JMPlocktype
�\.getblock LDA#&20:CLC:ADCxscr:STA&71:LDAyscr:ASL A:ASL A:ASL A:ASL A:CLC:ADC&71:STAscrno
��STA&71:LDAyset:STA&70:ASL A:ASL A:ASL A:PHA:CLC:ADC&70:STA&70:PLA:ASL A:CLC:ADC&70:STA&70:LDYxset:LDAxdata,Y:TAY:LDA(&70),Y:ROL A:ROL A:ROL A:�#3:STA&72:INY:LDA(&70),Y:LSR A:LSR A:LSR A:LSR A:�#12
�~CLC:ADC&72:STA&72:LDAxset:LSR A:TAY:LDAhbdat,Y:TAY:LDA(&70),Y:STA&73:LDAxset:�#1:BNEbit2:LDA&73:ASL A:ROL A:ROL A:JMPfbgot
�[.bit2 LDA&73:ASL A:ROL A:.fbgot �#1:ASL A:ASL A:ASL A:ASL A:CLC:ADC&72:ASL A:STA&72:RTS
�C.putch ASL A:ASL A:ASL A:TAX:LDA#0:STA&70:LDA#&30:STA&71:LDYxch
N.xlopc BEQnoxch:LDA&70:CLC:ADC#&20:STA&70:LDA&71:ADC#0:STA&71:DEY:JMPxlopc
\.noxch LDYych:.ylopc BEQnoych:LDA&70:CLC:ADC#&80:STA&70:LDA&71:ADC#2:STA&71:DEY:JMPylopc
].noych LDY#0:.sline LDA&C00,X:.linelop PHA:ASL A:ROL A:ROL A:�#3:BEQblanch:STAitemp:LDA#0
&�.colch CLC:ADCcol:DECitemp:BNEcolch:.blanch STAitemp:LDA(&70),Y:�#&C0:�Aitemp:�invflag:STA(&70),Y:TYA:CLC:ADC#8:TAY:CMP#&20:BCSnewlin
0MPLA:ASL A:ASL A:JMPlinelop:.newlin �#7:TAY:PLA:INY:INX:CPY#8:BNEsline:RTS
:&.keybyte LDA#&81:LDY#&FF:JMPosbyte
D]:�
�
00000000  0d 00 0a 38 6f 73 62 79  74 65 3d 26 46 46 46 34  |...8osbyte=&FFF4|
00000010  3a 6f 73 77 6f 72 64 3d  26 46 46 46 31 3a 6f 73  |:osword=&FFF1:os|
00000020  77 72 63 68 3d 26 46 46  45 45 3a 50 25 3d 30 3a  |wrch=&FFEE:P%=0:|
00000030  4f 25 3d 26 35 33 30 30  0d 00 14 0d 5b 4f 50 54  |O%=&5300....[OPT|
00000040  20 70 61 73 73 0d 00 1e  59 2e 78 63 68 20 45 51  | pass...Y.xch EQ|
00000050  55 42 30 3a 2e 79 63 68  20 45 51 55 42 30 3a 2e  |UB0:.ych EQUB0:.|
00000060  63 6f 6c 20 45 51 55 42  30 3a 2e 73 63 6f 72 65  |col EQUB0:.score|
00000070  20 45 51 55 57 30 3a 2e  73 63 72 63 68 20 45 51  | EQUW0:.scrch EQ|
00000080  55 42 30 3a 2e 74 69 74  73 74 61 74 20 45 51 55  |UB0:.titstat EQU|
00000090  42 30 3a 2e 6d 64 69 72  20 45 51 55 42 30 0d 00  |B0:.mdir EQUB0..|
000000a0  28 65 2e 78 73 65 74 20  45 51 55 42 30 3a 2e 79  |(e.xset EQUB0:.y|
000000b0  73 65 74 20 45 51 55 42  30 3a 2e 78 73 63 72 20  |set EQUB0:.xscr |
000000c0  45 51 55 42 30 3a 2e 79  73 63 72 20 45 51 55 42  |EQUB0:.yscr EQUB|
000000d0  30 3a 2e 78 70 6f 73 20  45 51 55 42 30 3a 2e 79  |0:.xpos EQUB0:.y|
000000e0  70 6f 73 20 45 51 55 42  30 3a 2e 6d 66 69 6e 65  |pos EQUB0:.mfine|
000000f0  20 45 51 55 42 30 3a 2e  6d 74 79 70 65 20 45 51  | EQUB0:.mtype EQ|
00000100  55 42 30 0d 00 32 79 2e  73 63 72 6e 6f 20 45 51  |UB0..2y.scrno EQ|
00000110  55 42 30 3a 2e 75 70 76  65 6c 6f 20 45 51 55 42  |UB0:.upvelo EQUB|
00000120  30 3a 2e 78 6f 6c 64 20  45 51 55 42 30 3a 2e 79  |0:.xold EQUB0:.y|
00000130  6f 6c 64 20 45 51 55 42  30 3a 2e 66 69 6e 65 20  |old EQUB0:.fine |
00000140  45 51 55 42 30 3a 2e 73  6f 75 6e 64 20 45 51 55  |EQUB0:.sound EQU|
00000150  42 31 3a 2e 63 6c 6f 63  6b 20 45 51 55 42 30 3a  |B1:.clock EQUB0:|
00000160  2e 74 69 74 63 79 63 20  45 51 55 42 30 3a 2e 69  |.titcyc EQUB0:.i|
00000170  6e 76 66 6c 61 67 20 45  51 55 42 30 0d 00 3c 9c  |nvflag EQUB0..<.|
00000180  2e 66 61 63 65 20 45 51  55 42 31 3a 2e 70 68 61  |.face EQUB1:.pha|
00000190  73 65 20 45 51 55 42 30  3a 2e 72 67 68 74 73 20  |se EQUB0:.rghts |
000001a0  45 51 55 42 30 3a 2e 77  69 70 65 72 20 45 51 55  |EQUB0:.wiper EQU|
000001b0  42 30 3a 2e 6d 6f 76 73  74 61 67 20 45 51 55 42  |B0:.movstag EQUB|
000001c0  30 3a 2e 63 68 61 6e 67  65 64 20 45 51 55 42 30  |0:.changed EQUB0|
000001d0  3a 2e 70 6f 77 65 72 20  45 51 55 42 30 3a 2e 70  |:.power EQUB0:.p|
000001e0  6f 77 63 68 61 6e 67 65  20 45 51 55 42 30 3a 2e  |owchange EQUB0:.|
000001f0  6f 62 6a 65 63 74 73 20  45 51 55 57 30 3a 2e 6f  |objects EQUW0:.o|
00000200  62 63 68 20 45 51 55 42  30 3a 2e 67 65 74 73 74  |bch EQUB0:.getst|
00000210  61 74 20 45 51 55 42 30  0d 00 46 bb 2e 76 65 63  |at EQUB0..F..vec|
00000220  74 6f 72 20 45 51 55 57  30 3a 2e 6c 61 73 74 61  |tor EQUW0:.lasta|
00000230  74 20 45 51 55 42 30 3a  2e 6c 61 73 61 64 20 45  |t EQUB0:.lasad E|
00000240  51 55 57 30 3a 2e 6c 61  73 64 69 72 20 45 51 55  |QUW0:.lasdir EQU|
00000250  42 30 3a 2e 6c 61 73 74  65 70 20 45 51 55 42 30  |B0:.lastep EQUB0|
00000260  3a 2e 78 66 20 45 51 55  42 30 3a 2e 79 66 20 45  |:.xf EQUB0:.yf E|
00000270  51 55 42 30 3a 2e 77 69  72 65 70 20 45 51 55 57  |QUB0:.wirep EQUW|
00000280  30 3a 2e 77 69 72 65 70  62 20 45 51 55 57 30 3a  |0:.wirepb EQUW0:|
00000290  2e 78 6d 6f 6e 74 20 45  51 55 42 30 3a 2e 79 6d  |.xmont EQUB0:.ym|
000002a0  6f 6e 74 20 45 51 55 42  30 3a 2e 6d 66 6c 61 67  |ont EQUB0:.mflag|
000002b0  20 45 51 55 42 30 3a 2e  6d 6f 6e 73 74 61 74 20  | EQUB0:.monstat |
000002c0  45 51 55 42 30 3a 2e 77  69 70 65 72 6d 20 45 51  |EQUB0:.wiperm EQ|
000002d0  55 42 30 0d 00 50 58 2e  73 63 72 6f 66 64 20 45  |UB0..PX.scrofd E|
000002e0  51 55 42 30 3a 45 51 55  44 30 3a 2e 64 65 61 64  |QUB0:EQUD0:.dead|
000002f0  65 64 20 45 51 55 42 30  3a 2e 63 6c 65 61 72 75  |ed EQUB0:.clearu|
00000300  70 20 45 51 55 42 30 3a  2e 78 6d 6f 6f 20 45 51  |p EQUB0:.xmoo EQ|
00000310  55 42 30 3a 2e 79 6d 6f  6f 20 45 51 55 42 30 3a  |UB0:.ymoo EQUB0:|
00000320  2e 66 6e 73 74 20 45 51  55 42 30 0d 00 5a 2b 2e  |.fnst EQUB0..Z+.|
00000330  73 63 72 74 78 74 20 45  51 55 44 30 3a 2e 73 68  |scrtxt EQUD0:.sh|
00000340  6f 6f 74 20 45 51 55 42  30 3a 2e 69 74 65 6d 70  |oot EQUB0:.itemp|
00000350  20 45 51 55 42 30 0d 00  64 30 2e 64 65 6c 79 6f  | EQUB0..d0.delyo|
00000360  75 20 4c 44 58 78 6d 6f  6f 3a 4c 44 59 79 6d 6f  |u LDXxmoo:LDYymo|
00000370  6f 3a 2e 6d 63 64 20 53  54 58 78 73 65 74 3a 53  |o:.mcd STXxset:S|
00000380  54 59 79 73 65 74 0d 00  6e 27 5d 3a e7 50 25 3e  |TYyset..n']:.P%>|
00000390  26 37 30 8c f1 22 43 6f  64 65 20 4f 76 65 72 66  |&70.."Code Overf|
000003a0  6c 6f 77 20 74 6f 3a 22  3b 50 25 3a e0 0d 00 78  |low to:";P%:...x|
000003b0  1f 50 25 3d 26 31 30 30  30 3a 4f 25 3d 26 35 38  |.P%=&1000:O%=&58|
000003c0  30 30 3a 5b 4f 50 54 20  70 61 73 73 0d 00 82 a8  |00:[OPT pass....|
000003d0  4c 44 59 23 26 38 30 3a  4c 44 41 23 26 33 30 3a  |LDY#&80:LDA#&30:|
000003e0  2e 7a 65 72 6f 6c 6f 70  20 53 54 41 26 31 46 46  |.zerolop STA&1FF|
000003f0  46 2c 59 3a 44 45 59 3a  42 4e 45 7a 65 72 6f 6c  |F,Y:DEY:BNEzerol|
00000400  6f 70 3a 4c 44 41 23 26  46 46 3a 53 54 41 73 63  |op:LDA#&FF:STAsc|
00000410  72 74 78 74 2b 33 3a 53  45 49 3a 4c 44 41 26 32  |rtxt+3:SEI:LDA&2|
00000420  30 34 3a 53 54 41 76 65  63 74 6f 72 3a 4c 44 41  |04:STAvector:LDA|
00000430  26 32 30 35 3a 53 54 41  76 65 63 74 6f 72 2b 31  |&205:STAvector+1|
00000440  3a 4c 44 41 23 28 69 72  71 20 83 20 32 35 36 29  |:LDA#(irq . 256)|
00000450  3a 53 54 41 26 32 30 34  3a 4c 44 41 23 28 69 72  |:STA&204:LDA#(ir|
00000460  71 20 81 20 32 35 36 29  3a 53 54 41 26 32 30 35  |q . 256):STA&205|
00000470  3a 43 4c 49 0d 00 8c 22  2e 70 72 6f 67 20 4a 53  |:CLI...".prog JS|
00000480  52 74 69 74 6c 65 3a 4a  53 52 73 63 72 6f 66 66  |Rtitle:JSRscroff|
00000490  3a 4c 44 41 23 31 0d 00  96 62 53 54 41 70 6f 77  |:LDA#1...bSTApow|
000004a0  63 68 61 6e 67 65 3a 53  54 41 6f 62 63 68 3a 53  |change:STAobch:S|
000004b0  54 41 73 63 72 63 68 3a  4c 44 59 23 32 35 35 3a  |TAscrch:LDY#255:|
000004c0  53 54 59 70 6f 77 65 72  3a 53 54 59 6f 62 6a 65  |STYpower:STYobje|
000004d0  63 74 73 3a 53 54 59 6f  62 6a 65 63 74 73 2b 31  |cts:STYobjects+1|
000004e0  3a 49 4e 59 3a 53 54 59  73 63 6f 72 65 3a 53 54  |:INY:STYscore:ST|
000004f0  59 73 63 6f 72 65 2b 31  0d 00 a0 9b 2e 67 61 6d  |Yscore+1.....gam|
00000500  65 20 4c 44 41 23 30 3a  53 54 41 78 73 63 72 3a  |e LDA#0:STAxscr:|
00000510  53 54 41 79 73 63 72 3a  4c 44 41 23 32 3a 53 54  |STAyscr:LDA#2:ST|
00000520  41 78 70 6f 73 3a 53 54  41 79 70 6f 73 3a 4c 44  |Axpos:STAypos:LD|
00000530  58 23 26 32 30 3a 2e 63  6c 72 70 6f 74 20 53 54  |X#&20:.clrpot ST|
00000540  58 63 6c 72 70 6e 74 2b  32 3a 53 54 58 63 6c 72  |Xclrpnt+2:STXclr|
00000550  70 6c 70 2b 32 3a 2e 63  6c 72 70 6c 70 20 4c 44  |plp+2:.clrplp LD|
00000560  41 26 32 30 46 45 3a 80  23 26 37 46 3a 2e 63 6c  |A&20FE:.#&7F:.cl|
00000570  72 70 6e 74 20 53 54 41  26 32 30 46 45 3a 49 4e  |rpnt STA&20FE:IN|
00000580  58 3a 43 50 58 23 26 38  30 3a 42 4e 45 63 6c 72  |X:CPX#&80:BNEclr|
00000590  70 6f 74 0d 00 aa d8 2e  6e 65 77 73 63 72 20 4a  |pot.....newscr J|
000005a0  53 52 73 63 72 65 65 6e  3a 2e 6f 6c 64 73 63 72  |SRscreen:.oldscr|
000005b0  20 4a 53 52 71 75 69 74  63 68 3a 4a 53 52 73 62  | JSRquitch:JSRsb|
000005c0  6f 61 72 64 3a 4c 44 41  23 30 3a 53 54 41 6d 6f  |oard:LDA#0:STAmo|
000005d0  76 73 74 61 67 3a 4c 44  41 66 69 6e 65 3a 42 45  |vstag:LDAfine:BE|
000005e0  51 6d 6f 76 65 73 6c 6f  70 3a 53 54 41 63 68 61  |Qmoveslop:STAcha|
000005f0  6e 67 65 64 3a 4c 44 41  77 69 70 65 72 3a 50 48  |nged:LDAwiper:PH|
00000600  41 3a 4a 53 52 6d 61 69  6e 63 6c 65 61 72 3a 50  |A:JSRmainclear:P|
00000610  4c 41 3a 53 54 41 77 69  70 65 72 3a 2e 6d 6f 76  |LA:STAwiper:.mov|
00000620  65 73 6c 6f 70 20 4c 44  41 63 68 61 6e 67 65 64  |eslop LDAchanged|
00000630  3a 42 45 51 6e 6f 64 79  6f 75 3a 4a 53 52 64 69  |:BEQnodyou:JSRdi|
00000640  73 70 79 6f 75 3a 2e 6e  6f 64 79 6f 75 20 4a 53  |spyou:.nodyou JS|
00000650  52 64 69 73 70 6d 6f 6e  3a 4a 53 52 77 61 69 74  |Rdispmon:JSRwait|
00000660  3a 49 4e 43 6d 6f 76 73  74 61 67 0d 00 b4 4e 4c  |:INCmovstag...NL|
00000670  44 41 6d 6f 76 73 74 61  67 3a 43 4d 50 23 33 3a  |DAmovstag:CMP#3:|
00000680  42 4e 45 6d 6f 76 65 73  6c 6f 70 3a 4c 44 41 6d  |BNEmoveslop:LDAm|
00000690  66 69 6e 65 3a 50 48 41  3a 4c 44 41 66 69 6e 65  |fine:PHA:LDAfine|
000006a0  3a 53 54 41 66 6e 73 74  3a 4c 44 41 23 30 3a 53  |:STAfnst:LDA#0:S|
000006b0  54 41 6d 6f 76 73 74 61  67 0d 00 be 57 53 54 41  |TAmovstag...WSTA|
000006c0  63 68 61 6e 67 65 64 3a  53 54 41 66 69 6e 65 3a  |changed:STAfine:|
000006d0  53 54 41 6d 66 69 6e 65  3a 4a 53 52 64 69 73 70  |STAmfine:JSRdisp|
000006e0  79 6f 75 3a 4a 53 52 64  69 73 70 6d 6f 6e 3a 50  |you:JSRdispmon:P|
000006f0  4c 41 3a 53 54 41 6d 66  69 6e 65 3a 4a 53 52 77  |LA:STAmfine:JSRw|
00000700  61 69 74 3a 4a 53 52 6d  61 69 6e 63 6c 65 61 72  |ait:JSRmainclear|
00000710  0d 00 c8 97 2e 66 69 6e  65 6e 64 20 4a 53 52 6c  |.....finend JSRl|
00000720  61 73 65 72 3a 4a 53 52  64 65 61 64 65 64 63 68  |aser:JSRdeadedch|
00000730  3a 4a 53 52 6d 6f 6e 70  72 6f 3a 4a 53 52 67 65  |:JSRmonpro:JSRge|
00000740  74 6f 70 75 74 3a 4c 44  41 75 70 76 65 6c 6f 3a  |toput:LDAupvelo:|
00000750  42 45 51 66 61 6c 6c 68  3a 4a 53 52 6a 75 6d 70  |BEQfallh:JSRjump|
00000760  75 70 3a 4c 44 41 78 70  6f 73 3a 53 54 41 78 73  |up:LDAxpos:STAxs|
00000770  65 74 3a 4c 44 41 79 70  6f 73 3a 53 54 41 79 73  |et:LDAypos:STAys|
00000780  65 74 3a 4a 53 52 67 65  74 62 6c 6f 63 6b 3a 43  |et:JSRgetblock:C|
00000790  4d 50 23 31 30 3a 42 4e  45 6e 6f 66 61 6c 6c 3a  |MP#10:BNEnofall:|
000007a0  42 45 51 77 61 74 74 0d  00 d2 bd 2e 66 61 6c 6c  |BEQwatt.....fall|
000007b0  68 20 4c 44 41 78 70 6f  73 3a 53 54 41 78 73 65  |h LDAxpos:STAxse|
000007c0  74 3a 4c 44 41 79 70 6f  73 3a 53 54 41 79 73 65  |t:LDAypos:STAyse|
000007d0  74 3a 4a 53 52 67 65 74  62 6c 6f 63 6b 3a 43 4d  |t:JSRgetblock:CM|
000007e0  50 23 38 3a 42 45 51 77  61 74 74 3a 43 4d 50 23  |P#8:BEQwatt:CMP#|
000007f0  31 34 3a 42 45 51 6c 61  64 64 65 72 3a 2e 6c 61  |14:BEQladder:.la|
00000800  64 64 6f 77 6e 20 4c 44  41 79 70 6f 73 3a 43 4d  |ddown LDAypos:CM|
00000810  50 23 39 3a 42 45 51 64  6f 77 6e 73 63 72 3a 49  |P#9:BEQdownscr:I|
00000820  4e 43 79 73 65 74 3a 4a  53 52 67 65 74 62 6c 6f  |NCyset:JSRgetblo|
00000830  63 6b 3a 4a 53 52 64 6f  6f 72 63 68 3a 42 43 53  |ck:JSRdoorch:BCS|
00000840  66 61 6c 6c 64 6f 77 6e  3a 80 23 26 33 30 3a 42  |falldown:.#&30:B|
00000850  45 51 66 61 6c 6c 64 6f  77 6e 3a 42 4e 45 6e 6f  |EQfalldown:BNEno|
00000860  66 61 6c 6c 0d 00 dc 4d  2e 64 6f 77 6e 73 63 72  |fall...M.downscr|
00000870  20 4c 44 41 23 30 3a 53  54 41 79 70 6f 73 3a 49  | LDA#0:STAypos:I|
00000880  4e 43 79 73 63 72 3a 4a  4d 50 6e 65 77 73 63 72  |NCyscr:JMPnewscr|
00000890  3a 2e 77 61 74 74 20 4a  4d 50 7a 61 70 3a 2e 6c  |:.watt JMPzap:.l|
000008a0  61 64 64 65 72 20 4a 4d  50 20 6c 61 64 64 65 72  |adder JMP ladder|
000008b0  62 0d 00 e6 61 2e 66 61  6c 6c 64 6f 77 6e 20 4c  |b...a.falldown L|
000008c0  44 41 23 35 3a 53 54 41  66 69 6e 65 3a 49 4e 43  |DA#5:STAfine:INC|
000008d0  79 70 6f 73 3a 2e 6e 6f  66 61 6c 6c 20 4c 44 41  |ypos:.nofall LDA|
000008e0  23 28 28 6f 6c 64 73 63  72 2d 31 29 20 81 20 32  |#((oldscr-1) . 2|
000008f0  35 36 29 3a 50 48 41 3a  4c 44 41 23 28 28 6f 6c  |56):PHA:LDA#((ol|
00000900  64 73 63 72 2d 31 29 20  83 20 32 35 36 29 3a 50  |dscr-1) . 256):P|
00000910  48 41 0d 00 f0 7f 2e 6d  6f 76 65 79 6f 75 20 4c  |HA.....moveyou L|
00000920  44 58 23 26 42 36 3a 4a  53 52 6b 65 79 62 79 74  |DX#&B6:JSRkeybyt|
00000930  65 3a 42 43 43 6e 6a 75  6d 70 3a 4a 53 52 6a 75  |e:BCCnjump:JSRju|
00000940  6d 70 3a 2e 6e 6a 75 6d  70 20 4c 44 58 23 26 39  |mp:.njump LDX#&9|
00000950  45 3a 4a 53 52 6b 65 79  62 79 74 65 3a 42 43 53  |E:JSRkeybyte:BCS|
00000960  6c 65 66 74 3a 2e 6e 6c  65 66 74 20 4c 44 58 23  |left:.nleft LDX#|
00000970  26 42 44 3a 4a 53 52 6b  65 79 62 79 74 65 3a 42  |&BD:JSRkeybyte:B|
00000980  43 43 6e 72 69 67 68 74  3a 42 43 53 72 69 67 68  |CCnright:BCSrigh|
00000990  74 0d 00 fa d9 2e 6c 65  66 74 20 4c 44 41 23 30  |t.....left LDA#0|
000009a0  3a 53 54 41 66 61 63 65  3a 53 54 41 72 67 68 74  |:STAface:STArght|
000009b0  73 3a 4c 44 41 78 70 6f  73 3a 42 45 51 6c 65 66  |s:LDAxpos:BEQlef|
000009c0  74 73 63 72 3a 53 45 43  3a 53 42 43 23 31 3a 53  |tscr:SEC:SBC#1:S|
000009d0  54 41 78 73 65 74 3a 4c  44 41 79 70 6f 73 3a 53  |TAxset:LDAypos:S|
000009e0  54 41 79 73 65 74 3a 4a  53 52 67 65 74 62 6c 6f  |TAyset:JSRgetblo|
000009f0  63 6b 3a 4a 53 52 64 6f  6f 72 63 68 3a 42 43 53  |ck:JSRdoorch:BCS|
00000a00  6e 6f 75 70 6c 3a 80 23  26 33 30 3a 43 4d 50 23  |noupl:.#&30:CMP#|
00000a10  26 31 30 3a 42 45 51 6e  6f 6d 6f 76 65 3a 43 4d  |&10:BEQnomove:CM|
00000a20  50 23 26 32 30 3a 42 45  51 6e 6f 6d 6f 76 65 3a  |P#&20:BEQnomove:|
00000a30  43 4d 50 23 26 33 30 3a  42 4e 45 6e 6f 75 70 6c  |CMP#&30:BNEnoupl|
00000a40  3a 44 45 43 79 70 6f 73  3a 44 45 43 78 70 6f 73  |:DECypos:DECxpos|
00000a50  3a 4c 44 41 23 33 3a 53  54 41 66 69 6e 65 3a 2e  |:LDA#3:STAfine:.|
00000a60  6e 72 69 67 68 74 20 52  54 53 0d 01 04 e8 2e 6e  |nright RTS.....n|
00000a70  6f 75 70 6c 20 44 45 43  78 70 6f 73 3a 4c 44 41  |oupl DECxpos:LDA|
00000a80  23 31 3a 53 54 41 66 69  6e 65 3a 2e 6e 6f 6d 6f  |#1:STAfine:.nomo|
00000a90  76 65 20 52 54 53 3a 2e  72 69 67 68 74 20 4c 44  |ve RTS:.right LD|
00000aa0  41 23 30 3a 53 54 41 72  67 68 74 73 3a 4c 44 41  |A#0:STArghts:LDA|
00000ab0  23 31 3a 53 54 41 66 61  63 65 3a 4c 44 41 78 70  |#1:STAface:LDAxp|
00000ac0  6f 73 3a 43 4d 50 23 39  3a 42 45 51 72 69 67 68  |os:CMP#9:BEQrigh|
00000ad0  74 73 63 72 3a 43 4c 43  3a 41 44 43 23 31 3a 53  |tscr:CLC:ADC#1:S|
00000ae0  54 41 78 73 65 74 3a 4c  44 41 79 70 6f 73 3a 53  |TAxset:LDAypos:S|
00000af0  54 41 79 73 65 74 3a 4a  53 52 67 65 74 62 6c 6f  |TAyset:JSRgetblo|
00000b00  63 6b 3a 4a 53 52 64 6f  6f 72 63 68 3a 42 43 53  |ck:JSRdoorch:BCS|
00000b10  6e 6f 75 70 72 3a 80 23  26 33 30 3a 43 4d 50 23  |noupr:.#&30:CMP#|
00000b20  26 31 30 3a 42 45 51 6e  6f 6d 6f 76 65 72 3a 43  |&10:BEQnomover:C|
00000b30  4d 50 23 26 32 30 3a 42  45 51 6e 6f 6d 6f 76 65  |MP#&20:BEQnomove|
00000b40  72 3a 43 4d 50 23 26 33  30 3a 42 4e 45 6e 6f 75  |r:CMP#&30:BNEnou|
00000b50  70 72 0d 01 0e cf 44 45  43 79 70 6f 73 3a 4c 44  |pr....DECypos:LD|
00000b60  41 23 34 3a 2e 6e 6f 75  70 72 73 20 49 4e 43 78  |A#4:.nouprs INCx|
00000b70  70 6f 73 3a 53 54 41 66  69 6e 65 3a 2e 6e 6f 73  |pos:STAfine:.nos|
00000b80  6e 64 20 52 54 53 3a 2e  6e 6f 75 70 72 20 4c 44  |nd RTS:.noupr LD|
00000b90  41 23 32 3a 4a 4d 50 6e  6f 75 70 72 73 3a 2e 6e  |A#2:JMPnouprs:.n|
00000ba0  6f 6d 6f 76 65 72 20 4c  44 41 23 31 3a 53 54 41  |omover LDA#1:STA|
00000bb0  72 67 68 74 73 3a 53 54  41 63 68 61 6e 67 65 64  |rghts:STAchanged|
00000bc0  3a 52 54 53 3a 2e 6c 65  66 74 73 63 72 20 4c 44  |:RTS:.leftscr LD|
00000bd0  41 23 39 3a 53 54 41 78  70 6f 73 3a 44 45 43 78  |A#9:STAxpos:DECx|
00000be0  73 63 72 3a 2e 73 63 72  70 61 73 73 20 4a 4d 50  |scr:.scrpass JMP|
00000bf0  73 63 72 65 65 6e 3a 2e  72 69 67 68 74 73 63 72  |screen:.rightscr|
00000c00  20 4c 44 41 23 30 3a 53  54 41 78 70 6f 73 3a 49  | LDA#0:STAxpos:I|
00000c10  4e 43 78 73 63 72 3a 42  4e 45 73 63 72 70 61 73  |NCxscr:BNEscrpas|
00000c20  73 0d 01 18 b3 2e 6a 75  6d 70 20 4c 44 41 79 70  |s.....jump LDAyp|
00000c30  6f 73 3a 43 4d 50 23 39  3a 42 45 51 6e 6f 73 6e  |os:CMP#9:BEQnosn|
00000c40  64 3a 43 4c 43 3a 41 44  43 23 31 3a 53 54 41 79  |d:CLC:ADC#1:STAy|
00000c50  73 65 74 3a 4c 44 41 78  70 6f 73 3a 53 54 41 78  |set:LDAxpos:STAx|
00000c60  73 65 74 3a 4a 53 52 67  65 74 62 6c 6f 63 6b 3a  |set:JSRgetblock:|
00000c70  80 23 26 33 30 3a 42 45  51 6e 6f 73 6e 64 3a 4c  |.#&30:BEQnosnd:L|
00000c80  44 41 23 33 3a 53 54 41  75 70 76 65 6c 6f 3a 4c  |DA#3:STAupvelo:L|
00000c90  44 41 73 6f 75 6e 64 3a  42 45 51 6e 6f 73 6e 64  |DAsound:BEQnosnd|
00000ca0  3a 4c 44 41 23 37 3a 4c  44 58 23 28 6a 75 6d 70  |:LDA#7:LDX#(jump|
00000cb0  6e 20 83 20 32 35 36 29  3a 4c 44 59 23 28 6a 75  |n . 256):LDY#(ju|
00000cc0  6d 70 6e 20 81 20 32 35  36 29 3a 4a 4d 50 6f 73  |mpn . 256):JMPos|
00000cd0  77 6f 72 64 0d 01 22 c6  2e 64 69 73 70 73 68 72  |word.."..dispshr|
00000ce0  20 53 45 49 3a 4c 44 41  77 69 70 65 72 3a 42 45  | SEI:LDAwiper:BE|
00000cf0  51 6e 6f 77 69 70 65 3a  4c 44 59 23 30 3a 2e 77  |Qnowipe:LDY#0:.w|
00000d00  69 70 6c 6f 70 20 4c 44  41 28 77 69 72 65 70 29  |iplop LDA(wirep)|
00000d10  2c 59 3a 53 54 41 28 26  37 38 29 2c 59 3a 49 4e  |,Y:STA(&78),Y:IN|
00000d20  59 3a 43 50 59 23 33 32  3a 42 4e 45 77 69 70 6c  |Y:CPY#32:BNEwipl|
00000d30  6f 70 3a 4c 44 41 26 37  38 3a 43 4c 43 3a 41 44  |op:LDA&78:CLC:AD|
00000d40  43 23 26 38 30 3a 53 54  41 26 37 38 3a 4c 44 41  |C#&80:STA&78:LDA|
00000d50  26 37 39 3a 41 44 43 23  32 3a 53 54 41 26 37 39  |&79:ADC#2:STA&79|
00000d60  3a 4c 44 59 23 30 3a 2e  77 69 70 65 62 20 4c 44  |:LDY#0:.wipeb LD|
00000d70  41 28 77 69 72 65 70 62  29 2c 59 3a 53 54 41 28  |A(wirepb),Y:STA(|
00000d80  26 37 38 29 2c 59 3a 49  4e 59 3a 43 50 59 23 33  |&78),Y:INY:CPY#3|
00000d90  32 3a 42 4e 45 77 69 70  65 62 0d 01 2c ba 2e 6e  |2:BNEwipeb..,..n|
00000da0  6f 77 69 70 65 20 4c 44  41 23 31 3a 53 54 41 77  |owipe LDA#1:STAw|
00000db0  69 70 65 72 3a 4c 44 41  78 70 6f 73 3a 41 53 4c  |iper:LDAxpos:ASL|
00000dc0  20 41 3a 41 53 4c 20 41  3a 41 53 4c 20 41 3a 41  | A:ASL A:ASL A:A|
00000dd0  53 4c 20 41 3a 41 53 4c  20 41 3a 41 53 4c 20 41  |SL A:ASL A:ASL A|
00000de0  3a 53 54 41 26 37 30 3a  4c 44 41 78 70 6f 73 3a  |:STA&70:LDAxpos:|
00000df0  4c 53 52 20 41 3a 4c 53  52 20 41 3a 43 4c 43 3a  |LSR A:LSR A:CLC:|
00000e00  41 44 43 23 26 33 35 3a  53 54 41 26 37 31 3a 4c  |ADC#&35:STA&71:L|
00000e10  44 41 79 70 6f 73 3a 43  4c 43 3a 41 44 43 26 37  |DAypos:CLC:ADC&7|
00000e20  31 3a 53 54 41 26 37 31  3a 4c 44 41 79 70 6f 73  |1:STA&71:LDAypos|
00000e30  3a 41 53 4c 20 41 3a 41  53 4c 20 41 3a 43 4c 43  |:ASL A:ASL A:CLC|
00000e40  3a 41 44 43 26 37 31 3a  53 54 41 26 37 31 3a 4c  |:ADC&71:STA&71:L|
00000e50  44 59 23 30 0d 01 36 c5  53 54 59 26 37 32 3a 4c  |DY#0..6.STY&72:L|
00000e60  44 41 23 26 31 41 3a 53  54 41 26 37 33 3a 4c 44  |DA#&1A:STA&73:LD|
00000e70  58 6d 6f 76 73 74 61 67  3a 4c 44 41 73 65 71 75  |Xmovstag:LDAsequ|
00000e80  65 6e 2c 58 3a 43 4c 43  3a 41 44 43 66 69 6e 65  |en,X:CLC:ADCfine|
00000e90  3a 54 41 58 3a 4c 44 41  26 37 30 3a 43 4c 43 3a  |:TAX:LDA&70:CLC:|
00000ea0  41 44 43 6c 6f 77 61 64  2c 58 3a 53 54 41 26 37  |ADClowad,X:STA&7|
00000eb0  30 3a 4c 44 41 26 37 31  3a 41 44 43 68 69 67 68  |0:LDA&71:ADChigh|
00000ec0  61 64 2c 58 3a 53 54 41  26 37 31 3a 4c 44 41 6d  |ad,X:STA&71:LDAm|
00000ed0  66 6c 61 67 3a 42 4e 45  6d 6f 6e 73 61 64 72 3a  |flag:BNEmonsadr:|
00000ee0  43 50 58 23 30 3a 42 45  51 6e 6f 70 68 61 73 65  |CPX#0:BEQnophase|
00000ef0  3a 4c 44 41 6d 6f 76 73  74 61 67 3a 43 4d 50 23  |:LDAmovstag:CMP#|
00000f00  32 3a 42 45 51 6e 6f 70  68 61 73 65 3a 4c 44 58  |2:BEQnophase:LDX|
00000f10  70 68 61 73 65 3a 49 4e  58 0d 01 40 d9 2e 61 64  |phase:INX..@..ad|
00000f20  64 70 68 20 4c 44 41 26  37 32 3a 43 4c 43 3a 41  |dph LDA&72:CLC:A|
00000f30  44 43 23 26 38 30 3a 53  54 41 26 37 32 3a 4c 44  |DC#&80:STA&72:LD|
00000f40  41 26 37 33 3a 41 44 43  23 30 3a 53 54 41 26 37  |A&73:ADC#0:STA&7|
00000f50  33 3a 44 45 58 3a 42 4e  45 61 64 64 70 68 3a 4c  |3:DEX:BNEaddph:L|
00000f60  44 41 70 68 61 73 65 3a  82 23 31 3a 53 54 41 70  |DAphase:.#1:STAp|
00000f70  68 61 73 65 3a 4a 4d 50  6e 6f 70 68 61 73 65 3a  |hase:JMPnophase:|
00000f80  2e 6d 6f 6e 73 61 64 72  20 4c 44 41 6d 6f 6e 73  |.monsadr LDAmons|
00000f90  74 61 74 3a 82 23 31 3a  53 54 41 6d 6f 6e 73 74  |tat:.#1:STAmonst|
00000fa0  61 74 3a 41 53 4c 20 41  3a 41 53 4c 20 41 3a 41  |at:ASL A:ASL A:A|
00000fb0  53 4c 20 41 3a 41 53 4c  20 41 3a 41 53 4c 20 41  |SL A:ASL A:ASL A|
00000fc0  3a 43 4c 43 3a 41 44 43  23 26 38 30 3a 53 54 41  |:CLC:ADC#&80:STA|
00000fd0  26 37 32 3a 4c 44 41 23  26 31 42 3a 53 54 41 26  |&72:LDA#&1B:STA&|
00000fe0  37 33 3a 4c 44 41 23 31  3a 53 54 41 77 69 70 65  |73:LDA#1:STAwipe|
00000ff0  72 6d 0d 01 4a 5e 4c 44  41 6d 74 79 70 65 3a 43  |rm..J^LDAmtype:C|
00001000  4d 50 23 32 3a 42 4e 45  6e 6f 74 79 70 74 72 3a  |MP#2:BNEnotyptr:|
00001010  4c 44 41 26 37 32 3a 43  4c 43 3a 41 44 43 23 26  |LDA&72:CLC:ADC#&|
00001020  38 30 3a 53 54 41 26 37  32 3a 4c 44 41 26 37 33  |80:STA&72:LDA&73|
00001030  3a 41 44 43 23 30 3a 53  54 41 26 37 33 3a 2e 6e  |:ADC#0:STA&73:.n|
00001040  6f 74 79 70 74 72 20 4a  4d 50 6c 65 66 61 63 65  |otyptr JMPleface|
00001050  0d 01 54 a6 2e 6e 6f 70  68 61 73 65 20 4c 44 41  |..T..nophase LDA|
00001060  72 67 68 74 73 3a 42 45  51 6e 6f 74 72 67 68 74  |rghts:BEQnotrght|
00001070  3a 4c 44 41 26 37 30 3a  43 4c 43 3a 41 44 43 23  |:LDA&70:CLC:ADC#|
00001080  33 32 3a 53 54 41 26 37  30 3a 4c 44 41 26 37 31  |32:STA&70:LDA&71|
00001090  3a 41 44 43 23 30 3a 53  54 41 26 37 31 3a 2e 6e  |:ADC#0:STA&71:.n|
000010a0  6f 74 72 67 68 74 20 4c  44 41 66 61 63 65 3a 42  |otrght LDAface:B|
000010b0  4e 45 6c 65 66 61 63 65  3a 4c 44 41 26 37 32 3a  |NEleface:LDA&72:|
000010c0  43 4c 43 3a 41 44 43 23  26 32 30 3a 53 54 41 26  |CLC:ADC#&20:STA&|
000010d0  37 32 3a 2e 6c 65 66 61  63 65 20 4c 44 41 26 37  |72:.leface LDA&7|
000010e0  30 3a 53 54 41 26 37 38  3a 4c 44 41 26 37 31 3a  |0:STA&78:LDA&71:|
000010f0  53 54 41 26 37 39 0d 01  5e ae 2e 6c 61 64 69 73  |STA&79..^..ladis|
00001100  70 20 4c 44 41 28 26 37  30 29 2c 59 3a 53 54 41  |p LDA(&70),Y:STA|
00001110  28 77 69 72 65 70 29 2c  59 3a 82 28 26 37 32 29  |(wirep),Y:.(&72)|
00001120  2c 59 3a 53 54 41 28 26  37 30 29 2c 59 3a 49 4e  |,Y:STA(&70),Y:IN|
00001130  59 3a 43 50 59 23 33 32  3a 42 4e 45 6c 61 64 69  |Y:CPY#32:BNEladi|
00001140  73 70 3a 4c 44 41 26 37  32 3a 43 4c 43 3a 41 44  |sp:LDA&72:CLC:AD|
00001150  43 23 26 34 30 3a 53 54  41 26 37 32 3a 4c 44 41  |C#&40:STA&72:LDA|
00001160  26 37 33 3a 41 44 43 23  30 3a 53 54 41 26 37 33  |&73:ADC#0:STA&73|
00001170  3a 4c 44 41 26 37 30 3a  43 4c 43 3a 41 44 43 23  |:LDA&70:CLC:ADC#|
00001180  26 38 30 3a 53 54 41 26  37 30 3a 4c 44 41 26 37  |&80:STA&70:LDA&7|
00001190  31 3a 41 44 43 23 32 3a  53 54 41 26 37 31 3a 4c  |1:ADC#2:STA&71:L|
000011a0  44 59 23 30 0d 01 68 55  2e 6c 62 64 69 73 70 20  |DY#0..hU.lbdisp |
000011b0  4c 44 41 28 26 37 30 29  2c 59 3a 53 54 41 28 77  |LDA(&70),Y:STA(w|
000011c0  69 72 65 70 62 29 2c 59  3a 82 28 26 37 32 29 2c  |irepb),Y:.(&72),|
000011d0  59 3a 53 54 41 28 26 37  30 29 2c 59 3a 49 4e 59  |Y:STA(&70),Y:INY|
000011e0  3a 43 50 59 23 33 32 3a  42 4e 45 6c 62 64 69 73  |:CPY#32:BNElbdis|
000011f0  70 3a 43 4c 49 3a 52 54  53 0d 01 72 3b 2e 77 61  |p:CLI:RTS..r;.wa|
00001200  69 74 20 4c 44 41 63 6c  6f 63 6b 3a 43 4d 50 26  |it LDAclock:CMP&|
00001210  38 30 3a 42 4e 45 77 61  69 74 3a 4c 44 41 63 6c  |80:BNEwait:LDAcl|
00001220  6f 63 6b 3a 41 44 43 23  35 3a 53 54 41 26 38 30  |ock:ADC#5:STA&80|
00001230  3a 52 54 53 0d 01 7c d2  2e 6a 75 6d 70 75 70 20  |:RTS..|..jumpup |
00001240  44 45 43 75 70 76 65 6c  6f 3a 4c 44 41 79 70 6f  |DECupvelo:LDAypo|
00001250  73 3a 42 45 51 75 70 73  63 72 3a 53 45 43 3a 53  |s:BEQupscr:SEC:S|
00001260  42 43 23 31 3a 53 54 41  79 73 65 74 3a 4c 44 41  |BC#1:STAyset:LDA|
00001270  78 70 6f 73 3a 53 54 41  78 73 65 74 3a 4a 53 52  |xpos:STAxset:JSR|
00001280  67 65 74 62 6c 6f 63 6b  3a 4a 53 52 64 6f 6f 72  |getblock:JSRdoor|
00001290  63 68 3a 42 43 53 75 70  6f 6e 65 3a 80 23 26 33  |ch:BCSupone:.#&3|
000012a0  30 3a 42 45 51 75 70 6f  6e 65 3a 4c 44 41 23 30  |0:BEQupone:LDA#0|
000012b0  3a 53 54 41 75 70 76 65  6c 6f 3a 52 54 53 3a 2e  |:STAupvelo:RTS:.|
000012c0  75 70 6f 6e 65 20 4c 44  41 23 36 3a 53 54 41 66  |upone LDA#6:STAf|
000012d0  69 6e 65 3a 44 45 43 79  70 6f 73 3a 52 54 53 3a  |ine:DECypos:RTS:|
000012e0  2e 75 70 73 63 72 20 44  45 43 79 73 63 72 3a 4c  |.upscr DECyscr:L|
000012f0  44 41 23 39 3a 53 54 41  79 70 6f 73 3a 4a 4d 50  |DA#9:STAypos:JMP|
00001300  73 63 72 65 65 6e 0d 01  86 92 2e 73 63 72 65 65  |screen.....scree|
00001310  6e 20 4c 44 41 23 30 3a  53 54 41 63 6c 65 61 72  |n LDA#0:STAclear|
00001320  75 70 3a 53 54 41 6c 61  73 74 61 74 3a 53 54 41  |up:STAlastat:STA|
00001330  69 6e 76 66 6c 61 67 3a  4a 53 52 73 63 72 6f 66  |invflag:JSRscrof|
00001340  66 3a 4c 44 41 78 70 6f  73 3a 53 54 41 78 6f 6c  |f:LDAxpos:STAxol|
00001350  64 3a 4c 44 41 79 70 6f  73 3a 53 54 41 79 6f 6c  |d:LDAypos:STAyol|
00001360  64 3a 4a 53 52 70 6f 69  6e 74 3a 4c 44 41 23 26  |d:JSRpoint:LDA#&|
00001370  46 46 3a 53 54 41 79 73  65 74 3a 2e 79 6c 6f 70  |FF:STAyset:.ylop|
00001380  20 4c 44 41 23 26 46 46  3a 53 54 41 78 73 65 74  | LDA#&FF:STAxset|
00001390  3a 49 4e 43 79 73 65 74  0d 01 90 6c 2e 78 6c 6f  |:INCyset...l.xlo|
000013a0  70 20 49 4e 43 78 73 65  74 3a 4a 53 52 62 6c 6f  |p INCxset:JSRblo|
000013b0  63 6b 6f 6e 3a 4c 44 41  78 73 65 74 3a 43 4d 50  |ckon:LDAxset:CMP|
000013c0  23 39 3a 42 45 51 6e 65  78 74 79 3a 4a 4d 50 78  |#9:BEQnexty:JMPx|
000013d0  6c 6f 70 3a 2e 6e 65 78  74 79 20 4c 44 41 79 73  |lop:.nexty LDAys|
000013e0  65 74 3a 43 4d 50 23 39  3a 42 4e 45 79 6c 6f 70  |et:CMP#9:BNEylop|
000013f0  3a 4a 53 52 73 62 6f 61  72 64 3a 4a 53 52 6e 61  |:JSRsboard:JSRna|
00001400  6d 73 63 72 0d 01 9a e2  2e 73 63 72 6f 6e 20 4c  |mscr.....scron L|
00001410  44 41 23 31 37 3a 53 54  41 73 63 72 6f 66 64 3a  |DA#17:STAscrofd:|
00001420  2e 73 63 72 6f 6e 6c 6f  70 20 4c 44 41 23 26 43  |.scronlop LDA#&C|
00001430  3a 4c 44 58 23 28 73 63  72 6f 66 64 20 83 32 35  |:LDX#(scrofd .25|
00001440  36 29 3a 4c 44 59 23 28  73 63 72 6f 66 64 20 81  |6):LDY#(scrofd .|
00001450  32 35 36 29 3a 4a 53 52  6f 73 77 6f 72 64 3a 44  |256):JSRosword:D|
00001460  45 43 73 63 72 6f 66 64  3a 4c 44 41 73 63 72 6f  |ECscrofd:LDAscro|
00001470  66 64 3a 80 23 37 3a 53  54 41 73 63 72 6f 66 64  |fd:.#7:STAscrofd|
00001480  2b 31 3a 4c 44 41 73 63  72 6f 66 64 3a 42 4e 45  |+1:LDAscrofd:BNE|
00001490  73 63 72 6f 6e 6c 6f 70  3a 4c 44 41 63 6c 6f 63  |scronlop:LDAcloc|
000014a0  6b 3a 43 4c 43 3a 41 44  43 23 34 3a 53 54 41 26  |k:CLC:ADC#4:STA&|
000014b0  38 30 3a 4c 44 41 23 30  3a 53 54 41 77 69 70 65  |80:LDA#0:STAwipe|
000014c0  72 3a 53 54 41 77 69 70  65 72 6d 3a 4c 44 41 23  |r:STAwiperm:LDA#|
000014d0  31 3a 53 54 41 63 68 61  6e 67 65 64 3a 4a 4d 50  |1:STAchanged:JMP|
000014e0  6d 6f 6e 73 65 74 0d 01  a4 91 2e 6c 61 64 64 65  |monset.....ladde|
000014f0  72 62 20 4c 44 58 23 26  39 37 3a 4a 53 52 6b 65  |rb LDX#&97:JSRke|
00001500  79 62 79 74 65 3a 42 43  53 66 61 6c 6c 73 65 74  |ybyte:BCSfallset|
00001510  3a 4c 44 58 23 26 42 36  3a 4a 53 52 6b 65 79 62  |:LDX#&B6:JSRkeyb|
00001520  79 74 65 3a 42 43 43 73  74 61 62 6c 65 3a 4c 44  |yte:BCCstable:LD|
00001530  41 23 31 3a 53 54 41 75  70 76 65 6c 6f 3a 4a 53  |A#1:STAupvelo:JS|
00001540  52 6a 75 6d 70 75 70 3a  4a 4d 50 6f 6c 64 73 63  |Rjumpup:JMPoldsc|
00001550  72 3a 2e 73 74 61 62 6c  65 20 4a 4d 50 6e 6f 66  |r:.stable JMPnof|
00001560  61 6c 6c 3a 2e 66 61 6c  6c 73 65 74 20 4a 4d 50  |all:.fallset JMP|
00001570  6c 61 64 64 6f 77 6e 0d  01 ae be 2e 62 6c 6f 63  |laddown.....bloc|
00001580  6b 6f 6e 20 4a 53 52 6f  62 6a 63 68 65 63 6b 3a  |kon JSRobjcheck:|
00001590  4a 53 52 67 65 74 62 6c  6f 63 6b 3a 4c 44 41 78  |JSRgetblock:LDAx|
000015a0  73 65 74 3a 41 53 4c 20  41 3a 41 53 4c 20 41 3a  |set:ASL A:ASL A:|
000015b0  41 53 4c 20 41 3a 41 53  4c 20 41 3a 41 53 4c 20  |ASL A:ASL A:ASL |
000015c0  41 3a 41 53 4c 20 41 3a  53 54 41 26 37 30 3a 4c  |A:ASL A:STA&70:L|
000015d0  44 41 78 73 65 74 3a 4c  53 52 20 41 3a 4c 53 52  |DAxset:LSR A:LSR|
000015e0  20 41 3a 43 4c 43 3a 41  44 43 23 26 33 35 3a 53  | A:CLC:ADC#&35:S|
000015f0  54 41 26 37 31 3a 4c 44  41 79 73 65 74 3a 43 4c  |TA&71:LDAyset:CL|
00001600  43 3a 41 44 43 26 37 31  3a 53 54 41 26 37 31 3a  |C:ADC&71:STA&71:|
00001610  4c 44 41 79 73 65 74 3a  41 53 4c 20 41 3a 41 53  |LDAyset:ASL A:AS|
00001620  4c 20 41 3a 43 4c 43 3a  41 44 43 26 37 31 3a 53  |L A:CLC:ADC&71:S|
00001630  54 41 26 37 31 0d 01 b8  67 4c 44 41 26 37 32 3a  |TA&71...gLDA&72:|
00001640  4c 53 52 20 41 3a 4c 53  52 20 41 3a 43 4c 43 3a  |LSR A:LSR A:CLC:|
00001650  41 44 43 23 26 32 30 3a  53 54 41 26 37 33 3a 4c  |ADC#&20:STA&73:L|
00001660  44 41 26 37 32 3a 43 4d  50 23 33 30 3a 42 45 51  |DA&72:CMP#30:BEQ|
00001670  64 6f 6f 72 63 6f 6c 3a  4c 53 52 20 41 3a 52 4f  |doorcol:LSR A:RO|
00001680  52 20 41 3a 52 4f 52 20  41 3a 80 23 26 43 30 3a  |R A:ROR A:.#&C0:|
00001690  53 54 41 26 37 32 3a 4c  44 59 23 30 0d 01 c2 b2  |STA&72:LDY#0....|
000016a0  2e 74 72 61 6e 73 74 6f  70 20 4c 44 41 28 26 37  |.transtop LDA(&7|
000016b0  32 29 2c 59 3a 80 23 26  33 46 3a 53 54 41 26 37  |2),Y:.#&3F:STA&7|
000016c0  34 3a 4c 44 41 28 26 37  30 29 2c 59 3a 80 23 26  |4:LDA(&70),Y:.#&|
000016d0  43 30 3a 43 4c 43 3a 41  44 43 26 37 34 3a 53 54  |C0:CLC:ADC&74:ST|
000016e0  41 28 26 37 30 29 2c 59  3a 49 4e 59 3a 43 50 59  |A(&70),Y:INY:CPY|
000016f0  23 26 34 30 3a 42 4e 45  74 72 61 6e 73 74 6f 70  |#&40:BNEtranstop|
00001700  3a 4c 44 59 23 30 3a 4c  44 41 26 37 32 3a 43 4c  |:LDY#0:LDA&72:CL|
00001710  43 3a 41 44 43 23 26 34  30 3a 53 54 41 26 37 32  |C:ADC#&40:STA&72|
00001720  3a 4c 44 41 26 37 30 3a  43 4c 43 3a 41 44 43 23  |:LDA&70:CLC:ADC#|
00001730  26 38 30 3a 53 54 41 26  37 30 3a 4c 44 41 26 37  |&80:STA&70:LDA&7|
00001740  31 3a 41 44 43 23 32 3a  53 54 41 26 37 31 0d 01  |1:ADC#2:STA&71..|
00001750  cc 7d 2e 74 72 61 6e 73  62 6f 74 20 4c 44 41 28  |.}.transbot LDA(|
00001760  26 37 32 29 2c 59 3a 80  23 26 33 46 3a 53 54 41  |&72),Y:.#&3F:STA|
00001770  26 37 34 3a 4c 44 41 28  26 37 30 29 2c 59 3a 80  |&74:LDA(&70),Y:.|
00001780  23 26 43 30 3a 43 4c 43  3a 41 44 43 26 37 34 3a  |#&C0:CLC:ADC&74:|
00001790  53 54 41 28 26 37 30 29  2c 59 3a 49 4e 59 3a 43  |STA(&70),Y:INY:C|
000017a0  50 59 23 26 34 30 3a 42  4e 45 74 72 61 6e 73 62  |PY#&40:BNEtransb|
000017b0  6f 74 3a 52 54 53 3a 2e  64 6f 6f 72 63 6f 6c 20  |ot:RTS:.doorcol |
000017c0  4a 4d 50 6c 6f 63 6b 74  79 70 65 0d 01 d6 5c 2e  |JMPlocktype...\.|
000017d0  67 65 74 62 6c 6f 63 6b  20 4c 44 41 23 26 32 30  |getblock LDA#&20|
000017e0  3a 43 4c 43 3a 41 44 43  78 73 63 72 3a 53 54 41  |:CLC:ADCxscr:STA|
000017f0  26 37 31 3a 4c 44 41 79  73 63 72 3a 41 53 4c 20  |&71:LDAyscr:ASL |
00001800  41 3a 41 53 4c 20 41 3a  41 53 4c 20 41 3a 41 53  |A:ASL A:ASL A:AS|
00001810  4c 20 41 3a 43 4c 43 3a  41 44 43 26 37 31 3a 53  |L A:CLC:ADC&71:S|
00001820  54 41 73 63 72 6e 6f 0d  01 e0 c8 53 54 41 26 37  |TAscrno....STA&7|
00001830  31 3a 4c 44 41 79 73 65  74 3a 53 54 41 26 37 30  |1:LDAyset:STA&70|
00001840  3a 41 53 4c 20 41 3a 41  53 4c 20 41 3a 41 53 4c  |:ASL A:ASL A:ASL|
00001850  20 41 3a 50 48 41 3a 43  4c 43 3a 41 44 43 26 37  | A:PHA:CLC:ADC&7|
00001860  30 3a 53 54 41 26 37 30  3a 50 4c 41 3a 41 53 4c  |0:STA&70:PLA:ASL|
00001870  20 41 3a 43 4c 43 3a 41  44 43 26 37 30 3a 53 54  | A:CLC:ADC&70:ST|
00001880  41 26 37 30 3a 4c 44 59  78 73 65 74 3a 4c 44 41  |A&70:LDYxset:LDA|
00001890  78 64 61 74 61 2c 59 3a  54 41 59 3a 4c 44 41 28  |xdata,Y:TAY:LDA(|
000018a0  26 37 30 29 2c 59 3a 52  4f 4c 20 41 3a 52 4f 4c  |&70),Y:ROL A:ROL|
000018b0  20 41 3a 52 4f 4c 20 41  3a 80 23 33 3a 53 54 41  | A:ROL A:.#3:STA|
000018c0  26 37 32 3a 49 4e 59 3a  4c 44 41 28 26 37 30 29  |&72:INY:LDA(&70)|
000018d0  2c 59 3a 4c 53 52 20 41  3a 4c 53 52 20 41 3a 4c  |,Y:LSR A:LSR A:L|
000018e0  53 52 20 41 3a 4c 53 52  20 41 3a 80 23 31 32 0d  |SR A:LSR A:.#12.|
000018f0  01 ea 7e 43 4c 43 3a 41  44 43 26 37 32 3a 53 54  |..~CLC:ADC&72:ST|
00001900  41 26 37 32 3a 4c 44 41  78 73 65 74 3a 4c 53 52  |A&72:LDAxset:LSR|
00001910  20 41 3a 54 41 59 3a 4c  44 41 68 62 64 61 74 2c  | A:TAY:LDAhbdat,|
00001920  59 3a 54 41 59 3a 4c 44  41 28 26 37 30 29 2c 59  |Y:TAY:LDA(&70),Y|
00001930  3a 53 54 41 26 37 33 3a  4c 44 41 78 73 65 74 3a  |:STA&73:LDAxset:|
00001940  80 23 31 3a 42 4e 45 62  69 74 32 3a 4c 44 41 26  |.#1:BNEbit2:LDA&|
00001950  37 33 3a 41 53 4c 20 41  3a 52 4f 4c 20 41 3a 52  |73:ASL A:ROL A:R|
00001960  4f 4c 20 41 3a 4a 4d 50  66 62 67 6f 74 0d 01 f4  |OL A:JMPfbgot...|
00001970  5b 2e 62 69 74 32 20 4c  44 41 26 37 33 3a 41 53  |[.bit2 LDA&73:AS|
00001980  4c 20 41 3a 52 4f 4c 20  41 3a 2e 66 62 67 6f 74  |L A:ROL A:.fbgot|
00001990  20 80 23 31 3a 41 53 4c  20 41 3a 41 53 4c 20 41  | .#1:ASL A:ASL A|
000019a0  3a 41 53 4c 20 41 3a 41  53 4c 20 41 3a 43 4c 43  |:ASL A:ASL A:CLC|
000019b0  3a 41 44 43 26 37 32 3a  41 53 4c 20 41 3a 53 54  |:ADC&72:ASL A:ST|
000019c0  41 26 37 32 3a 52 54 53  0d 01 fe 43 2e 70 75 74  |A&72:RTS...C.put|
000019d0  63 68 20 41 53 4c 20 41  3a 41 53 4c 20 41 3a 41  |ch ASL A:ASL A:A|
000019e0  53 4c 20 41 3a 54 41 58  3a 4c 44 41 23 30 3a 53  |SL A:TAX:LDA#0:S|
000019f0  54 41 26 37 30 3a 4c 44  41 23 26 33 30 3a 53 54  |TA&70:LDA#&30:ST|
00001a00  41 26 37 31 3a 4c 44 59  78 63 68 0d 02 08 4e 2e  |A&71:LDYxch...N.|
00001a10  78 6c 6f 70 63 20 42 45  51 6e 6f 78 63 68 3a 4c  |xlopc BEQnoxch:L|
00001a20  44 41 26 37 30 3a 43 4c  43 3a 41 44 43 23 26 32  |DA&70:CLC:ADC#&2|
00001a30  30 3a 53 54 41 26 37 30  3a 4c 44 41 26 37 31 3a  |0:STA&70:LDA&71:|
00001a40  41 44 43 23 30 3a 53 54  41 26 37 31 3a 44 45 59  |ADC#0:STA&71:DEY|
00001a50  3a 4a 4d 50 78 6c 6f 70  63 0d 02 12 5c 2e 6e 6f  |:JMPxlopc...\.no|
00001a60  78 63 68 20 4c 44 59 79  63 68 3a 2e 79 6c 6f 70  |xch LDYych:.ylop|
00001a70  63 20 42 45 51 6e 6f 79  63 68 3a 4c 44 41 26 37  |c BEQnoych:LDA&7|
00001a80  30 3a 43 4c 43 3a 41 44  43 23 26 38 30 3a 53 54  |0:CLC:ADC#&80:ST|
00001a90  41 26 37 30 3a 4c 44 41  26 37 31 3a 41 44 43 23  |A&70:LDA&71:ADC#|
00001aa0  32 3a 53 54 41 26 37 31  3a 44 45 59 3a 4a 4d 50  |2:STA&71:DEY:JMP|
00001ab0  79 6c 6f 70 63 0d 02 1c  5d 2e 6e 6f 79 63 68 20  |ylopc...].noych |
00001ac0  4c 44 59 23 30 3a 2e 73  6c 69 6e 65 20 4c 44 41  |LDY#0:.sline LDA|
00001ad0  26 43 30 30 2c 58 3a 2e  6c 69 6e 65 6c 6f 70 20  |&C00,X:.linelop |
00001ae0  50 48 41 3a 41 53 4c 20  41 3a 52 4f 4c 20 41 3a  |PHA:ASL A:ROL A:|
00001af0  52 4f 4c 20 41 3a 80 23  33 3a 42 45 51 62 6c 61  |ROL A:.#3:BEQbla|
00001b00  6e 63 68 3a 53 54 41 69  74 65 6d 70 3a 4c 44 41  |nch:STAitemp:LDA|
00001b10  23 30 0d 02 26 89 2e 63  6f 6c 63 68 20 43 4c 43  |#0..&..colch CLC|
00001b20  3a 41 44 43 63 6f 6c 3a  44 45 43 69 74 65 6d 70  |:ADCcol:DECitemp|
00001b30  3a 42 4e 45 63 6f 6c 63  68 3a 2e 62 6c 61 6e 63  |:BNEcolch:.blanc|
00001b40  68 20 53 54 41 69 74 65  6d 70 3a 4c 44 41 28 26  |h STAitemp:LDA(&|
00001b50  37 30 29 2c 59 3a 80 23  26 43 30 3a 84 41 69 74  |70),Y:.#&C0:.Ait|
00001b60  65 6d 70 3a 82 69 6e 76  66 6c 61 67 3a 53 54 41  |emp:.invflag:STA|
00001b70  28 26 37 30 29 2c 59 3a  54 59 41 3a 43 4c 43 3a  |(&70),Y:TYA:CLC:|
00001b80  41 44 43 23 38 3a 54 41  59 3a 43 4d 50 23 26 32  |ADC#8:TAY:CMP#&2|
00001b90  30 3a 42 43 53 6e 65 77  6c 69 6e 0d 02 30 4d 50  |0:BCSnewlin..0MP|
00001ba0  4c 41 3a 41 53 4c 20 41  3a 41 53 4c 20 41 3a 4a  |LA:ASL A:ASL A:J|
00001bb0  4d 50 6c 69 6e 65 6c 6f  70 3a 2e 6e 65 77 6c 69  |MPlinelop:.newli|
00001bc0  6e 20 80 23 37 3a 54 41  59 3a 50 4c 41 3a 49 4e  |n .#7:TAY:PLA:IN|
00001bd0  59 3a 49 4e 58 3a 43 50  59 23 38 3a 42 4e 45 73  |Y:INX:CPY#8:BNEs|
00001be0  6c 69 6e 65 3a 52 54 53  0d 02 3a 26 2e 6b 65 79  |line:RTS..:&.key|
00001bf0  62 79 74 65 20 4c 44 41  23 26 38 31 3a 4c 44 59  |byte LDA#&81:LDY|
00001c00  23 26 46 46 3a 4a 4d 50  6f 73 62 79 74 65 0d 02  |#&FF:JMPosbyte..|
00001c10  44 07 5d 3a e1 0d ff                              |D.]:...|
00001c17
Code/Game2A.m0
Code/Game2A.m1
Code/Game2A.m2
Code/Game2A.m4
Code/Game2A.m5