pTAL Reference Manual (H06.08+)

Built-In Routines
HP pTAL Reference Manual523746-006
15-84
$SGWADDR_TO_EXTADDR
expression
is an expression whose value is an SGBADDR or SGXBADDR address.
$SGBADDR_TO_SGWADDR returns expression converted to an SGWADDR address.
The result is undefined if the least significant bit of expression is 1.
$SGWADDR_TO_EXTADDR
$SGWADDR_TO_EXTADDR converts an SGWADDR or SGXWADDR address to an
EXTADDR address.
expression
is an expression whose value is n SGWADDR or SGXWADDR address.
$SGWADDR_TO_EXTADDR returns expression converted to an EXTADDR
address.
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
Example 15-82. $SGBADDR_TO_SGWADDR Routine
STRING .SG s;
INT .SG i;
INT j;
@i := $SGBADDR_TO_SGWADDR(@s[j]); !??: OK if @s[j] is at an
! even-byte offset;
! otherwise, @i is undefined.
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
expression
( )
VST605.vsd
$SGWADDR_TO_EXTADDR