pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-43
TAL
TAL
TNS processes ignore the low-order bit of expression; therefore, if the low-order bit is
1, your program addresses the byte at the next lower byte address than that specified
by expression.
pTAL
Native processes do not support this “round-down” effect. The value returned by
$SGBADDR_TO_SGWADDR for programs run as native processes 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 an 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 18-32. Call to $SGWADDR_TO_EXTADDR Routine
STRING .EXT s;
INT .SG i;
@s := $SGWADDR_TO_EXTADDR(@i);
expression( )
VST605.vsd
$SGWADDR_TO_EXTADDR