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
- References:
- [NASM] ROR -> error: invalid combination of opcode and operands
- From: Meher Assel
- [NASM] ROR -> error: invalid combination of opcode and operands
- Prev by Date: Re: [NASM] ROR -> error: invalid combination of opcode and operands
- Next by Date: how to disassembly a specified section
- Previous by thread: Re: [NASM] ROR -> error: invalid combination of opcode and operands
- Next by thread: how to disassembly a specified section
- Index(es):