Practical Electronics Handbook, Sixth Edition

Appendix B: Arithmetic and Logic Instructions Table

Arithmetic and Logic instructions

Mnemonic

AVR

PIC16

Z8

8051

68HC11

Add, no carry

ADD R d,R f

ADDWF f,d

ADD d,s

ADD a,D

ADDA, ADDB

Add with carry

ADC R d,R r

ADC d,s

ADDC a,D

ADCA, ADCB

Sub, no carry

SUB R d,R r

SUBWF f,d

SUB d,s

SUBB a,D

SBA, B,A

Sub with carry

SBC R d,R f

SBC d,s

SBCA, SBCB

AND

AND R d,R f

ANDWF f,d

AND d,s

ANL a,r

ANDA, ANDB

OR

OR R d,R f

IORWF f,d

OR d,s

ORL a,r

ORAA, ORAB

EXOR

EOR R d,R f

XORWF f,d

XOR d,s,

XRL a,r

EORA, EORB

1s complement

COM R d

COMF

f,d

COM d

COMA, COMB

2s complement

NEG R d

NEGA, NEGB

Set bits

R d,K

BSF f,b

SETB bit

BSET

Clear bits

CBR R d,K

BCF f,b

CLR bit

CLRA, CLRB

Increment

INC R d

INCF f,d

INC, INCW

INC a

INCA, INCB

Decrement

DEC R d

DECF...

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: Video Cables
Finish!
Privacy Policy

This is embarrasing...

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