|
From: H. P. A. <hp...@zy...> - 2009-03-01 08:24:30
|
Date: Sun, 1 Mar 2009 00:22:16 -0800
Most of our instruction opcodes are written in octal. Thus, it makes
sense to print them that way if we ever have an error message.
---
assemble.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/assemble.c b/assemble.c
index 7e8462b..604cc7c 100644
--- a/assemble.c
+++ b/assemble.c
@@ -1109,7 +1109,7 @@ static int64_t calcsize(int32_t segment, int64_t offset, int bits,
default:
errfunc(ERR_PANIC, "internal instruction table corrupt"
- ": instruction code 0x%02X given", c);
+ ": instruction code \\%o (0x%02X) given", c, c);
break;
}
}
@@ -1869,7 +1869,7 @@ static void gencode(int32_t segment, int64_t offset, int bits,
default:
errfunc(ERR_PANIC, "internal instruction table corrupt"
- ": instruction code 0x%02X given", c);
+ ": instruction code \\%o (0x%02X) given", c, c);
break;
}
}
--
1.6.1.1
|