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 396
Image 396
Intel 8XC196MD, 8XC196MH, 8XC196MC manual Table A-6. Instruction Set, Mnemonic Operation, PSW Flag Settings, C V Vt St