ptrlib.fj

———- Init

View source on GitHub

Macros

stl

  • stl.ptr_init — One-time initialisation of the pointer dispatch infrastructure. Use stl.startup_and_init_pointers, which calls this for you.

  • stl.stack_init — Initializes a stack of size n (maximal capacity of n hexes / return-addresses).

  • stl.call/1 — Saves the return address to the stack and jumps to the given “address”.

  • stl.call/2 — Saves the return address to the stack and jumps to the given “address”.

  • stl.return — Returns to the calling function (gets the return-address from the top of the stack).

  • stl.get_spdst[:w/4] = sp

  • stl.fcall — Jumps to label, and saves the return address in the given “ret_reg” variable.

  • stl.fret — Return into the address written in the “ret_reg” variable.