System Debug Reference Manual (32650-90888)

438 Chapter10
System Debug Standard Functions
func s32
$nmdat > wl s16( true )
$1
$nmdat > wl s16( "ABCDEFG" )
$4647
$nmdat > wl s16( prog(1.2) )
$2
Limitations, Restrictions
none
func s32
Coerces an expression into a signed 32-bit value.
Syntax
s32 (
value
)
Formal Declaration
s32:s32 (
value
:any)
Parameters
value
An expression to be coerced. All types are valid.
Table 10-12. Derivation of the S32 Bit Pattern
Parameter Type Action
BOOL 1 if TRUE, 0 if FALSE.
U16 Right justify the original 16-bit value in 32 bits with zero fill.
S16 Right justify the original 16-bit value in 32 bits with sign extension.
U32
S32
SPTR
Transfer the original bit pattern unchanged.
S64 Transfer the low-order 32 bits.
LONG Class
EADDR
SADDR
Transfer the low-order 32 bits of the offset part.