|
|
Coerces an expression into a signed 64-bit value.
Syntax
s64 (value)
Formal Declaration
s64:s64 (value:any)
Parameters
- value
An arbitrary expression to be coerced.
Table 10-13 Derivation of the S64 Bit Pattern
Parameter Type |
Action |
BOOL | 1 if TRUE, 0 if FALSE. |
U16 U32 SPTR | Right justify the original value
in 64 bits with zero fill. |
S16 S32 S64 | Right justify the original value
in 64 bits with sign extension. |
LONG Class | Transfer the concatenation of
the SID and offset parts. |
EADDR SADDR | Transfer the offset part unchanged. |
STR | Transfer the ASCII bit pattern for the last eight
characters in the string. Strings shorter than eight characters are treated
as if they were extended on the left with nulls. |
Examples
$nmdebug > wl s64(1.2):"ZF" $0000000100000002
The long pointer value (1.2) is coerced into a signed 64-bit
value and displayed zero-filled ("Z") in a fixed field width ("F") format.
Limitations, Restrictions
none
|