Originally posted by mikeyk
What goes wrong when you're using Y? Depending on where the code is, you might need to be preserving the value of Y with phy/ply. My only other thought is that something isn't getting assembled properly. What assembler are you using and what is the resulting hex for the code you posted?
It looks like it load the wrong adress (but it loads the correct one), the values are not correct.
I did phy/ply, I just posted a shorter version of the code. Here's the full part:
ldy $19 ;index = current powerup
ADC #$FF ;ypos highbyte
I'm using Xkas and this is the hexcode:
$1a:ce75 = f8 ff ff ff
a4 19 b9 75 ce 18 65 02 95 d8 ..
Originally posted by Bio
Are you sure this isn't because the 65816 don't have long adressing indexed with Y, only indexed with X, try adding:
before attempting to load the data at shellpos
I tried that, but it causes graphical glitches and the shell is still in the wrong position.