MCS-51 microcontroller assembly language: What are the logical operation instructions?

Publisher:美好未来Latest update time:2013-05-04 Source: 21ICKeywords:MCS-51 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Simple logic operation instructions

CLR A; A←  " 0 "

CPL A; A←A

SWAP A; A0~3 A4~7

 

Rotate Accumulator Left

RL A

 

Rotate Accumulator Left through Carry flag 

RLC A

 

Rotate Accumulator Right

R R

 

Rotate A Right with C

RRC A

 

Logic and Instructions

ANL A, Rn  

ANL A, direct 

ANL A, #data

ANL A, @Ri

ANL direct, A

ANL direct, #data

 

Logical or instruction

ORL A, Rn  

ORL A, direct 

ORL A, #data

ORL A, @Ri

ORL direct, A

ORL direct, #data

 

Logical XOR instruction

XRL A, Rn  

XRL A, direct 

XRL A, #data

XRL A, @Ri

XRL direct, A

XRL direct, #data

Keywords:MCS-51 Reference address:MCS-51 microcontroller assembly language: What are the logical operation instructions?

Previous article:Introduction to the pin functions of MCS-51 microcontroller
Next article:MCS-51 microcontroller assembly language: What are the arithmetic operation instructions?

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号