pTAL Reference Manual (G06.24+, H06.09+, J06.03+)
NoSets $CARRY
NoSets $OVERFLOW
expression
is an expression whose value is n SGWADDR or SGXWADDR address.
$SGWADDR_TO_EXTADDR returns expression converted to an EXTADDR address.
Example 304 $SGWADDR_TO_EXTADDR Routine
STRING .EXT s;
INT .SG i;
@s := $SGWADDR_TO_EXTADDR(@i);
$SGWADDR_TO_SGBADDR
$SGWADDR_TO_SGBADDR converts an SGWADDR or SGXWADDR address to an SGBADDR
address.
NopTAL privileged procedure
NoCan be executed only by privileged procedures
NoSets condition code
NoSets $CARRY
NoSets $OVERFLOW
expression
is an expression whose value is an SGWADDR or SGXWADDR address.
If expression is not an address in the lower half of the 64K word segment, the address returned
by $SGWADDR_TO_SGBADDR is undefined.
Example 305 $SGWADDR_TO_SGBADDR Routine
STRING .SG s;
INT .SG i;
@s := $SGWADDR_TO_SGBADDR(@i); !OK: OK if i is in the
! lower half of system globals
$SPECIAL
$SPECIAL tests the right byte of an INT value for the presence of an ASCII special (nonalphanumeric)
character (see Table 8 (page 36)).
NopTAL privileged procedure
NoCan be executed only by privileged procedures
NoSets condition code
Nonatomic Operations 343