inter

8031/8051/8751

~!ru~lLO[M]OOO&'!ruW

Arithmetic

 

 

 

 

 

 

Oscillator

Mnemonic

Oescrlptlon

Bytes

Periods

ADD A,An

Add register to A

1

12

"ADD A,data

Add direct byte to A

2

12

ADD A,@Ai

Add indirect AAM to A

 

12

ADD A,#data

Add immediate data to A

 

12

ADDC A,An

Add register and carry flag to A

 

12

"ADDC A,data

Add direct byte and carry flag

 

12

 

to A

 

 

ADDCA,@Ai

Add indirect RAM and carry

 

12

 

flag to A

 

 

ADDC A,#data

Add immediate data and carry

 

12

 

flag to A

 

 

"SUBB A,An

Subtract register and carry flag

 

12

 

from A

 

 

"SUBB A,data

Subtract direct byte and carry

 

12

 

flag from A

 

 

"SUBBA,@Ai

Subtract indirect RAM and

 

12

 

carry flag from A

 

 

"SUBB A,#data

Subtract immediate data and

 

12

 

carry flag from A

 

 

INCA

Increment A

 

12

INC An

Increment register

 

12

"INC data

Increment direct byte

 

12

INC@Ai

Increment indirect RAM

 

12

DECA

Decrement A

 

12

DEC An

Decrement register

 

12

"DEC data

Decrement direct byte

 

12

"DEC@Ai

Decrement indirect RAM

 

12

"INC DPTR

Increment Data Pointer

 

24

"MUL AB

Multiply A times B

 

48

"DIVAB

Divide A by B

 

48

DAA

Decimal add Adjust of A

 

12

Other

 

 

 

 

 

 

Oscillator

Mnemonic

Description

Bytes

Periods

NOP

No Operation

1

12

Control Transfer (Branch)

 

 

 

 

 

Oscillator

Mnemonic

Description

Bytes

Periods

AJMP addr 11

Absolute Jump

2

24

"LJMP addr16

Long Jump

3

24

"SJMP rei

Short Jump

 

24

"JMP @A+DPTA

Jump indirect relative to

 

24

 

the DPTA

 

 

JZ rei

Jump if A is zero

 

24

JNZ rei

Jump if A is not zero

 

24

JC rei

Jump if carry is set

 

24

JNC rei

Jump if carry is not set

 

24

"JB bit,rel

Jump relative if direct bit

3

24

 

is set

 

 

• JN8 bitt rei

Jump relative if direct bit

3

24

 

is not set

 

 

"JBC bit,rel

Jump relative if direct bit

 

24

 

is set, then clear bit

 

 

"CJNE A,data,rel

Compare direct byte to A

3

24

 

& Jump if not Eq.

 

 

 

See Note 8.

 

 

"CJNE A.#data,rel

Compare immed. to A & Jump

3

24

 

jf not Eq. See Note a.

 

 

"CJNE An,#data,

Compare immed. to reg &

3

24

rei

Jump if not Eq. See Note a.

 

 

"CNJE@Ri,

Compare immed. to indirect

3

24

#data,rel

AAM & Jump if not Eq.

 

 

 

See Note a.

 

 

DJNZ An,rel

Decrement register & Jump

3

24

 

if not zero

 

 

"DJNZ data,rel

Decrement direct byte &

 

24

 

Jump if not zero

 

 

Note a) Set C if the first operand is less than the second operand;

else clear

 

 

Control Transfer (SubrOUtine)

 

 

 

 

 

Oscillator

Mnemonic

Description

Bytes

Periods

ACALL addrll

Absolute Subroutine Call

2

24

LCALL addr16

Long Subroutine Call

3

24

AET

Return from Subroutine Call

 

24

AETI

Return from Interrupt Call

 

24

All mnemonics copyrlghted@ Intel Corporation 1980"

AFN~01462A~15

7-15

Page 259
Image 259
Intel mcs-48 manual Inter, All mnemonics copyrlghted@ Intel Corporation