+atari2600land Posted May 6, 2023 Share Posted May 6, 2023 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 Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted May 6, 2023 Share Posted May 6, 2023 I just played until 150 points and experienced no crash. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 7, 2023 Author Share Posted May 7, 2023 I get this: Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 7, 2023 Author Share Posted May 7, 2023 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. Quote Link to comment Share on other sites More sharing options...
glurk Posted May 7, 2023 Share Posted May 7, 2023 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. Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted May 7, 2023 Share Posted May 7, 2023 Hm, what I played looked nothing like this. Quote Link to comment Share on other sites More sharing options...
+Andrew Davie Posted May 7, 2023 Share Posted May 7, 2023 3 hours ago, Thomas Jentzsch said: Hm, what I played looked nothing like this. It's got two menu options at the start. Gives two different games, by the look of it. 1 Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 8, 2023 Author Share Posted May 8, 2023 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. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted May 8, 2023 Author Share Posted May 8, 2023 Never mind. I figured it out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.