Intel 80C196NU manual Table A-6. Instruction Set, Mnemonic Operation, PSW Flag Settings, C V Vt St

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 312
Image 312

INSTRUCTION SET REFERENCE

Table A-6. Instruction Set

Mnemonic

Operation

Instruction Format

ADD

ADD WORDS. Adds the source and

(2 operands)

destination word operands and stores the

 

sum into the destination operand.

 

 

 

(DEST) (DEST) + (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

Z

N

C

V

VT

ST

 

 

 

 

DEST, SRC

ADD wreg, waop (011001aa) (waop) (wreg)

ADD

ADD WORDS. Adds the two source word

(3 operands)

operands and stores the sum into the

 

destination operand.

 

(DEST) (SRC1) + (SRC2)

DEST, SRC1, SRC2

ADD Dwreg, Swreg, waop (010001aa) (waop) (Swreg) (Dwreg)

PSW Flag Settings

Z

N

C

V

VT

ST

ADDB

ADD BYTES. Adds the source and

(2 operands)

destination byte operands and stores the sum

 

into the destination operand.

 

(DEST) (DEST) + (SRC)

DEST, SRC ADDB breg, baop (011101aa) (baop) (breg)

PSW Flag Settings

Z

N

C

V

VT

ST

ADDB

ADD BYTES. Adds the two source byte

(3 operands)

operands and stores the sum into the

 

destination operand.

 

(DEST) (SRC1) + (SRC2)

DEST, SRC1, SRC2 ADDB Dbreg, Sbreg, baop (010101aa) (baop) (Sbreg) (Dbreg)

PSW Flag Settings

Z

N

C

V

VT

ST

ADDC

ADD WORDS WITH CARRY. Adds the

 

source and destination word operands and

 

the carry flag (0 or 1) and stores the sum into

 

the destination operand.

 

(DEST) (DEST) + (SRC) + C

DEST, SRC ADDC wreg, waop (101001aa) (waop) (wreg)

PSW Flag Settings

Z N C V VT ST

✓ ✓ ✓

A-7

Page 312
Image 312
Intel 80C196NU, 8XC196NP, Microcontroller manual Table A-6. Instruction Set, Mnemonic Operation, PSW Flag Settings, C V Vt St