Understanding the Operand Type in GNU Assembly

Asked 5 months ago, Updated 5 months ago, 16 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


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

© 2023 OneMinuteCode. All rights reserved.