Intel Microcontroller, 80C196NU, 8XC196NP manual Rightmost operand, Sub

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 347
Image 347

8XC196NP, 80C196NU USER’S MANUAL

Table A-6. Instruction Set (Continued)

Mnemonic

 

 

Operation

 

 

 

 

Instruction Format

 

 

 

 

 

ST

STORE WORD. Stores the value of the

 

SRC, DEST

 

source (leftmost) word operand into the

ST

wreg, waop

 

destination (rightmost) operand.

 

 

 

 

 

(110000aa) (waop) (wreg)

 

(DEST) (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

 

C

V

 

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

STB

STORE BYTE. Stores the value of the source

 

SRC, DEST

 

(leftmost) byte operand into the destination

STB

breg, baop

 

(rightmost) operand.

 

 

 

 

 

 

 

 

 

 

 

(110001aa) (baop) (breg)

 

(DEST) (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

 

C

V

 

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

SUB

SUBTRACT WORDS. Subtracts the source

 

DEST, SRC

(2 operands)

word operand from the destination word

SUB

wreg, waop

 

operand, stores the result in the destination

 

(011010aa) (waop) (wreg)

 

operand, and sets the carry flag as the

 

 

 

 

complement of borrow.

 

 

 

 

 

 

 

 

(DEST) (DEST) – (SRC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

 

C

V

 

VT

ST

 

 

 

 

 

 

 

 

 

 

 

 

SUB

SUBTRACT WORDS. Subtracts the first

 

DEST, SRC1, SRC2

(3 operands)

source word operand from the second, stores

SUB

Dwreg, Swreg, waop

 

the result in the destination operand, and sets

 

(010010aa) (waop) (Swreg) (Dwreg)

 

the carry flag as the complement of borrow.

 

 

 

 

(DEST) (SRC1) – (SRC2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

 

C

V

 

VT

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-42

Page 347
Image 347
Intel Microcontroller, 80C196NU, 8XC196NP manual Rightmost operand, Sub