
src/pmc/opcode.pmc - Opcode information

Contains information on an opcode.
Returned by various functions in the OpLib PMC.
void init()Throws an exception. Opcode PMCs are not to be created directly.
void set_pointer(void *i)Sets the op_info_t this PMC gets information from.
Throws an exception if the pointer has already been set.
See also set_integer_native(),
below.
INTVAL get_integer()FLOATVAL get_number()Returns the opcode number.
void set_integer_native(INTVAL value)Sets the number for this opcode.
See also set_pointer,
above.
Throws an exception if set_pointer has already been called.
STRING* get_string()Returns the full name of the opcode.
INTVAL elements()Returns the number of arguments for the opcode.
INTVAL get_integer_keyed_int(INTVAL i)Returns the type information for the ith argument.
Returns -1 if the i is out of range.
The type is returned as an integer. The value is determined by bitwise oring together the basic type and a number of flags:
Basic Types:
Flags:
STRING *family_name()Returns the family, or short, name of the opcode.
INTVAL jump()Returns the jump value for the opcode.
PMC *dirs()Returns an array of direction information for the arguments.
labels()Returns an array describing if each argument is a label. (0 or 1)

src/pmc/oplib.pmc