Address Mode - Relative
From NerdConsole
Jump to navigationJump to search
Relative
Uses the value to directly adjust the program counter, supports negative and positive values.
Instructions that use this address mode:
| Op | Inst | Description |
|---|---|---|
| $0F | BBR0 | Branch if Bit 0 Reset |
| $10 | BPL | Branch on Plus |
| $1F | BBR1 | Branch if Bit 1 Reset |
| $2F | BBR2 | Branch if Bit 2 Reset |
| $30 | BMI | Branch on Minus |
| $3F | BBR3 | Branch if Bit 3 Reset |
| $4F | BBR4 | Branch if Bit 4 Reset |
| $50 | BVC | Branch on Overflow Clear |
| $5F | BBR5 | Branch if Bit 5 Reset |
| $6F | BBR6 | Branch if Bit 6 Reset |
| $70 | BVS | Branch on Overflow Set |
| $7F | BBR7 | Branch if Bit 7 Reset |
| $80 | BRA | Branch Always |
| $8F | BBS0 | Branch if Bit 0 Set |
| $90 | BCC | Branch on Carry Clear |
| $9F | BBS1 | Branch if Bit 1 Set |
| $AF | BBS2 | Branch if Bit 2 Set |
| $B0 | BCS | Branch on Carry Set |
| $BF | BBS3 | Branch if Bit 3 Set |
| $CF | BBS4 | Branch if Bit 4 Set |
| $D0 | BNE | Branch on Not Equal |
| $DF | BBS5 | Branch if Bit 5 Set |
| $EF | BBS6 | Branch if Bit 6 Set |
| $F0 | BEQ | Branch on Equal |
| $FF | BBS7 | Branch if Bit 7 Set |
Return to the Address Modes table or the OpCodes Table.