Fixed PC offset labelling in IO simulation.
This commit is contained in:
parent
07f0ce12fe
commit
96621649f3
2
sim.c
2
sim.c
|
@ -55,7 +55,7 @@ static void io_prefix(const char *prefix, u_int16_t addr, int is_byte)
|
||||||
if (pc)
|
if (pc)
|
||||||
printf("+0x%x", addr);
|
printf("+0x%x", addr);
|
||||||
} else {
|
} else {
|
||||||
printf("0x%04x", addr);
|
printf("0x%04x", pc);
|
||||||
}
|
}
|
||||||
|
|
||||||
printf(": IO %s.%c: 0x%04x", prefix, is_byte ? 'B' : 'W', addr);
|
printf(": IO %s.%c: 0x%04x", prefix, is_byte ? 'B' : 'W', addr);
|
||||||
|
|
Loading…
Reference in New Issue