mirror of
https://github.com/pevans/erc-c.git
synced 2024-12-21 23:29:16 +00:00
Include cycle information
This commit is contained in:
parent
8201117223
commit
a267065059
@ -304,8 +304,9 @@ mos6502_dis_opcode(mos6502 *cpu, FILE *stream, int address)
|
|||||||
// Here we just want to show a few pieces of information; one,
|
// Here we just want to show a few pieces of information; one,
|
||||||
// what the PC was at the point of this opcode sequence; two,
|
// what the PC was at the point of this opcode sequence; two,
|
||||||
// the opcode;
|
// the opcode;
|
||||||
fprintf(stream, "\t; pc=$%02x%02x: %02x",
|
fprintf(stream, "\t; pc=$%02x%02x cy=%02d: %02x",
|
||||||
cpu->PC >> 8, cpu->PC & 0xff, opcode);
|
cpu->PC >> 8, cpu->PC & 0xff,
|
||||||
|
mos6502_cycles(cpu, opcode), opcode);
|
||||||
|
|
||||||
// And three, the operand, if any. Remembering that the operand
|
// And three, the operand, if any. Remembering that the operand
|
||||||
// should be shown in little-endian order.
|
// should be shown in little-endian order.
|
||||||
|
Loading…
Reference in New Issue
Block a user