The 8051 Microcontroller and Embedded

(lily) #1
Department of Computer Scien

ce and Information Engineering

National Cheng Kung University, TAIWAN
HANEL
FLAG BITS AND PSW REGISTER

ADD
Instruction And

PSW


X

CJNE

X

MOV C, bit

X

ORL C, /bit

X

ORL C, bit

X

ANL C, /bit

X

ANL C, bit

X

CPL C

0

CLR C

1

SETB C

X

PLC

X

RPC

X

DA

X
0

DIV

X
0

MUL

X
X
X

SUBB

X
X
X

ADDC

X
X
X

ADD

AC
OV
CY

Instruction
Instructions that affect flag bits

Free download pdf