summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/m6502/m6502.c
diff options
context:
space:
mode:
author R. Belmont <rb6502@users.noreply.github.com>2013-01-20 19:47:38 +0000
committer R. Belmont <rb6502@users.noreply.github.com>2013-01-20 19:47:38 +0000
commit18a0b2a85a53d2173ca75d17085aaac6a5a60267 (patch)
tree04433a6ceb6aefa9804066c4b215d20b55a0346a /src/emu/cpu/m6502/m6502.c
parentfcd97973dd4eda72763a7ff6409372ee4e7dd2ce (diff)
m740: Correct disassembly for bit+zp+rel. offset form of BBC/BBS [R. Belmont]
Diffstat (limited to 'src/emu/cpu/m6502/m6502.c')
-rw-r--r--src/emu/cpu/m6502/m6502.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/cpu/m6502/m6502.c b/src/emu/cpu/m6502/m6502.c
index f44a7181c37..d944a433415 100644
--- a/src/emu/cpu/m6502/m6502.c
+++ b/src/emu/cpu/m6502/m6502.c
@@ -617,6 +617,11 @@ offs_t m6502_device::disassemble_generic(char *buffer, offs_t pc, const UINT8 *o
flags |= 2;
break;
+ case DASM_bzr:
+ sprintf(buffer, " %d, $%02x, $%04x", (opram[0] >> 5) & 7, opram[1], (pc & 0xf0000) | UINT16(pc + 1 + INT8(opram[2])));
+ flags |= 3;
+ break;
+
default:
fprintf(stderr, "Unhandled dasm mode %d\n", e.mode);
abort();