Added code to prevent FAR from being used with a register

This commit is contained in:
Debbie Wiles 2002-06-04 19:31:24 +00:00
parent 1be737b61c
commit 63b53f7325

View File

@ -494,6 +494,11 @@ insn *parse_line (int pass, char *buffer, insn *result,
bracket = FALSE; /* placate optimisers */
}
if((result->oprs[operand].type & FAR) && !mref)
{
error (ERR_NONFATAL, "invalid use of FAR operand specifier");
}
value = evaluate (stdscan, NULL, &tokval,
&result->oprs[operand].opflags,
critical, error, &hints);