Defines | |
#define | XLIBnibbles(src) (5+3+3) |
Return the number of nibbles in an XLIB. | |
Functions | |
bool | isXLIB (SatAddr src) |
is the object at src an XLIB? | |
bool | XLIBdecode (SatAddr src, int *lib, int *cmd) |
extract an XLIB's library and command numbers. | |
SatAddr | XLIBencode (int lib, int cmd, SatAddr dst) |
Encode an XLIB object with the given library and command numbers. | |
SatAddr | makeXLIB () |
Create an empty XLIB in tempOb. Contents are undefined. |
#define XLIBnibbles | ( | src | ) | (5+3+3) |
Return the number of nibbles in an XLIB.
src | Saturn address of an XLIB. This parameter is unused but is included for consistency with the other XYZnibbles() functions. |
bool isXLIB | ( | SatAddr | src | ) |
is the object at src an XLIB?
src | Saturn address of an object |
bool XLIBdecode | ( | SatAddr | src, | |
int * | lib, | |||
int * | cmd | |||
) |
extract an XLIB's library and command numbers.
src | Saturn address of an XLIB | |
lib | if non-null, the library number will be stored here. | |
cmd | if non-null, the command number will be stored here. |
Encode an XLIB object with the given library and command numbers.
lib | The library number. Must be between 0 and 0xfff | |
cmd | The command number. Must be between 0 and 0xfff | |
dst | The Saturn address where the XLIB should be stored, or zero to create a new XLIB |