Some fixes (nw)

This commit is contained in:
Olivier Galibert 2017-11-26 22:30:09 +01:00
parent e04a707ec9
commit f02fab789d
5 changed files with 8 additions and 5 deletions

View File

@ -110,7 +110,7 @@ pic16c5x_disassembler::pic16c5x_disassembler()
ops[0],ops[1],bit);
}
while (isspace((uint8_t)*p)) p++;
Op.emplace_back(bits, mask, *p, ops[0], ops[1]);
Op.emplace_back(mask, bits, *p, ops[0], ops[1]);
ops += 2;
i++;

View File

@ -122,7 +122,7 @@ pic16c62x_disassembler::pic16c62x_disassembler()
ops[0],ops[1],bit);
}
while (isspace((uint8_t)*p)) p++;
Op.emplace_back(bits, mask, *p, ops[0], ops[1]);
Op.emplace_back(mask, bits, *p, ops[0], ops[1]);
ops += 2;
i++;

View File

@ -23,7 +23,7 @@ DEFINE_DEVICE_TYPE(TMS0270, tms0270_cpu_device, "tms0270", "TMS0270") // 40-pin
// internal memory maps
static ADDRESS_MAP_START(program_11bit_9, AS_PROGRAM, 16, tms1k_base_device)
AM_RANGE(0x000, 0xfff) AM_ROM
AM_RANGE(0x000, 0x7ff) AM_ROM
ADDRESS_MAP_END
static ADDRESS_MAP_START(data_144x4, AS_DATA, 8, tms1k_base_device)

View File

@ -186,7 +186,7 @@ tms32010_disassembler::tms32010_disassembler()
ops[0],ops[1],bit);
}
while (isspace((uint8_t)*p)) p++;
Op.emplace_back(bits, mask, *p, ops[0], ops[1]);
Op.emplace_back(mask, bits, *p, ops[0], ops[1]);
ops += 2;
i++;
@ -209,6 +209,9 @@ offs_t tms32010_disassembler::disassemble(std::ostream &stream, offs_t pc, const
code = opcodes.r16(pc);
for ( i = 0; i < int(Op.size()); i++)
{
if(pc == 0)
fprintf(stderr, "op=%04x mask=%04x bits=%04x %s\n", code, Op[i].mask, Op[i].bits, Op[i].fmt);
if ((code & Op[i].mask) == Op[i].bits)
{
if (op != -1)

View File

@ -351,7 +351,7 @@ tms32025_disassembler::tms32025_disassembler()
ops[0],ops[1],bit);
}
while (isspace((uint8_t)*p)) p++;
Op.emplace_back(bits, mask, *p, ops[0], ops[1]);
Op.emplace_back(mask, bits, *p, ops[0], ops[1]);
ops += 2;
i++;