Index | PAL Intro | Commands | Registers | Indices | Stack | Macros | Classes | Attributes | Errors
func/addr - Address a function object
Synopsis
Description
Error Handling
Examples
See Also
Author
func/addr write, [name] <, write, [name] ... >
Loads addresses of function objects into the named registers. The arguments are grouped in pairs of write and read.
write Register to store the next pointer in. The pointer will be determined from the next name argument. name Name of function to lookup, supplied as a text string. This pointer will be stored in the register named in the previous write argument. Function objects are located by searching the following in order:
local context Functions anchored underneath the current executing object. module root Functions anchored to the module root. .prose.code.sys System functions with global scope.
A runtime error is generated if the named function cannot be located.
func/addr P0, [main] Loads the address of the main function into the register P0. func/addr PUSH, P0, PUSH, P1 Pushes the addresses of the functions identified in registers P0 and P1 to the program stack.
pal_commands(5), pal_registers(5), pal_indices(5), func_def(5), func_call(5),
PROSE Assembly Language at prose.sourceforge.net.
Copyright (c) 2002-2009 Mark R. Bannister <cambridge@users.sourceforge.net>.
This is free software and can be downloaded from prose.sourceforge.net; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
PAL 1.0 | func_addr (5) | 7 October 2009 |