z80 disassembler: handle address wrap
This commit is contained in:
parent
8ebcadbc58
commit
396f875ac2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue