pTAL Conversion Guide

TAL Standard Routines
pTAL Conversion Guide527302-002
17-13
$USERCODE
$USERCODE
$USERCODE is a TAL routine for which pTAL has nothing similar.
$USERCODE returns the contents of a specified location.
expression
is an INT or UNSIGNED(1-16) expression whose value is the address of a word in
the current code space of the current user code segment:
$XADR
$XADR is a TAL routine for which pTAL has a built-in routine with the same name but
slightly different behavior.
$XADR converts a standard address to an EXTADDR address.
variable
is a variable that has a standard address. variable can be the name of a pointer
preceded by an @ operator, in which case $XADR returns the absolute address of
the pointer.
If variable is not a variable:
If variable is a system global address (an SGBADDR, SGWADDR, SGXBADDR, or
SGXWADDR address), $XADR returns an absolute extended EXTADDR address in
absolute segment 1.
TAL Compiler pTAL or EpTAL Compiler
Issues a warning Reports an error
$USERCODE
( expression )
VST022.vsd
variable( )$XADR
VST115.vsd