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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <asselmeher@xxxxxxxxx>:
> 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 majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Sofiane AKERMOUN
akersof@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux