snicklin Posted December 1, 2019 Share Posted December 1, 2019 (edited) Hi, My Altirra 3.90 test 19 (and same issue with 18 and even 3.20 test 1) is crashing when running my code. I suspect that it has nothing to do with the emulator, more my code, but I am seeing some odd behaviour. Can anyone explain this? I hope that I have provided sufficient information. Edited December 1, 2019 by snicklin Quote Link to comment Share on other sites More sharing options...
phaeron Posted December 1, 2019 Share Posted December 1, 2019 'o' is Step Over and will continue execution until after the subroutine at the JSR target address completes. You want Step Into ('t') to step into the subroutine. Using either of these to diagnose the problem is a waste of time, though. Just use the History window and follow execution backwards to see where execution got derailed. 2 Quote Link to comment Share on other sites More sharing options...
snicklin Posted December 1, 2019 Author Share Posted December 1, 2019 8 minutes ago, phaeron said: 'o' is Step Over and will continue execution until after the subroutine at the JSR target address completes. You want Step Into ('t') to step into the subroutine. Using either of these to diagnose the problem is a waste of time, though. Just use the History window and follow execution backwards to see where execution got derailed. Thank you so much Avery! It appears that it was running code from the cartridge space $A000, while in theory it should have been running from the $2000 range. I'll sit down and work out what I've done wrong. I've just started to use the History window, by the way, it is great. You're a legend! Quote Link to comment Share on other sites More sharing options...
snicklin Posted December 1, 2019 Author Share Posted December 1, 2019 Problem fixed. Logic problem. The History window was key to me solving this, great to learn new things. 2 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.