diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-03-01 00:22:16 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-03-01 00:22:16 -0800 |
commit | 16a856cd851858f80b1ef407d77f92df309e5909 (patch) | |
tree | a7039e90f0d6130bd0dafd191f4df344fa0a4d25 | |
parent | ae2597b116669003bd5fe004eebc88748cd8afcd (diff) | |
download | nasm-16a856cd851858f80b1ef407d77f92df309e5909.tar.gz nasm-16a856cd851858f80b1ef407d77f92df309e5909.tar.bz2 nasm-16a856cd851858f80b1ef407d77f92df309e5909.zip |
Most instruction codes are octal, so print errors that way too
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.
-rw-r--r-- | assemble.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } } |