Fixed bugs introduced by sym table changes.

This commit is contained in:
Daniel Beer 2010-03-28 16:02:04 +13:00
parent 79c5899929
commit 0c3389f084
2 changed files with 2 additions and 2 deletions

2
sim.c
View File

@ -53,7 +53,7 @@ static void io_prefix(const char *prefix, u_int16_t addr, int is_byte)
if (!stab_nearest(pc, name, sizeof(name), &pc)) {
printf("%s", name);
if (pc)
printf("+0x%x", addr);
printf("+0x%x", pc);
} else {
printf("0x%04x", pc);
}

2
stab.c
View File

@ -333,5 +333,5 @@ int stab_nearest(u_int16_t addr, char *ret_name, int max_len,
return 0;
}
return 1;
return -1;
}