vgm-disasm icon indicating copy to clipboard operation
vgm-disasm copied to clipboard

Fix disassemblies with incorrect destinations from bbs, bbc, cbne and dbnz opcodes

Open KungFuFurby opened this issue 3 years ago • 0 comments

Initially caught in the Super Mario World disassembly via a dbnz opcode on a direct page location, but there could be others. Related to #2 , and thus the same list can be technically used for a start, though the scope may need to be expanded.

The opcodes that could be affected by this bug are bbs, bbc, cbne and dbnz (only when using a direct page location).

The disassembly bug was fixed by https://github.com/gocha/spcdas/commit/f2d8fe65f7c26745fa20db2a7d2f3ca84b9a9501 at the same time as #2's disassembly bug was, which means this is only present to repair the output.

KungFuFurby avatar Nov 15 '21 20:11 KungFuFurby