- Function
Call a subroutine passing register values.
- Header
- Declaration
void __fastcall__ _sys (struct regs* r);- Description
The function will call the subroutine at the address specified in the
pcmember of the passedregsstructure. All registers and the CPU flags are set to the values given in theregsstructure. On return from the subroutine, the new values of the registers and flags are stored back overwriting the old values.- Limits
- Bits 4 and 5 of the flags value in the
regsstructure are ignored when calling the subroutine (they are unchanged from their current values).- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- Availability
cc65
- Example
None.