mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
Added code to prevent FAR from being used with a register
This commit is contained in:
parent
1be737b61c
commit
63b53f7325
5
parser.c
5
parser.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user