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
Please download the x86 machine language manual from the Intel site.
That's easier.
The field
operand is mem16
mem32
mem64
so you cannot load values from the register.
fieldl(%ebx)
should pass (although the meaning is completely different)
© 2024 OneMinuteCode. All rights reserved.