Open Rycona opened 3 years ago
There's some code for this but it's not done. The disassembler itself tracks status, and even will mutate its internal status flag on seeing SEP/REP. But we only run the disassembler a single instruction at a time, passing 0 for flags on each invocation, so that isn't used.
@Rycona Would a checkbox to choose M flag in the disassembler be enough for most uses, or does real world code heavily interleave uses of the two?
I can get around the issue using the standalone BSNES emulator to view/change/test the ASM, so it's not a major problem. It does get a bit inconvenient as the changes I'm trying to make are related to a Lua script I'm also building to work with those ASM changes, which BSNES doesn't support, but again, that's something I can get around with some better methodology and will hopefully get easier as I learn to better comprehend the ASM.
I wouldn't press for such a fix based on solely my situation, when that effort could be placed elsewhere. Before posting, I tried to see if I could fix it myself, but I couldn't quite find where that code was in the repository. Plus, it's a bit daunting to step into such a large and diverse codespace.
I find that an immediate CMP (Op Code: 0xC9) in the Debugger window reads and displays the next 2 bytes for the constant when it should be 1. I'm assuming it's not taking the M flag into account.
I'm using the BSNES core on BizHawk 2.6.0. I didn't see any relative fixes posted for 2.6.1.