Re: [NASM] ROR -> error: invalid combination of opcode and operands

Sofiane Akermoun <[email protected]> Mon, 11 Mar 2013 23:40:05 +0100
Newsgroups org.kernel.vger.linux-assembly
Message-ID <CAN0_x-+Bf2aZt45+QrvnMav-LVejdzKbiKVNT-Qvh1j-CoMkbw@mail.gmail.com>
As mentioned in your error the combination of opcode 'ror' and
operands 'al' and 'bl" is bad.
If you read the documentation you will see that ror just support the
following expressions:

ror r/m8,1
ror r/m8,CL
ror r/m8,imm8
ror r/m16,1
ror r/m16,CL
ror r/m16,imm8
ror r/m32,1 D3  /1
ror r/m32,CL
ror r/m32,imm8

It means that unless your second operand is the CL register, you need
an immediate value for your second operand.

kinds regards,

Sofiane Akermoun

2013/3/11 Meher Assel <[email protected]>:
> Hello all,
> why i can't do ' ror al,bl' ?
> i'am using nasm in 16bits mode ( [BITS 16] )
> i get this error when compiling:
> error: invalid combination of opcode and operands
> --
> To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Sofiane AKERMOUN
[email protected]