1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-12 10:30:23 +00:00

Print operand hex vals during disassembly.

This commit is contained in:
Radosław Kujawa 2017-01-20 09:46:33 +01:00
parent 14233cf3ca
commit 5201cfdc87

View File

@ -123,7 +123,14 @@ disassemble(bus_t *b, uint16_t addr)
printf("%X:\t", addr); printf("%X:\t", addr);
instruction_print(&i); instruction_print(&i);
printf("\t\t// %X", id.opcode); printf("\t\t// ");
if (id.size == 1)
printf("%X", id.opcode);
else if (id.size == 2)
printf("%X %X", id.opcode, i.op1);
else if (id.size == 3)
printf("%X %X %X", id.opcode, i.op1, i.op2);
printf("\n"); printf("\n");
} }