Electronic Circuits - Electronic Tutorials - Electronic Hobby Projects - A Complete Electronic Resource Centre
Electronic,  Microprocessor,  Mircro Controller and PC  based Projects / Circuits for Engineering Students, Hobbyiest and R&D persons

MICROCONTROLLER TUTORIALS - 8052

Tutorials

 

Circuits

8051

Introduction

Chapter 1
Types of Memory

Chapter 2
Special Function Registers

Chapter 3
Basic Registers

Chapter 4
Addressing Modes

Chapter 5
Program Flow

Chapter 6
Low Level Information

Chapter 7
Timers

Chapter 8
Serial Port Operations

Chapter 9
Interrupts

Additional Features in 8052

8052 Instruction Set
 

Google
 
Web Hobbyprojects.com

8051 / 8052 Microcontroller
Instruction Set 
ORL - Bitwise OR

Operation: ORL
Function: Bitwise OR
Syntax: ORL operand1,operand2

 

Instructions OpCode Bytes Cycles Flags
ORL iram addr,A 0x42 2 1 None
ORL iram addr,#data 0x43 3 2 None
ORL A,#data 0x44 2 1 None
ORL A,iram addr 0x45 2 1 None
ORL A,@R0 0x46 1 1 None
ORL A,@R1 0x47 1 1 None
ORL A,R0 0x48 1 1 None
ORL A,R1 0x49 1 1 None
ORL A,R2 0x4A 1 1 None
ORL A,R3 0x4B 1 1 None
ORL A,R4 0x4C 1 1 None
ORL A,R5 0x4D 1 1 None
ORL A,R6 0x4E 1 1 None
ORL A,R7 0x4F 1 1 None
ORL C,bit addr 0x72 2 2 C
ORL C,/bit addr 0xA0 2 1 C

Description: 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.

See Also: ANL, XRL, Instruction Set

 
  <<< Click here to come back on (8051 / 8052 - Instruction Set)
 

<<<<  Back to 8051 / 8052 Microcontroller Tutorial