25.04.2020 Views

1989_MELPS_7700_Software_Manual

Mitsubishi MELPS 7700 series microcomputer instruction set and addressing mode handbook

Mitsubishi MELPS 7700 series microcomputer instruction set and addressing mode handbook

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BNE

Branch on Not Equal

BNE

Operation

When Z=O,

PC (- PC + 2 ± REL (REL is instruction's second byte)

PG (- PG + 1 (if carry on PC), PG (- PG - 1 (if borrow on PC)

When Z=1,

PC (- PC + 2

PG (- PG + 1 (if carry on PC)

Description

When the zero flag Z is clear (0), the BNE instruction causes a branch to the

specified address. The branch address is specified by a relative address.

When the zero flag Z is set (1), the program advances to next step without any

action.

Status flags

Not affected.

Addressing mode Syntax Machine code Bytes Cycles

Relative BNE rr D016, rr 2 4

(Note1) The cycles-count increases by 2 when a branch occurs.

68

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!