diff options
author | H. Peter Anvin <hpa@zytor.com> | 2002-09-19 04:27:01 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2002-09-19 04:27:01 +0000 |
commit | c9f57c24d0761693cc44a0e6d205c484dd9dbf52 (patch) | |
tree | 3babcd64b0c44e2bcd1539ff71dfb2569a529c22 /parser.c | |
parent | f394043af0f450b2b60c3b7d42664cd2f9f000e4 (diff) | |
download | nasm-c9f57c24d0761693cc44a0e6d205c484dd9dbf52.tar.gz nasm-c9f57c24d0761693cc44a0e6d205c484dd9dbf52.tar.bz2 nasm-c9f57c24d0761693cc44a0e6d205c484dd9dbf52.zip |
Fixes from Bart Oldeman
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"); } |