ptrlib.fj¶
———- Init
Macros¶
stl¶
stl.ptr_init— NOTE: must be placed just after the startup, so that the read_ptr_byte_table will be in address 256.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_sp— (Unsafe if dst overlaps with hex.pointers.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.