Cisano Posted July 4 Share Posted July 4 Hi. I am near to finish my new game. Testing it sometimes the audio has a problem. It happens rarely and when happens I can see the variable used for the audio with a wrong value. I dont know Who writes there that value. Therefore my question is... Can Stella help me to find the guilty instruction? Thanks. Quote Link to comment Share on other sites More sharing options...
Piledriver Posted July 4 Share Posted July 4 Find the "Stella 6.7 Debugging" document and read up on traps. 1 Quote Link to comment Share on other sites More sharing options...
glurk Posted July 4 Share Posted July 4 Only a possibility, but the stack (normally) starts at $FF and works downward, so maybe you have subroutine calls clobbering high ram variables. As noted, Stella's debugger can catch it easily with a trap. Quote Link to comment Share on other sites More sharing options...
Lazycow Posted July 4 Share Posted July 4 You could swap the sound-variable with another variable where a value change is visible immediately. (e.g. a sprite coordinate) That could give you a hint. Quote Link to comment Share on other sites More sharing options...
Cisano Posted July 4 Author Share Posted July 4 Thanks. I'll try with this tools inside Stella. Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted July 4 Share Posted July 4 Also make sure that you enable the developer options in the settings. Quote Link to comment Share on other sites More sharing options...
+Karl G Posted July 4 Share Posted July 4 If you are still stuck, one way to track it down would be to temporarily disable your normal writes to this variable, and then do a "trapwrite <varname>" when running your game. If something else writes to that address, then it will bring up the debugger when it happens so you can see what the culprit is. 3 Quote Link to comment Share on other sites More sharing options...
Cisano Posted July 14 Author Share Posted July 14 (edited) Thanks to everyone. I fixed that problema but now I have 2 bugs are driving me crazy. I go in debug console of Stella when I see the bug and using rewind command, I set the emulator just before it happens. Going forward frame by frame... the game doesn't show the bug. All is correct. Why? Thanks. Edited July 14 by Cisano Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted July 14 Share Posted July 14 Assuming you have developer options enabled, I would guess unused bit randomization strikes. Probably you are doing an immediate LDA/X/Y without the # prefix. Quote Link to comment Share on other sites More sharing options...
Cisano Posted July 14 Author Share Posted July 14 6 hours ago, Thomas Jentzsch said: Assuming you have developer options enabled, I would guess unused bit randomization strikes. Probably you are doing an immediate LDA/X/Y without the # prefix. I am trying to find it. Thanks for the info. 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.