# HG changeset patch # User Michael Pavone # Date 1393722453 28800 # Node ID 316facea756d21c3556f5e9c49654b1b31e55db6 # Parent c8fefa140c8029b0584784f6e7ec9f17ee75a8c3 Fix PC displacement mode check in disassembler so that jmps involving a register are handled correctly diff -r c8fefa140c80 -r 316facea756d dis.c --- 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)) {