z80:Opcodes:RST
From Learn @ Cemetech
Revision as of 22:00, 5 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
The current PC value plus three is pushed onto the stack. The MSB is loaded with $00 and the LSB is loaded with imm8.
Syntax
RST imm8
Allowed Instructions
RST $00 RST $08 ;rOP1ToOP2 RST $10 ;rFindSym RST $18 ;rPushRealO1 RST $20 ;rMove9ToOP1 RST $28 ;rBCALL RST $30 ;rFPAdd RST $38
Effects
All flags unaffected.
Uses
RST $28 is used by TI calculators for ROM calls.
#define bcall(label) rst $28 \ .dw label
T-States
11 t-states
See Also