diff options
author | Roberto Fresca <robertof@mamedev.org> | 2008-04-18 06:06:04 +0000 |
---|---|---|
committer | Roberto Fresca <robertof@mamedev.org> | 2008-04-18 06:06:04 +0000 |
commit | 4b86e644f9861c374c249ea5dd4807e6b163b4f1 (patch) | |
tree | 11ca78caf6677bf419cd0f5b551b2de06a8f1e83 | |
parent | e4d34cd2e774ae1acd9680e594fe89f95b81327d (diff) |
65C02/65CE02 CPUs and variants:
Fixed the 6502 family of disassemblers to show the correct bit to operate for BBR, BBS, RMB and SMB instructions.
-rw-r--r-- | src/emu/cpu/m6502/6502dasm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/emu/cpu/m6502/6502dasm.c b/src/emu/cpu/m6502/6502dasm.c index f6a0a61b085..a6fc8eb21c3 100644 --- a/src/emu/cpu/m6502/6502dasm.c +++ b/src/emu/cpu/m6502/6502dasm.c @@ -24,6 +24,8 @@ /* 4. February 2000 PeT ply inw dew */ /* 4. February 2000 PeT fixed relative word operand */ /* 9. May 2000 PeT added m4510 */ +/* 18.April 2008 Roberto Fresca fixed bbr, bbs, rmb & smb displayment, + showing the correct bit to operate */ #include "debugger.h" #include "m6502.h" @@ -589,7 +591,7 @@ static unsigned internal_m6502_dasm(const struct op6502_info *opinfo, char *buff dst += sprintf(dst, "%-5s", token[opc]); if( opc == bbr || opc == bbs || opc == rmb || opc == smb ) - dst += sprintf(dst, "%d,", (op >> 3) & 7); + dst += sprintf(dst, "%d,", (op >> 4) & 7); switch(arg) { |