z80 disassembler: handle address wrap

This commit is contained in:
alyosha-tas 2018-03-15 20:58:08 -04:00
parent 8ebcadbc58
commit 396f875ac2
1 changed files with 6 additions and 0 deletions

View File

@ -435,6 +435,12 @@ namespace BizHawk.Emulation.Cores.Components.Z80A
addr += extra_inc;
size = addr - start_addr;
// handle case of addr wrapping around at 16 bit boundary
if (addr < start_addr)
{
size = addr + 1;
}
return temp;
}