Fixed PC offset labelling in IO simulation.

This commit is contained in:
Daniel Beer 2010-03-23 09:58:40 +13:00
parent 07f0ce12fe
commit 96621649f3
1 changed files with 1 additions and 1 deletions

2
sim.c
View File

@ -55,7 +55,7 @@ static void io_prefix(const char *prefix, u_int16_t addr, int is_byte)
if (pc)
printf("+0x%x", addr);
} else {
printf("0x%04x", addr);
printf("0x%04x", pc);
}
printf(": IO %s.%c: 0x%04x", prefix, is_byte ? 'B' : 'W', addr);