ITotalJustice / TotalSMS

Sega Master System emulator
https://itotaljustice.github.io/TotalSMS/
MIT License
23 stars 4 forks source link

Columns - 0xFDCD opcode #7

Closed ITotalJustice closed 3 years ago

ITotalJustice commented 3 years ago

somehow the game executes a 0xFDCD opcode when pressing start, which isn't valid.

this is likely because a conditional jump happens before, which fails because of incorrect flags.

ITotalJustice commented 3 years ago

found the bug https://github.com/ITotalJustice/TotalSMS/blob/9c120ed3b13c00acee397311ba2ec85cf2ae3c1a/src/cpu.c#L1542