I'm on linux with nasm trying to move registry value ax
to registry eax
like this:
mov ebx,1
mov ax,2
mov ecx,ax
but I get the error: prueba.asm:12: error: invalid combination of opcode and operands
and I want to know what exactly is wrong.
I'm on linux with nasm trying to move registry value ax
to registry eax
like this:
mov ebx,1
mov ax,2
mov ecx,ax
but I get the error: prueba.asm:12: error: invalid combination of opcode and operands
and I want to know what exactly is wrong.
The error is due to the fact that it is not possible to move an AX record that contains divisions, that is (AH and AL) , to an extended record of 32 such as ECX that does not contain a subdivision as AX does , since naturally we always worked with records from 8 moved to registers of 16, for example:
As a solution you could perform the following operations: