beautypg.com

L/s}jump c/{l/s}jump nc, sr, L/s}jump e/{l/s}jump ne, src, {l/s}jump s, src -12, Maxq family user’s guide – Maxim Integrated MAXQ Family User Manual

Page 189

background image

18-12

MAXQ Family User’s Guide

Conditional {Long/Short} Jump on Status Flag

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

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

Maxim Integrated