Jump to content
IGNORED

My game crashes.


Recommended Posts

I have a problem. In "Oh Well" in my :Going Bananas" game, version 7, when I get around 60 or so fruits falling down (they don't have to be in the same round), the sfx quit working correctly, and then I get a message in Stella saying "Invalid ROM instruction" or something like that and the game crashes. I don't know why. I cleaned up the code a lot, and I know it's probably not going to happen anyway but I just thought I should ask, but I need someone to look through the Oh Well part of the code (lines 664-1738) and find out why? Because I can't figure out why it's doing this. This never happened to me before, having Stella tell me my game crashed.

 

goingbananas7.asm

Link to comment
Share on other sites

I think I fixed it.

 

I think the problem was I had put too many rts in there. I'm guessing the result was it had jumped to code that wasn't ready to be executed yet and so it acted crazy up until it didn't work any more.

Link to comment
Share on other sites

I was just about to post.  I looked at it, and your stack was getting bigger and bigger and bigger with $f418 as the return address, and it eventually was overwriting all the RAM.

 

Link to comment
Share on other sites

I'm having another small problem: I don't understand the "and" function. I'm needing a number between 1-16. Wouldn't this:

	jsr Random
	and #15
	sta FlyMoveTimerLimit

get FlyMoveTimerLimit a number between 0-15? And yet the fly doesn't seem to want to change its direction very much if at all.

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...