summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-05-20 14:49:32 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-05-20 14:49:32 -0700
commit3be5d859139b8bf1ed6b8a9833eed99d016cd257 (patch)
tree4a3e06286e4eeb324ef64761816b60b8854a8be9 /parser.c
parent0c648204e2599958dffd8d4375b6b220980990eb (diff)
downloadnasm-3be5d859139b8bf1ed6b8a9833eed99d016cd257.tar.gz
nasm-3be5d859139b8bf1ed6b8a9833eed99d016cd257.tar.bz2
nasm-3be5d859139b8bf1ed6b8a9833eed99d016cd257.zip
No 32-byte floating point format: fix error for DY
Output a more legible error message for floating-point with "DY".
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/parser.c b/parser.c
index c513349..72cb120 100644
--- a/parser.c
+++ b/parser.c
@@ -401,6 +401,11 @@ restart_parse:
case I_DO:
eop->stringlen = 16;
break;
+ case I_DY:
+ error(ERR_NONFATAL, "floating-point constant"
+ " encountered in DY instruction");
+ eop->stringlen = 0;
+ break;
default:
error(ERR_NONFATAL, "floating-point constant"
" encountered in unknown instruction");