Computer Science Principles V11

Clive W. Humphris

INSTRUCTION SET 3: Branching.  


Branching instructions are conditional on the settings of the various Status Register flags.

There are four flags, which can be set or reset manually to demonstrate each instruction Carry, Zero, Sign and Overflow.

Select the instruction address and load the displacement value. The displacement (+) forward or (-) backwards is determined by the most significant bit of the equivalent binary number.

The example of #06h sets the leftmost bit to a binary 0 and #86h to a binary 1, the 06 is then a jump forward or backwards by six, or any other value you choose.

Table of contents

previous page start next page