Microcontrollers in Practice

A.11: 8051 Instruction Set

A.11 8051 Instruction Set

Arithmetic Instructions

Mnemonic

Operation

Description

Flags

ADD

A,R n

Add register to Accumulator

A ? A + R n

C,OV,AC

ADD

A.direct

Add direct byte to Accumulator

A ? A + direct

C,OV,AC

ADD

A,@R i

Add indirect RAM to Accumulator

A ? A + (R i)

C,OV,AC

ADD

A,#data

Add immediate data to Accumulator

A ? A + data

C,OV,AC

ADDC

A,R n

Add register to Accumulator with Carry

A ? A + R n + C

C,OV,AC

ADDC

A.direct

Add direct byte to Accumulator with Carry

A ? A + direct + C

C,OV,AC

ADDC

A,@R i

Add indirect RAM to Accumulator with Carry

A ? A + (R i) + C

C,OV,AC

ADDC

A,#data

Add immediate data to Acc with Carry

2A ? A + data + C

C,OV,AC

SUBB

A,R n

Subtract Register from Acc with borrow

A ? A - R n - C

C,OV,AC

SUBB

A.direct

Subtract direct byte from Acc with borrow

A ? A - direct - C

C,OV,AC

SUBB

A,@R i

Subtract indirect RAM from Acc with borrow

A ? A - (R i) - C

C,OV,AC

SUBB

A,#data

Substract immediate data from Acc with borrow

A ? A - data - C

C,OV,AC

INC

A

Increment Accumulator

A ? A + 1

INC

R n

Increment register

R n ? R n + 1

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Frequency Synthesizers
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.