Jump to content
IGNORED

Playaround Demo


JerryG

Recommended Posts

Here is the checksum from the demo, and the checksum from Bachelor Party side by side. After accounting for the different registers that are used then they are almost exactly the same routine.

 

 

			DEMO					 BACHELOR PARTY

   lda	#$30				  lda	#$30
   sta	romHigh			   sta	romHigh
   lda	#0
   sta	checksumVal								   ; the demo reclears these
   sta	romLow
.loop:					   .loop:
   ldy	#0					ldy	#0
   lda	(romAddress),Y		lda	(romAddress),Y
   clc						  clc
   adc	checksumVal		   adc	checksumVal
   sta	checksumVal		   sta	checksumVal
   inc	romLow				inc	romLow
   bne	.loop				 bne	.loop
   sec						  sec
   lda	#0					lda	#0
   adc	romHigh			   adc	romHigh
   sta	romHigh			   sta	romHigh
   cmp	#$40				  cmp	#$40
   bne	.loop				 bne	.loop
   lda	CHECKSUM_VALUE		lda	CHECKSUM_VALUE
   cmp	checksumVal		   cmp	checksumVal
   bne	.crash				bne	.crash
   rts						  rts

.crash:					  .crash:
   lda	#$F1				  lda	#9			   ; different audio value
   sta	AUDC0				 sta	AUDC0
   sta	AUDF0				 sta	AUDF0
   sta	AUDV0				 sta	AUDV0
   jmp	($3FFE)			   jmp	($3FFE)

 

The difference though is Bachelor Party does use a origin of $3000, and the demo uses $F000. From what I saw this was the only bit of code in the demo that used $3000 as an origin. So it seems it came from Bachelor Party.

 

 

I did a search through all the Mystique/Playaround roms for 60,FE,3F in HOM3, which translates into jmp ($3FFE). Bachelor Party was the only hit. The checksum routine is in both the Mystique and Playaround versions of Bachleor Party, as well as the Demo of course.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...