This instruction functions similar to the call instruction. However imm8 is limited to 8 specific values: $00, $08, $10, $18, $20, $28, $30, and $38. The address of the instruction following the current rst instruction is pushed to the stack, and then pc is loaded with imm8.
Using this instruction on the CE will most likely cause a crash to occur, regardless of the restart address.
- Opcode:
11 imm8 111
| Restart Address |
Bit Field |
| $00 |
000 |
| $08 |
001 |
| $10 |
010 |
| $18 |
011 |
| $20 |
100 |
| $28 |
101 |
| $30 |
110 |
| $38 |
111 |
- Bytes: 1
- Flags:
- Cycles: 2F + 3W + 1