instruction.disp_operands = 0;
instruction.operands = 2;
- instruction.types[0] &= ~ANY_MEM;
+ instruction.types[0] &= ~DISP;
return 0;
}
if (reg_table[expr->add_number].number == REG_FLAT_NUMBER) {
- instruction.segments[instruction.operands] = 0;
+ instruction.segments[instruction.mem_operands] = 0;
} else {
- instruction.segments[instruction.operands] = ®_table[expr->add_number];
+ instruction.segments[instruction.mem_operands] = ®_table[expr->add_number];
}
}
unsigned int i;
+ if (!intel_syntax) {
+ return EXPR_TYPE_ABSENT;
+ }
+
if (!name) {
if (operands != 2) {
struct section *ret_section;
int ret;
+ if (!intel_syntax) {
+ return expression_read_into (start, pp, expr);
+ }
+
memset (&intel_state, 0, sizeof (intel_state));
intel_state.operand_modifier = EXPR_TYPE_ABSENT;