pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

expression
is an expression whose value is an SGBADDR or SGXBADDR address.
$SGBADDR_TO_EXTADDR returns expression converted to an EXTADDR address.
Example 302 $SGBADDR_TO_EXTADDR Routine
STRING .SG s;
INT .EXT i;
INT j;
@i := $SGBADDR_TO_EXTADDR(@s[j]); !??: OK if @s[j] is at an
! even-byte offset;
! otherwise, @i is undefined.
$SGBADDR_TO_SGWADDR
$SGBADDR_TO_SGWADDR converts an SGBADDR or SGXBADDR address to an SGWADDR
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 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.
Example 303 $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.
$SGWADDR_TO_EXTADDR
$SGWADDR_TO_EXTADDR converts an SGWADDR or SGXWADDR address to an EXTADDR
address.
NopTAL privileged procedure
NoCan be executed only by privileged procedures
NoSets condition code
342 Built-In Routines