Understanding the Operand Type in GNU Assembly

Asked 1 years ago, Updated 1 years ago, 86 views

operand type mismatch for 'field' error occurs when field%ebx is indicated in GNU Assembly.long(fieldl) also causes errors.
What is the operand type of field (long)?

Environment: Run as 32-bit with -m32 option on ubuntu 16.04 x86_64gcc

assembly-language

2022-09-30 14:01

1 Answers

Please download the x86 machine language manual from the Intel site.
That's easier.

The field operand is mem16mem32mem64 so you cannot load values from the register.
fieldl(%ebx) should pass (although the meaning is completely different)


2022-09-30 14:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.