beautypg.com

Maxim Integrated DS4830 Optical Microcontroller User Manual

Page 199

background image

DS4830 User’s Guide

199

{L/S} JUMP C / {L/S} JUMP NC, src

Conditional {Long/Short} Jump on Status Flag

{L/S} JUMP Z / {L/S} JUMP NZ, src
{L/S} JUMP E / {L/S} JUMP NE, src
{L/S} JUMP S, src


Description:

Performs conditional branching based upon the state of a specific processor status flag. JUMP C
results in a branch if the Carry flag is set while JUMP NC branches if the Carry flag is clear.
JUMP Z results in a branch if the Zero flag is set while JUMP NZ branches if the Zero flag is
clear. JUMP E results in a branch if the Equal flag is set while JUMP NE branches if the Equal
flag is clear. JUMP S results in a branch if the Sign flag is set. Program branches can be relative
or absolute depending upon the src

specifier and may be qualified by using the ‘L’ or ‘S’ prefixes

as documented in the JUMP src opcode. Special src restrictions apply to JUMP E and JUMP
NE
.

Status Flags:

None


JUMP C
Operation:

C=1: IP  IP + src (relative)

–or— src (absolute)

C=0: IP  IP + 1


Encoding:

15

0

f010

1100

ssss

ssss


Example(s):

JUMP C, label1

; C=0, branch not taken



JUMP NC
Operation:

C=0: IP  IP + src (relative)

–or— src (absolute)

C=1: IP  IP +1


Encoding:

15

0

f010

1100

ssss

ssss


Example(s):

JUMP NC, label1

; C=0, branch taken



JUMP Z
Operation:

Z=1: IP  IP + src

Z=0: IP  IP + 1


Encoding:

15

0

f001

1100

ssss

ssss


Example(s):

JUMP Z, label1

; Z=1, branch taken