Sorry I didn't respond earlier this week.
I tested this on a build of FCEUX that has random memory initialization, saw something off and then looked at the github source.
Code: Select all
txa ; X still = 0; clear A with this
lda $55
@clrmem:
sta $000, x
sta $100, x
...
The line 85
lda $55 hastily inserted from commit "Quick nearly done" seems wrong. From instruction before it you seem to want to clear all memory to $00. Also because a "
#" is missing means that whole memory range gets written with whatever was the contents of RAM location $55, and not a literal #$55.
If you feel it'll be better for us just to nop that out, it's compiled at b162~b163.