Intel Microcontroller, 80C196NU, 8XC196NP Increment WORD. Increments the value Word operand by

Models: Microcontroller 80C196NU 8XC196NP

1 471
Download 471 pages 22.3 Kb
Page 326
Image 326

 

 

 

 

 

 

 

 

 

 

INSTRUCTION SET REFERENCE

 

 

 

Table A-6. Instruction Set (Continued)

 

 

 

 

 

 

 

 

 

 

 

Mnemonic

 

 

 

Operation

 

 

 

 

Instruction Format

 

 

 

 

 

INC

INCREMENT WORD. Increments the value

 

 

 

of the word operand by 1.

 

 

 

INC

wreg

 

(DEST) (DEST) + 1

 

 

 

 

 

 

 

 

 

(00000111) (wreg)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

 

V

VT

ST

 

 

 

 

 

 

0

 

 

 

 

 

 

 

INCB

INCREMENT BYTE. Increments the value of

 

 

 

the byte operand by 1.

 

 

 

 

INCB

breg

 

(DEST) (DEST) + 1

 

 

 

 

 

 

 

 

 

(00010111) (breg)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

 

V

VT

ST

 

 

 

 

 

 

 

 

 

 

 

 

 

JBC

JUMP IF BIT IS CLEAR. Tests the specified

 

 

 

bit. If the bit is set, control passes to the next

JBC

breg,bitno,cadd

 

sequential instruction. If the bit is clear, this

 

(00110bbb) (breg) (disp)

 

instruction adds to the program counter the

 

 

 

 

offset between the end of this instruction and

 

 

 

the target label, effecting the jump. The offset

NOTE: The displacement (disp) is sign-

 

must be in the range of –128 to +127.

 

 

extended to 24 bits.

 

if (specified bit) = 0 then

 

 

 

 

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

 

V

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

JBS

JUMP IF BIT IS SET. Tests the specified bit. If

 

 

 

the bit is clear, control passes to the next

JBS

breg,bitno,cadd

 

sequential instruction. If the bit is set, this

 

(00111bbb) (breg) (disp)

 

instruction adds to the program counter the

 

 

 

 

offset between the end of this instruction and

 

 

 

the target label, effecting the jump. The offset

NOTE: The displacement (disp) is sign-

 

must be in the range of –128 to +127.

 

 

extended to 24 bits.

 

 

 

 

 

 

 

 

 

 

 

 

if (specified bit) = 1 then

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PSW Flag Settings

 

 

 

 

 

 

Z

N

C

 

V

VT

ST

 

 

 

 

 

— —

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A-21

Page 326
Image 326
Intel Microcontroller, 80C196NU, 8XC196NP manual Increment WORD. Increments the value Word operand by