Branch Instructions
The various conditional branch instructions all work the same way, and are listed on this page. The first 11-bits of the instruction are currently used.
Branch on Carry
The branch on carry instruction will load the following 16-bit value into the Program Counter when the carry flag is set.
Branch on Not Carry
The branch on carry clear instruction will load the following 16-bit value into the Program Counter when the carry flag is not set.
Branch on Zero
The branch on zero instruction will load the following 16-bit value into the Program Counter when the zero flag is set.
Branch on Not Zero
The branch on not zero instruction will load the following 16-bit value into the Program Counter when the zero flag is not set.
Branch on Negative
The branch on negative instruction will load the following 16-bit value into the Program Counter when the negative flag is set.
Branch on Not Negative
The branch on not negative instruction will load the following 16-bit value into the Program Counter when the negative flag is not set.
Updates when Executed:
- Program Counter
Important Note
The Program Counter is intrinsic to these instructions, as part of the "index" segment of the instruction. Technically, any register or counter, can be conditionally loaded by providing the correct identifier of the target. These are not currently documented, but should work... use at your own risk.