summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Roberto Fresca <robertof@mamedev.org>2008-10-06 21:57:27 +0000
committer Roberto Fresca <robertof@mamedev.org>2008-10-06 21:57:27 +0000
commitc6ec8026bc3131ae20b0552e7c97cb1315053e59 (patch)
treec30e0296b07bc920b874fd0e160c637ccbb3c5e3 /src
parent6ee556f84cce4b15927237cebac4a820d867f161 (diff)
Fixed the i8051 AJMP opcode to take 2 bytes instead of 3.
Please also credit Grull Osgo.
Diffstat (limited to 'src')
-rw-r--r--src/emu/cpu/i8051/8051dasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/cpu/i8051/8051dasm.c b/src/emu/cpu/i8051/8051dasm.c
index b511fcea5ff..11cb5e2e1d6 100644
--- a/src/emu/cpu/i8051/8051dasm.c
+++ b/src/emu/cpu/i8051/8051dasm.c
@@ -244,7 +244,7 @@ unsigned i8051_dasm(char *dst, unsigned pc, const UINT8 *oprom, const UINT8 *opr
case 0xc1:
case 0xe1:
addr = opram[PC++ - pc];
- addr|= (PC++ & 0xf800) | ((op & 0xe0) << 3);
+ addr|= (PC & 0xf800) | ((op & 0xe0) << 3);
sprintf(dst, "ajmp $%04X", addr);
break;