INSTRUCTION SET REFERENCE

Table A-6. Instruction Set (Continued)

Mnemonic

 

 

 

Operation

 

 

 

 

Instruction Format

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 16 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 16 bits.

 

if (specified bit) = 1 then

 

 

 

 

 

 

 

 

 

 

 

 

 

PC PC + 8-bit disp

 

 

 

 

 

PSW Flag Settings

Z N C V VT ST

— — — — — —

A-17

Page 406
Image 406
Intel 8XC196MH, 8XC196MD, 8XC196MC manual Increment BYTE. Increments the value Byte operand by