We see it in the kernel many times, including here:
Code: Select all
02F4 RST $08
02F5 $0E
:
03A6 RST $08
03A7 $0C
:
0888 RST $08
0889 $0C
Code: Select all
0835 LD L,4
0837 JP ERROR_3 [$0058]
:
0ED3 LD L,3
0ED5 JP ERROR_3 [$0058]
Any ideas?
Code: Select all
02F4 RST $08
02F5 $0E
:
03A6 RST $08
03A7 $0C
:
0888 RST $08
0889 $0C
Code: Select all
0835 LD L,4
0837 JP ERROR_3 [$0058]
:
0ED3 LD L,3
0ED5 JP ERROR_3 [$0058]
If this function stores the origin address in the RAM, this function can't be use in a system without RAM (Buffered stacks).RST <address>
"Reset" or "Software interrupt". Works like CALL, but is smaller and faster and works only to 1 of 8 fixed addresses that are 0h, 8h, 10h, 18h, 20h, 28h, 30h or 38h.