I started first a breakpoint on the RAM value of X position (of a sprite)
When I track down that , I find something similar to this :

I was never able to find where the Y value originates from , where $EB27 here is an unidentified block.
Moderator: Moderators
You'll just need to trace further back - if your emulator's debugger has an option to output an execution log, that'll probably help.raousoft wrote: ↑Sat Nov 28, 2020 1:51 pmHi , I am kinda noob in terms of debugging
I started first a breakpoint on the RAM value of X position (of a sprite)
When I track down that , I find something similar to this :
I was never able to find where the Y value originates from , where $EB27 here is an unidentified block.
Thanks for the information,
The way you "track that" is by reverse-engineering the program - you disassemble it, find the code that manages sprites, then figure out exactly how it works (or at least enough to solve your specific problem).raousoft wrote: ↑Sat Nov 28, 2020 2:32 pmI wanted to change the X,Y position of a sprite based text.
When I peek at the OAM RAM (Y,Tile,Attrib,X), then I perform a RAM (CPU) search and try the addresses till the text change position.
That's how I did set up a breakpoint, now if it's getting the values from the ROM, How can I track that.
Quietust gave excellent advice, but I’ll dive a little into getting you started... hope that’s ok.raousoft wrote: ↑Sat Nov 28, 2020 1:51 pmHi , I am kinda noob in terms of debugging
I started first a breakpoint on the RAM value of X position (of a sprite)
When I track down that , I find something similar to this :
I was never able to find where the Y value originates from , where $EB27 here is an unidentified block.
Code: Select all
lda ($00), y @ $EB27 = $30
Thank you so much, you made many things clear to me