pTAL Guidelines for TAL Programmers
Differences Between TAL and pTAL
pTAL Guidelines for TAL Programmers—527256-002
3-2
Address-Conversion Routines
Table 3-1. Address-Conversion Routines
Routine
Converts address ...
Difference Between
TAL and pTALFrom To
$BADDR_TO_EXTADDR(x ) BADDR EXTADDR
$BADDR_TO_WADDR(x ) BADDR WADDR In TAL, the low-order
(rightmost) bit of x is
discarded. If x is an
odd-byte address, the
address after
conversion points to a
location one byte less
than the original
address.
$EXTADDR_TO_BADDR(x ) EXTADDR BADDR
$EXTADDR_TO_WADDR(x ) EXTADDR WADDR
$SGBADDR_TO_EXTADDR(x )SGBADDR or
SGXBADDR
EXTADDR
$SGBADDR_TO_SGWADDR(x )SGBADDR or
SGXBADDR
SGWADDR In TAL, the low-order
(rightmost) bit of x is
discarded. If x is an
odd-byte address, the
address after
conversion points to a
location one byte less
than the original
address.
$SGWADDR_TO_EXTADDR(x )SGWADDR or
SGXWADDR
EXTADDR
$SGWADDR_TO_SGBADDR(x )SGWADDR or
SGXWADDR
SGBADDR In TAL, the high-order
(leftmost) bit of x is
discarded.
$WADDR_TO_BADDR(x ) WADDR BADDR In TAL, the high-order
(leftmost) bit of x is
discarded.
$WADDR_TO_EXTADDR(x ) WADDR EXTADDR
$XADR(x ) Standard EXTADDR