Index | PAL Intro | Commands | Registers | Indices | Stack | Macros | Classes | Attributes | Errors
attr/xconv - Convert between register type and encoded data
attr/xconv reg <, reg ... >
Converts a list of numbered registers (P0 to P15) between a register type stored in the instance container and a PSUNIT_TYPE_XVALUE.
If the register contains the type PSUNIT_TYPE_OBJEDIT, PSUNIT_TYPE_WALKER, PSUNIT_TYPE_READSEG, PSUNIT_TYPE_READTAB, PSUNIT_TYPE_VCLASS, PSUNIT_TYPE_VATTR or PSUNIT_TYPE_READVAL then attr/xconv will encapsulate the pointer within a PSUNIT_TYPE_XVALUE and remove the reference from the instance container.
If the register contains the type PSUNIT_TYPE_XVALUE and the attribute is either psObjEdit, psWalker, psReadSeg, psReadTab, psVClass, psVAttribute or psReadVal then attr/xconv will remove the PSUNIT_TYPE_XVALUE encapsulation from the pointer and add the reference to the instance container.
A runtime error is generated if the argument is not a numbered register or does not contain one of the support data types.
pal_commands(5), pal_registers(5), attr_xcopy(5),
PROSE Assembly Language at prose.sourceforge.net.
Copyright (c) 2002-2015 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 | attr_xconv (5) | 6 March 2015 |