ORL does a bitwise "OR" operation between operand1 and operand2, leaving the resulting value in operand1. The value of operand2 is not affected. A logical "OR" compares the bits of each operand and sets the corresponding bit in the resulting byte if the bit was set in either of the original operands, otherwise the resulting bit is cleared.
Syntax : ORL operand1,operand2
Example : ORL A,R0
It will perform the OR operation between the data of accumulator and register R0
Syntax : ORL operand1,operand2
Example : ORL A,R0
It will perform the OR operation between the data of accumulator and register R0
- Instruction
- Opcode
- Bytes
- Flags
- ORL iram_addr,A
- 0x42
- 2
- None
- ORL iram_addr,#data
- 0x43
- 3
- None
- ORL A,#data
- 0x44
- 2
- None
- ORL A,iram_addr
- 0x45
- 2
- None
- ORL A,@R0
- 0x46
- 2
- None
- ORL A,@R1
- 0x47
- 2
- None
- ORL A,R0
- 0x48
- 1
- None
- ORL A,R1
- 0x49
- 1
- None
- ORL A,R2
- 0x4A
- 1
- None
- ORL A,R3
- 0x4B
- 1
- None
- ORL A,R4
- 0x4C
- 1
- None
- ORL A,R5
- 0x4D
- 1
- None
- ORL A,R6
- 0x4E
- 1
- None
- ORL A,R7
- 0x4F
- 1
- None
- ORL C,bit_addr
- 0x72
- 2
- C
- ORL C,bit_addr
- 0xA0
- 2
- C