diff options
author | Olivier Galibert <galibert@pobox.com> | 2012-11-07 18:30:05 +0000 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2012-11-07 18:30:05 +0000 |
commit | 80fb9099309dcda56d69e45136943c7e54f4d635 (patch) | |
tree | 9de1f0055c3f90b2256c4354828c30f13047f45a /src/emu/cpu/m6502/m6502.c | |
parent | 4a85620161a27421ae74217890408d60c26059db (diff) |
65c02: Fix the bitwise ops and their disassembly [O. Galibert]
Diffstat (limited to 'src/emu/cpu/m6502/m6502.c')
-rw-r--r-- | src/emu/cpu/m6502/m6502.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/emu/cpu/m6502/m6502.c b/src/emu/cpu/m6502/m6502.c index 3b0f5fa12f8..853b565ea69 100644 --- a/src/emu/cpu/m6502/m6502.c +++ b/src/emu/cpu/m6502/m6502.c @@ -477,9 +477,7 @@ offs_t m6502_device::disassemble_generic(char *buffer, offs_t pc, const UINT8 *o { const disasm_entry &e = table[oprom[0]]; UINT32 flags = e.flags | DASMFLAG_SUPPORTED; - buffer += sprintf(buffer, "%-5s", e.opcode); - if(e.per_bit) - buffer += sprintf(buffer, "%d, ", (oprom[0] >> 4) & 7); + buffer += sprintf(buffer, "%s", e.opcode); switch(table[oprom[0]].mode) { case DASM_non: @@ -512,7 +510,7 @@ offs_t m6502_device::disassemble_generic(char *buffer, offs_t pc, const UINT8 *o break; case DASM_bzp: - sprintf(buffer, "%d $%02x", oprom[0] & 7, opram[1]); + sprintf(buffer, "%d $%02x", (oprom[0] >> 4) & 7, opram[1]); flags |= 2; break; @@ -576,7 +574,7 @@ offs_t m6502_device::disassemble_generic(char *buffer, offs_t pc, const UINT8 *o break; case DASM_zpb: - sprintf(buffer, "%d $%02x, $%04x", oprom[0] & 7, opram[1], (pc & 0xf0000) | UINT16(pc + 3 + INT8(opram[2]))); + sprintf(buffer, "%d $%02x, $%04x", (oprom[0] >> 4) & 7, opram[1], (pc & 0xf0000) | UINT16(pc + 3 + INT8(opram[2]))); flags |= 3; break; |