summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assemble.c3
-rw-r--r--parser.c5
2 files changed, 7 insertions, 1 deletions
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");