Mercurial > repos > blastem
changeset 564:316facea756d
Fix PC displacement mode check in disassembler so that jmps involving a register are handled correctly
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 01 Mar 2014 17:07:33 -0800 |
parents | c8fefa140c80 |
children | 9324f721efa6 |
files | dis.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dis.c Mon Feb 24 09:55:24 2014 -0800 +++ b/dis.c Sat Mar 01 17:07:33 2014 -0800 @@ -1,6 +1,6 @@ /* Copyright 2013 Michael Pavone - This file is part of BlastEm. + This file is part of BlastEm. BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. */ #include "68kinst.h" @@ -192,7 +192,7 @@ if (is_visited(address)) { break; } - } else if (instbuf.src.addr_mode = MODE_PC_DISPLACE) { + } else if (instbuf.src.addr_mode == MODE_PC_DISPLACE) { address = instbuf.src.params.regs.displacement + instbuf.address + 2; encoded = filebuf + address/2; if (is_visited(address)) {