mirror of
https://github.com/holub/mame
synced 2025-05-25 07:15:25 +03:00
Fixed the i8051 AJMP opcode to take 2 bytes instead of 3.
Please also credit Grull Osgo.
This commit is contained in:
parent
6ee556f84c
commit
c6ec8026bc
@ -244,7 +244,7 @@ unsigned i8051_dasm(char *dst, unsigned pc, const UINT8 *oprom, const UINT8 *opr
|
|||||||
case 0xc1:
|
case 0xc1:
|
||||||
case 0xe1:
|
case 0xe1:
|
||||||
addr = opram[PC++ - pc];
|
addr = opram[PC++ - pc];
|
||||||
addr|= (PC++ & 0xf800) | ((op & 0xe0) << 3);
|
addr|= (PC & 0xf800) | ((op & 0xe0) << 3);
|
||||||
sprintf(dst, "ajmp $%04X", addr);
|
sprintf(dst, "ajmp $%04X", addr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user