From 3be5d859139b8bf1ed6b8a9833eed99d016cd257 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 20 May 2008 14:49:32 -0700 Subject: [PATCH] No 32-byte floating point format: fix error for DY Output a more legible error message for floating-point with "DY". --- assemble.c | 3 ++- parser.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/assemble.c b/assemble.c index 0397f5df..1d440ead 100644 --- a/assemble.c +++ b/assemble.c @@ -325,7 +325,8 @@ int64_t assemble(int32_t segment, int64_t offset, int bits, uint32_t cp, OUT_RAWDATA, 1, NO_SEG, NO_SEG); } } else if (wsize > 8) { - errfunc(ERR_NONFATAL, "integer supplied to a DT, DO or DY" + errfunc(ERR_NONFATAL, + "integer supplied to a DT, DO or DY" " instruction"); } else out(offset, segment, &e->offset, diff --git a/parser.c b/parser.c index c513349c..72cb1207 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");