0% found this document useful (0 votes)
32 views

Boolean Instructions Set

The ORL instruction performs a logical OR operation between the data in the carry flag and a bit address and stores the result in the carry flag. It can OR the carry flag with either an addressed bit or the complement of an addressed bit. The operand is a direct address to a bit in the bit addressable RAM or a special function register. This allows it to set or clear the carry flag based on the logic level of an addressed storage location.

Uploaded by

Secret World
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Boolean Instructions Set

The ORL instruction performs a logical OR operation between the data in the carry flag and a bit address and stores the result in the carry flag. It can OR the carry flag with either an addressed bit or the complement of an addressed bit. The operand is a direct address to a bit in the bit addressable RAM or a special function register. This allows it to set or clear the carry flag based on the logic level of an addressed storage location.

Uploaded by

Secret World
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

8051

microcontroller

Boolean instruction set


ORL”
ORL
 The ORL instruction performs OR operation between the
data stored in the carry flag and the given address and then
stores the result in the carry bit.
 The operand is an address (direct AM).
 Similar to logical OR operation.
ORL
 ORL C , b
 Performs OR on C and the addressed bit; and then stores the
result in the carry bit
 ORL C,/b
 Performs OR on C and the complement of the addressed
bit; then stores the result in the carry bit.
Internal data memory
7FH

7EH
General purpose RAM
80 bytes

30H

2FH 7F 7E 7D 7C 7B 7A 79 78
2EH 77 76 75 74 73 72 71 70
Bit addressable RAM
16 bytes (80 bits)

21H 0F 0E 0D 0C 0B 0A 09 08
20H 07 06 05 04 03 02 01 00
Bank 3

Bank 2 4 Reg. BANK 8 bytes each


08H Bank 1 32 bytes.

00H Bank 0
Internal data memory
7FH
Mnemonic Description
7EH
ORL C, bit OR Carry and the indicated bit
and store the result in carry
bit.
30H
 Bit direct addressed bit in bit addressable
2FH 7F 7E 7D 7C 7B 7A 79 78 RAM or special function register
2EH 77 76 75 74 73 72 71 70 Example:-
ORL C,0BH

PSW CY
21H 0F 0E 0D 0C 0B 0A 09 08
ORL x 0BH
20H 07 06 05 04 03 02 01 00
result
18H Bank 3

10H Bank 2 OR bit 0B of bit addressable memory


with the CY flag . Then stores the result
08H Bank 1 in the Carry.

00H Bank 0
Internal data memory
7FH
Mnemonic Description
7EH
ORL C, /bit OR Carry and complement of
the indicated bit and store the
result in carry bit.
30H

2FH 7F 7E 7D 7C 7B 7A 79 78
2EH 77 76 75 74 73 72 71 70 Example:-
ORL C,/72H

PSW CY
21H 0F 0E 0D 0C 0B 0A 09 08 ORL /72H
z
20H 07 06 05 04 03 02 01 00
result
18H Bank 3
OR complement of bit 72 of bit addressable
10H Bank 2 memory with the CY flag . Then stores the
result in the Carry.
08H Bank 1

00H Bank 0
Thank you!!

You might also like