L/s}jump e/{l/s}jump ne, src, {l/s}jump s – Maxim Integrated MAXQ7666 User Manual

Page 348

Advertising
background image

MAXQ7665/MAXQ7666 User’s Guide

14-11

{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 docu-
mented in the JUMP src op code. Special src restrictions apply to JUMP E and JUMP NE.

Status Flags:

None

JUMP C

C=1: IP

← IP + src (relative) -or- src (absolute)

Operation:

C=0: IP

← IP + 1

Encoding:

15

0

Example(s):

JUMP C, label1

; C=0, branch not taken

JUMP NC

C=0: IP

← IP + src (relative) -or- src (absolute)

Operation:

C=1: IP

← IP +1

Encoding:

15

0

Example(s):

JUMP NC, label1

; C=0, branch taken

JUMP Z

Z=1: IP

← IP + src

Operation:

Z=0: IP

← IP + 1

Encoding:

15

0

Example(s):

JUMP Z, label1

; Z=1, branch taken

f010

1100

ssss

ssss

f110

1100

ssss

ssss

f001

1100

ssss

ssss

Maxim Integrated

Advertising
This manual is related to the following products: