summaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
authorKeith Kanios <spook@dynatos.net>2007-04-14 03:52:05 +0000
committerKeith Kanios <spook@dynatos.net>2007-04-14 03:52:05 +0000
commitb2a0380eb8a4bba698401f59fe4b557e63662fb0 (patch)
tree9b0397d2152cdd619dbff11e6b6f9b7fbe67b89e /assemble.c
parentc8ef68bba92bd840f4b178a92cd2b7018a3388b9 (diff)
downloadnasm-b2a0380eb8a4bba698401f59fe4b557e63662fb0.tar.gz
nasm-b2a0380eb8a4bba698401f59fe4b557e63662fb0.tar.bz2
nasm-b2a0380eb8a4bba698401f59fe4b557e63662fb0.zip
Fixed support for DQ constants in long mode.
Diffstat (limited to 'assemble.c')
-rw-r--r--assemble.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assemble.c b/assemble.c
index 843731d..160612f 100644
--- a/assemble.c
+++ b/assemble.c
@@ -248,7 +248,7 @@ int32_t assemble(int32_t segment, int32_t offset, int bits, uint32_t cp,
out(offset, segment, &out_byte,
OUT_RAWDATA + 1, NO_SEG, NO_SEG);
}
- } else if (wsize > 5) {
+ } else if ((wsize > 4 && (bits != 64)) || (wsize > 8)) {
errfunc(ERR_NONFATAL, "integer supplied to a D%c"
" instruction", wsize == 8 ? 'Q' : 'T');
} else