mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
Fix bogus flagging of effective addresses as invalid
Ah, what a difference a single ~ makes... such as flagging invalid EAs as valid and vice versa.
This commit is contained in:
parent
ff9e7e34a1
commit
b0c5462694
@ -1931,7 +1931,7 @@ static ea *process_ea(operand * input, ea * output, int bits,
|
||||
ix = 0;
|
||||
}
|
||||
|
||||
if (b != -1 && b >= EXPR_REG_START && b < REG_ENUM_LIMIT) {
|
||||
if (b >= EXPR_REG_START && b < REG_ENUM_LIMIT) {
|
||||
bt = regvals[b];
|
||||
bx = reg_flags[b];
|
||||
} else {
|
||||
@ -1957,7 +1957,7 @@ static ea *process_ea(operand * input, ea * output, int bits,
|
||||
return NULL; /* Invalid register */
|
||||
if (~sok & bx & SIZE_MASK)
|
||||
return NULL; /* Invalid size */
|
||||
sok &= ~bx;
|
||||
sok &= bx;
|
||||
}
|
||||
|
||||
/* While we're here, ensure the user didn't specify
|
||||
|
Loading…
x
Reference in New Issue
Block a user