Home » Personal collection » Acorn ADFS disks » Electron » Shipwrecked_2.ADF » Game2D » Compare
Compare Game2D with Backup/Game2D
| File: | Personal collection » Acorn ADFS disks » Electron » Shipwrecked_2.ADF » Game2D |
| Compared with: | Personal collection » Acorn ADFS disks » Electron » Shipwrecked_2.ADF » Backup/Game2D |
| Similarity: | 96% of bytes duplicated |
44 of 55 lines (80.7%) are identical in the two listings. Duplicated Different
Line numbers are ignored when comparing lines, so that renumbered programs still match.
| Game2D | Backup/Game2D |
|---|---|
| 1000P%=&1C80:O%=&6480:[OPTpass | 1000P%=&1C80:O%=&6480:[OPTpass |
| 1005.checkos CMP#16:BCSofftopz:LDAxset:CMP#10:BCSofftopz:RTS:.offtopz PLA:PLA:RTS | 1010.complete CPY#&99:BEQcongu:JSRscreen:JMPscrdisp:.congu LDA#(cmptxt MOD 256):STA&72:LDA#(cmptxt DIV 256):STA&73:LDA#4:STAcol:LSRA:STAxch:LDA#14:STAych:JSRstring:INC&72:LDA#3:STAxch:LDA#19:STAych |
| 1010.complete CPY#&19:BEQcongu:JSRscreen:JMPscrdisp:.congu LDA#(cmptxt MOD 256):STA&72:LDA#(cmptxt DIV 256):STA&73:LDA#4:STAcol:LSRA:STAxch:LDA#14:STAych:JSRstring:INC&72:LDA#3:STAxch:LDA#19:STAych | |
| 1020JSRstring:.theend JMPtheend | 1020JSRstring:.theend JMPtheend |
| 1030.mainclear LDAmtype:BEQnoclearm:LDAxpos:CMPxmoo:BNEmci:LDAypos:CMPymoo:BEQmcii:.mci LDAclearup:BEQnoclearm:.mcii LDA#1:STAchanged:JSRdelyou | 1030.mainclear LDAmtype:BEQnoclearm:LDAxpos:CMPxmoo:BNEmci:LDAypos:CMPymoo:BEQmcii:.mci LDAclearup:BEQnoclearm:.mcii LDA#1:STAchanged:JSRdelyou |
| 1040LDAsound:BEQnohiss:LDA#7:LDX#(splat MOD 256):LDY#(splat DIV 256):JSRosword:.nohiss LDXxpos:LDYypos:JSRmcd:LDA#0:STAwiper:STAwiperm:LDXxmont:LDYymont:JMPmcd:.noclearm RTS | 1040LDAsound:BEQnohiss:LDA#7:LDX#(splat MOD 256):LDY#(splat DIV 256):JSRosword:.nohiss LDXxpos:LDYypos:JSRmcd:LDA#0:STAwiper:STAwiperm:LDXxmont:LDYymont:JMPmcd:.noclearm RTS |
| 1050.dispmon LDAwiper:PHA:LDA&78:PHA:LDA&79:PHA:LDAfine:PHA:LDAxpos:PHA:LDAypos:PHA:LDAxmont:STAxpos:LDAymont:STAypos:LDAmfine:STAfine:LDA&7A:STA&78:LDA&7B:STA&79 | 1050.dispmon LDA&78:PHA:LDA&79:PHA:LDAfine:PHA:LDAxpos:PHA:LDAypos:PHA:LDAxmont:STAxpos:LDAymont:STAypos:LDAmfine:STAfine:LDA&7A:STA&78:LDA&7B:STA&79 |
| 1060LDA#3:STAwirep+1:STAmflag:LDAwiperm:BEQdmnwpe:JSRwipeshr:.dmnwpe LDAmtype:BEQnodpmn:JSRdispshr:LDAwiper:.nodpmn STAwiperm:LDA&78:STA&7A:LDA&79:STA&7B:PLA:STAypos:PLA:STAxpos:PLA:STAfine:PLA:STA&79:PLA:STA&78:PLA:STAwiper | 1060LDA#3:STAwirep+1:STAmflag:LDAwiperm:BEQdmnwpe:JSRwipeshr:.dmnwpe LDAmtype:BEQnodpmn:JSRdisps2:.nodpmn STAwiperm:LDA&78:STA&7A:LDA&79:STA&7B:PLA:STAypos:PLA:STAxpos:PLA:STAfine:PLA:STA&79:PLA:STA&78 |
| 1065LDA#0:STAmflag:.nomonsr RTS | 1065LDA#0:STAmflag:.nomonsr RTS |
| 1070.monset LDAyscr:ASL A:ASL A:ASL A:ASL A:CLC:ADCxscr:ADC#&20:STA&71:LDY#0:STY&70:INY:STYmfine:LDY#&FB:LDA(&70),Y:ASL A:ROL A:ROL A:AND#3:TAX:LDAmonpd,X:STAxmont | 1070.monset LDAyscr:ASL A:ASL A:ASL A:ASL A:CLC:ADCxscr:ADC#&20:STA&71:LDY#0:STY&70:INY:STYmfine:LDY#&FB:LDA(&70),Y:ASL A:ROL A:ROL A:AND#3:TAX:LDAmonpd,X:STAxmont |
| 1080INY:LDA(&70),Y:ASL A:ROL A:ROL A:AND#3:TAX:LDAmonpd,X:STAymont:INY:LDA(&70),Y:ASL A:ROL A:ROL A:AND#3:STAmtype:LDA#&FF:STAmdir:.lasexit RTS | 1080INY:LDA(&70),Y:ASL A:ROL A:ROL A:AND#3:TAX:LDAmonpd,X:STAymont:INY:LDA(&70),Y:ASL A:ROL A:ROL A:AND#3:STAmtype:LDA#&FF:STAmdir:.lasexit RTS |
| 1090.monpro LDAxmont:STAxmoo:LDAymont:STAymoo:LDA#0:STAclearup:LDAmtype:BEQlasexit:CMP#3:BNEnomonstl:LDA#0:STAmfine:STAmonstat:.nomonstl LDAxpos:CMPxmont:BNEmontch:LDAypos:CMPymont:BNEmontch:LDA#1:STAclearup:LDAfnst:BEQmontch | 1090.monpro LDAxmont:STAxmoo:LDAymont:STAymoo:LDA#0:STAclearup:LDAmtype:BEQlasexit:CMP#3:BNEnomonstl:LDA#0:STAmfine:STAmonstat:.nomonstl LDAxpos:CMPxmont:BNEmontch:LDAypos:CMPymont:BNEmontch:LDA#1:STAclearup:STApowchange:LDAfnst:BEQmontch |
| 1100LDApower:SEC:SBC#8:STApower:BCSmontche:PLA:PLA:JMPkillu | 1100LDApower:SEC:SBC#8:STApower:BCSmontche:PLA:PLA:JMPkillu |
| 1110.montche LDAmtype:CMP#3:BNEmontch:PLA:PLA:JMPzap:.montch JSRmovemst:LDAxpos:CMPxmont:BNElasexit:LDAypos:CMPymont:BNElasexit:LDA#1:STAclearup:LDApower:SEC:SBC#8:STApower:BCSlasexit:PLA:PLA:JMPkillu | 1110.montche LDAmtype:CMP#3:BNEmontch:PLA:PLA:JMPzap:.montch JSRmovemst:LDAxpos:CMPxmont:BNElasexit:LDAypos:CMPymont:BNElasexit:LDA#1:STAclearup:STApowchange:LDApower:SEC:SBC#8:STApower:BCSlasexit:PLA:PLA:JMPkillu |
| 1120.laser LDA#&81:LDX#&A6:LDY#&FF:JSRosbyte:BCClasexit:LDAlastat:BNElasexit:LDAsound:BEQnolassd:LDA#7:LDX#(switn MOD256):LDY#(switn DIV256):JSRosword:.nolassd LDApower:SEC:SBC#4:STApower | 1120.laser LDA#&81:LDX#&A6:LDY#&FF:JSRosbyte:BCClasexit:LDAlastat:BNElasexit:LDAsound:BEQnolassd:LDA#7:LDX#(switn MOD256):LDY#(switn DIV256):JSRosword:.nolassd LDApower:STApowchange:SEC:SBC#4:STApower |
| 1130BCSlasokay:.lasdie PLA:PLA | 1130BCSlasokay:.lasdie PLA:PLA |
| 1140.killu JSRgameover:JMPprog:.lasokay LDAxmont:CMPxpos:BNEnotont:LDAymont:CMPypos:BNEnotont:LDA#0:STAmtype:RTS:.notont SEI | 1140.killu JSRgameover:JMPprog:.lasokay LDAxmont:CMPxpos:BNEnotont:LDAymont:CMPypos:BNEnotont:LDA#0:STAmtype:RTS:.notont SEI |
| 1150LDAscroll:CLC:ADC#&27:STAlasad:LDAscroll+1:ADC#&24:JSRscrolw:STAlasad+1 | 1150LDAscroll:CLC:ADC#&27:STAlasad:LDAscroll+1:ADC#&24:JSRscrolw:STAlasad+1 |
| 1160LDAface:STAlasdir:BEQlefire:LDAlasad:CLC:ADC#&40:STAlasad:LDAlasad+1:ADC#0:JSRscrolw:STAlasad+1:LDA#9:SEC:SBCxpos:LDXxpos:CPX#1:BEQcorrigf:CPX#5:BEQcorrigf:BNEfinfire:.corrigf JMPfinfire | 1160LDAface:STAlasdir:BEQlefire:LDAlasad:CLC:ADC#&40:STAlasad:LDAlasad+1:ADC#0:JSRscrolw:STAlasad+1:LDA#9:SEC:SBCxpos:LDXxpos:CPX#1:BEQcorrigf:CPX#5:BEQcorrigf:BNEfinfire:.corrigf JMPfinfire |
| 1170.lefire DEClasad+1:LDAxpos:.finfire ASL A:ASL A:ASL A:CMP#&20:BCCshrange:LDA#&1F:.shrange STAlastat:LDA#0:STAlastep | 1170.lefire DEClasad+1:LDAxpos:.finfire ASL A:ASL A:ASL A:CMP#&20:BCCshrange:LDA#&1F:.shrange STAlastat:LDA#0:STAlastep |
| 1180LDA#1:LDXface:BNElealt:LDA#&FF:.lealt CLC:ADCxpos:STAxf:STAxset:LDAypos:STAyset:STAyf:JSRgetblock+3:CMP#&10:BCCnoobstr:LDA#0:STAlastat:.noobstr CLI:JMPwait | 1180LDA#1:LDXface:BNElealt:LDA#&FF:.lealt CLC:ADCxpos:STAxf:STAxset:LDAypos:STAyset:STAyf:JSRgetblock+3:CMP#&10:BCCnoobstr:LDA#0:STAlastat:.noobstr CLI:JMPwait |
| 1190.dispyou LDA#8:STAwirep+1:LDAwiper:BEQdynwpe:JSRwipeshr:.dynwpe JMPdispshr | 1190.dispyou LDA#8:STAwirep+1:LDAwiper:BEQdynwpe:JSRwipeshr:.dynwpe JMPdisps1 |
| 1200.deadedch LDAdeaded:BEQnotdeadd:LDAmtype:CMP#3:BEQnodisp:LDA#0:STAmtype | 1200.deadedch LDAdeaded:BEQnotdeadd:LDAmtype:CMP#3:BEQnodisp:LDA#0:STAmtype:.nodisp LDA&7A:CLC:ADC#&80:STA&70:LDA&7B:ADC#2:STA&71:LDY#31:.deada LDA&380,Y:STA(&7A),Y:LDA&3A0,Y:STA(&70),Y:DEY:BNEdeada |
| 1210.nodisp LDApower:CLC:ADC#4:BCCoverpowm:LDA#254:.overpowm STApower:LDA#0:STAdeaded:.notdeadd RTS | 1210LDApower:STApowchange:CLC:ADC#4:BCCoverpowm:LDA#254:.overpowm STApower:LDA#0:STAdeaded:.notdeadd RTS |
| 1220.irq LDA&80:CMPclock:BEQnohelpc:INCclock:.nohelpc LDAlastat:BEQnolas:LDAmtype:BEQnohitm:LDAxmont:CMPxf:BNEnohitm:LDAymont:CMPyf:BNEnohitm:LDA#1:STAlastat:STAdeaded | 1220.irq LDA&80:CMPclock:BEQnohelpc:INCclock:.nohelpc LDAlastat:BEQnolas:LDAmtype:BEQnohitm:LDAxmont:CMPxf:BNEnohitm:LDAymont:CMPyf:BNEnohitm:LDA#1:STAlastat:STAdeaded |
| 1230.nohitm JSRsavevar:DEClastat:LDAlastep:CLC:ADC#8:STAlastep:LDAlasdir | 1230.nohitm JSRsavevar:DEClastat:LDAlastep:CLC:ADC#8:STAlastep:LDAlasdir |
| 1240BEQlasleft:BNElasright:.nolas JMP(vector) | 1240BEQlasleft:BNElasright:.nolas JMP(vector) |
| 1250.lasright LDYlastep:JSRlaseorp:CPY#&28:BCCridel:TYA:SEC:SBC#&20:JSRlaseory:.ridel LDAlastat:BNEricont:LDAlastep:SEC:SBC#&18:BCSnormn:LDA#0:.normn TAY | 1250.lasright LDYlastep:JSRlaseorp:CPY#&28:BCCridel:TYA:SEC:SBC#&20:JSRlaseory:.ridel LDAlastat:BNEricont:LDAlastep:SEC:SBC#&18:BCSnormn:LDA#0:.normn TAY |
| 1260.ristop JSRlaseorp | 1260.ristop JSRlaseorp |
| 1270CPYlastep:BEQricontb:TYA:CLC:ADC#8:TAY:JMPristop:.ricontb JSRdelyou:.ricont LDAlastep:AND#&3F:BNErwall:INCxf:LDAxf:STAxset:LDAyf:STAyset:JSRgetblock+3:CMP#&10:BCCrwall:LDA#1:STAlastat:.rwall JMPloadvar | 1270CPYlastep:BEQricontb:TYA:CLC:ADC#8:TAY:JMPristop:.ricontb JSRdelyou:.ricont LDAlastep:AND#&3F:BNErwall:INCxf:LDAxf:STAxset:LDAyf:STAyset:JSRgetblock+3:CMP#&10:BCCrwall:LDA#1:STAlastat:.rwall JMPloadvar |
| 1280.lasleft LDA#0:SEC:SBClastep:JSRlaseory:CPY#&E0:BCSledel:TYA:CLC:ADC#&20:JSRlaseory:.ledel LDAlastat:BNElecont:LDA#0:SEC:SBClastep:STAlastep:CLC:ADC#&18:BCCnorln:LDA#&F8 | 1280.lasleft LDA#0:SEC:SBClastep:JSRlaseory:CPY#&E0:BCSledel:TYA:CLC:ADC#&20:JSRlaseory:.ledel LDAlastat:BNElecont:LDA#0:SEC:SBClastep:STAlastep:CLC:ADC#&18:BCCnorln:LDA#&F8 |
| 1290.norln TAY | 1290.norln TAY |
| 1300.lestop JSRlaseorp:CPYlastep:BEQlecontb:TYA:SEC:SBC#8:TAY:JMPlestop:.lecontb JSRdelyou:.lecont LDAlastep:AND#&3F:BNElwall:DECxf:LDAxf:STAxset:LDAyf:STAyset | 1300.lestop JSRlaseorp:CPYlastep:BEQlecontb:TYA:SEC:SBC#8:TAY:JMPlestop:.lecontb JSRdelyou:.lecont LDAlastep:AND#&3F:BNElwall:DECxf:LDAxf:STAxset:LDAyf:STAyset |
| 1310JSRgetblock+3:CMP#&10:BCClwall:LDA#1:STAlastat:.lwall JMPloadvar | 1310JSRgetblock+3:CMP#&10:BCClwall:LDA#1:STAlastat:.lwall JMPloadvar |
| 1320.laseorp TYA:.laseory TAX:CLC:ADClasad:STA&70:LDAlasad+1:ADC#0:JSRscrolw:LDY#0:LDA(&70),Y:EOR#&3F:STA(&70),Y:TXA:TAY:.adjust RTS | 1320.laseory TAY:.laseorp LDA(lasad),Y:EOR#&3F:STA(lasad),Y:.adjust RTS |
| 1330EQUB10:EQUB-10:EQUB10:EQUB-10:EQUB0:EQUB0:EQUB10:.adjusty EQUB-10:EQUB0:EQUB0:EQUB0:EQUB0:EQUB-10:EQUB10:EQUB0:.key1 EQUB0 | 1330EQUB10:EQUB-10:EQUB10:EQUB-10:EQUB0:EQUB0:EQUB10:.adjusty EQUB-10:EQUB0:EQUB0:EQUB0:EQUB0:EQUB-10:EQUB10:EQUB0:.key1 EQUB0 |
| 1340EQUB&9E:EQUB&BD:EQUB&9E:EQUB&BD:EQUB0:EQUB0:EQUB&9E:EQUB&BD:.key2 EQUB0:EQUB0:EQUB0:EQUB&B6:EQUB&B6:EQUB&97:EQUB&B6:EQUB&97:.adlo EQUB&97 | 1340EQUB&9E:EQUB&BD:EQUB&9E:EQUB&BD:EQUB0:EQUB0:EQUB&9E:EQUB&BD:.key2 EQUB0:EQUB0:EQUB0:EQUB&B6:EQUB&B6:EQUB&97:EQUB&B6:EQUB&97:.adlo EQUB&97 |
| 1342EQUB8:EQUB8:EQUB8:EQUB&68:EQUB8:EQUB8:.adhi EQUB8:EQUB0:EQUB0:EQUB0:EQUB2:EQUB0:EQUB0:EQUB0 | 1342EQUB8:EQUB8:EQUB8:EQUB&68:EQUB8:EQUB8:.adhi EQUB8:EQUB0:EQUB0:EQUB0:EQUB2:EQUB0:EQUB0:EQUB0 |
| 1350]:IF P%>&2000 THEN PRINT''"Code Overflow to:";~P%:END | 1350]:IF P%>&2000 THEN PRINT''"Code Overflow to:";~P%:END |
| 1360PRINTTAB(15,3)~P%; | 1360PRINTTAB(15,3)~P%; |
| 1370P%=&900:O%=&3E00:[OPT pass | 1370P%=&900:O%=&3E00:[OPT pass |
| 1380.savevar LDA&70:STA&88:LDA&71:STA&89:LDA&72:STA&8A:LDA&73:STA&8B:LDAxset:STA&8C:LDAyset:STA&8D:STX&8F:STY&87:RTS | 1380.savevar LDA&70:STA&88:LDA&71:STA&89:LDA&72:STA&8A:LDA&73:STA&8B:LDAxset:STA&8C:LDAyset:STA&8D:STX&8F:STY&87:RTS |
| 1390.loadvar LDA&88:STA&70:LDA&89:STA&71:LDA&8A:STA&72:LDA&8B:STA&73:LDA&8C:STAxset:LDA&8D:STAyset:LDX&8F:LDY&87:JMP(vector) | 1390.loadvar LDA&88:STA&70:LDA&89:STA&71:LDA&8A:STA&72:LDA&8B:STA&73:LDA&8C:STAxset:LDA&8D:STAyset:LDX&8F:LDY&87:JMP(vector) |
| 1400.xmom LDXxmont:CPXxpos:BEQonyou:BCCritemt:DEX:JSRlrxmsh:BCSonyou:DECxmont:LDA#1:.xmend STAmfine:RTS | 1400.xmom LDXxmont:CPXxpos:BEQonyou:BCCritemt:DEX:JSRlrxmsh:BCSonyou:DECxmont:LDA#1:.xmend STAmfine:RTS |
| 1410.ritemt INX:JSRlrxmsh:BCSonyou:INCxmont:LDA#2:BNExmend:.onyou LDA#0:BEQxmend:.lrxmsh STXxset:LDAymont:STAyset:JSRgetblock+3:CMP#&10:RTS | 1410.ritemt INX:JSRlrxmsh:BCSonyou:INCxmont:LDA#2:BNExmend:.onyou LDA#0:BEQxmend:.lrxmsh STXxset:LDAymont:STAyset:JSRgetblock+3:CMP#&10:RTS |
| 1420.cmptxt EQUB3:EQUB22:EQUB13:EQUB7:EQUB15:EQUB1:EQUB17:EQUB18:EQUB11:EQUB1:EQUB17:EQUB23:EQUB22:EQUB13:EQUB16:EQUB&FF | 1420.cmptxt EQUB3:EQUB22:EQUB13:EQUB7:EQUB15:EQUB1:EQUB17:EQUB18:EQUB11:EQUB1:EQUB17:EQUB23:EQUB22:EQUB13:EQUB16:EQUB&FF |
| 1425.cmptxtb EQUB3:EQUB22:EQUB4:EQUB5:EQUB0:EQUB23:EQUB16:EQUB0:EQUB0:EQUB27:EQUB26:EQUB24:EQUB28:EQUB&FF | 1425.cmptxtb EQUB3:EQUB22:EQUB4:EQUB5:EQUB0:EQUB23:EQUB16:EQUB0:EQUB0:EQUB27:EQUB26:EQUB24:EQUB28:EQUB&FF |
| 1430.movemst LDAmtype:CMP#2:BEQypatrol:CMP#1:BNEmovemqut | 1430.movemst LDAmtype:CMP#2:BEQypatrol:CMP#1:BNEmovemqut |
| 1440.xpatrol LDAxmont:BEQrevdir:CMP#9:BEQrevdir:ADCmdir:STAxset:LDAymont:STAyset:JSRgetblock+3:CMP#&10:BCSrevdir:INCyset:JSRgetblock+3:CMP#&10:BCCrevdir:LDAxset:STAxmont:.movemqut RTS | 1440.xpatrol LDAxmont:BEQrevdir:CMP#9:BEQrevdir:ADCmdir:STAxset:LDAymont:STAyset:JSRgetblock+3:CMP#&10:BCSrevdir:INCyset:JSRgetblock+3:CMP#&10:BCCrevdir:LDAxset:STAxmont:.movemqut RTS |
| 1450.revdir LDAmdir:EOR#&FE:STAmdir:CLC:ADCxmont:STAxmont:LDAmfine:EOR#3:STAmfine:RTS | 1450.revdir LDAmdir:EOR#&FE:STAmdir:CLC:ADCxmont:STAxmont:LDAmfine:EOR#3:STAmfine:RTS |
| 1460.ypatrol LDXymont:CPXypos:BEQxadjb:BCCdownmt:DEX:JSRypshr:DECymont:LDA#6:STAmfine:RTS:.ypshr STXyset:LDAxmont:STAxset:JSRgetblock+3:CMP#&10:BCSxadj:RTS | 1460.ypatrol LDXymont:CPXypos:BEQxadjb:BCCdownmt:DEX:JSRypshr:DECymont:LDA#6:STAmfine:RTS:.ypshr STXyset:LDAxmont:STAxset:JSRgetblock+3:CMP#&10:BCSxadj:RTS |
| 1470.downmt INX:JSRypshr:INCymont:LDA#5:STAmfine:RTS:.xadj PLA:PLA:.xadjb JMPxmom | 1470.downmt INX:JSRypshr:INCymont:LDA#5:STAmfine:RTS:.xadj PLA:PLA:.xadjb JMPxmom |
| 1490]:IF P%>&4100 THEN PRINT''"Code Overflow to:";~P%:END | 1490]:IF P%>&4100 THEN PRINT''"Code Overflow to:";~P%:END |
| 1500PRINTTAB(15,3)~P%; | 1500PRINTTAB(15,3)~P%; |
| 1510ENDPROC | 1510ENDPROC |
.