summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-05 17:04:32 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-05 17:04:32 -0700
commitc189b440329cf447edbbf5809ebb74deadad67e9 (patch)
treead54f8decd70f616a1a5df4d80d75189464cddbd
parenta7abb7536dd21ee9879d1e3a3dffe33ba8e8a508 (diff)
downloadnasm-c189b440329cf447edbbf5809ebb74deadad67e9.tar.gz
nasm-c189b440329cf447edbbf5809ebb74deadad67e9.tar.bz2
nasm-c189b440329cf447edbbf5809ebb74deadad67e9.zip
Emit REX prefix before literal zero (\170)
-rw-r--r--assemble.c1
-rw-r--r--test/zerobyte.binbin0 -> 4 bytes
2 files changed, 1 insertions, 0 deletions
diff --git a/assemble.c b/assemble.c
index c3a9049..448a5d3 100644
--- a/assemble.c
+++ b/assemble.c
@@ -1401,6 +1401,7 @@ static void gencode(int32_t segment, int32_t offset, int bits,
break;
case 0170:
+ EMIT_REX();
bytes[0] = 0;
out(offset, segment, bytes, OUT_RAWDATA + 1, NO_SEG, NO_SEG);
offset += 1;
diff --git a/test/zerobyte.bin b/test/zerobyte.bin
new file mode 100644
index 0000000..d0fa5b9
--- /dev/null
+++ b/test/zerobyte.bin
Binary files differ