HPlogo System Debug Reference Manual > Chapter 10 System Debug Standard Functions

func s64

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

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
BOOL1 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 ClassTransfer the concatenation of the SID and offset parts.
EADDR
SADDR
Transfer the offset part unchanged.
STRTransfer 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




func s32


func saddr