summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-09-19 04:27:01 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-09-19 04:27:01 +0000
commitc9f57c24d0761693cc44a0e6d205c484dd9dbf52 (patch)
tree3babcd64b0c44e2bcd1539ff71dfb2569a529c22 /parser.c
parentf394043af0f450b2b60c3b7d42664cd2f9f000e4 (diff)
downloadnasm-c9f57c24d0761693cc44a0e6d205c484dd9dbf52.tar.gz
nasm-c9f57c24d0761693cc44a0e6d205c484dd9dbf52.tar.bz2
nasm-c9f57c24d0761693cc44a0e6d205c484dd9dbf52.zip
Fixes from Bart Oldeman
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index aa97aa7..b18277f 100644
--- a/parser.c
+++ b/parser.c
@@ -484,7 +484,8 @@ insn *parse_line (int pass, char *buffer, insn *result,
bracket = FALSE; /* placate optimisers */
}
- if((result->oprs[operand].type & FAR) && !mref)
+ if((result->oprs[operand].type & FAR) && !mref &&
+ result->opcode != I_JMP && result->opcode != I_CALL)
{
error (ERR_NONFATAL, "invalid use of FAR operand specifier");
}