vdub_bobby Posted August 16, 2023 Share Posted August 16, 2023 Hi, I've been banging my head against a bug in my tank game and I'm stepping through the debugger in Stella and seeing something weird - it looks like when I execute this: ldx #1 lda (CXM0P,X) that it is not loading the value from CXM1P but is instead loading the values from CXM0P. Is this expected? Or am I missing something really obvious? Quote Link to comment Share on other sites More sharing options...
+batari Posted August 16, 2023 Share Posted August 16, 2023 Sounds like you meant to use lda CXM0P,X rather than lda (CXM0P,X)? Quote Link to comment Share on other sites More sharing options...
vdub_bobby Posted August 16, 2023 Author Share Posted August 16, 2023 (edited) Thank you, that fixed it. I figured it was something dumb. EDIT: My goodness just rereading my code and docs and can't believe I made that dumb mistake. 🤦♂️ Edited August 16, 2023 by vdub_bobby 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.