pTAL Reference Manual (H06.03+)

Built-In Routines
HP pTAL Reference Manual523746-005
15-85
$SGWADDR_TO_SGBADDR
$SGWADDR_TO_SGBADDR
$SGWADDR_TO_SGBADDR converts an SGWADDR or SGXWADDR address to an
SGBADDR address.
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.
$SPECIAL
$SPECIAL tests the right byte of an INT value for the presence of an ASCII special
(nonalphanumeric) character (see Table 2-1 on page 2-2).
Example 15-83. $SGWADDR_TO_EXTADDR Routine
STRING .EXT s;
INT .SG i;
@s := $SGWADDR_TO_EXTADDR(@i);
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
Example 15-84. $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
expression( )
VST690.vsd
$SGWADDR_TO_SGBADDR
( )
VST111.vsd
$SPECIAL int-expression