Krool885 Posted December 25, 2022 Share Posted December 25, 2022 Hello! I am working on a 2600 game, I'm quite happy with my progress so far but I am struggling to understand how to fix a problem I've ran into. No one else seems to have an issue with it, which is why I thought I'd ask the experts (hopefully!) My vertical movement is working fine and I'm happy with it, however my graphics, stored in a table (visible at line 33), seems to execute as code, as sometimes the graphics become illegal opcodes in the emulators debug view and break everything (oh and I reference the table directly now because the pointer I was told to set up not only worked less, but it still inserted random code into my program) (as seen at Lf009 in the log). Nobody else seems to have had this issue as I can't find anything on these forums or anywhere else, so hopefully someone here can explain what's wrong with it or point me somewhere with a solution to this! Thanks in advance! Quote Link to comment Share on other sites More sharing options...
+splendidnut Posted December 25, 2022 Share Posted December 25, 2022 Your P0Graphic data is in the middle of code: once the "Clear" loop finishes, the very next byte the CPU encounters is your graphics data. You either need to move the data, or jump over it. 1 Quote Link to comment Share on other sites More sharing options...
Krool885 Posted December 25, 2022 Author Share Posted December 25, 2022 Worked a treat! Thank you so much! 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.