INSTRUCTION SET REFERENCE

 

 

 

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-37

Page 426
Image 426
Intel 8XC196MD, 8XC196MH, 8XC196MC manual Rightmost operand, Sub