summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-03-01 00:22:16 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-03-01 00:22:16 -0800
commit16a856cd851858f80b1ef407d77f92df309e5909 (patch)
treea7039e90f0d6130bd0dafd191f4df344fa0a4d25
parentae2597b116669003bd5fe004eebc88748cd8afcd (diff)
downloadnasm-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.c4
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;
}
}