pTAL Conversion Guide

pTAL Built-In Routines
pTAL Conversion Guide527302-002
18-23
$EXTADDR_TO_WADDR
expression
is an expression whose value is an EXTADDR address.
In TAL, the result of $EXTADDR_TO_BADDR is undefined if the conversion cannot be
performed.
$EXTADDR_TO_WADDR
$EXTADDR_TO_WADDR converts an EXTRADDR address to a WADDR address.
expression
is an expression whose value is an EXTADDR address.
In TAL, the result of $EXTADDR_TO_WADDR is undefined if the conversion cannot be
performed.
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
Example 18-14. Call to $EXTADDR_TO_BADDR Routine
PROC p(x);
STRING .EXT x;
BEGIN
STRING .j;
@j := $EXTADDR_TO_BADDR(@x);
@j := $EXTADDR_TO_BADDR(x); ! ERROR: x is STRING, not EXTADDR
END;
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
expression( )
VST687.vsd
$EXTADDR_TO_WADDR