HP 3000 Manuals

func s64 [ System Debug Reference Manual ] MPE/iX 5.0 Documentation


System Debug Reference Manual

func s64 

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.

          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 64 bits with zero |
|                           | fill.                                                        |
|                           |                                                              |
--------------------------------------------------------------------------------------------
|                           |                                                              |
| S16                       | Right justify the original 16-bit value in 64 bits with sign |
|                           | extension.                                                   |
|                           |                                                              |
--------------------------------------------------------------------------------------------
|                           |                                                              |
| U32                       | Set the high-order 32 bits to zero.  Transfer the original   |
| S32                       | bit pattern into the low-order 32 bits (offset part)         |
| SPTR                      | unchanged.                                                   |
|                           |                                                              |
--------------------------------------------------------------------------------------------
|                           |                                                              |
| LPTR                      | Transfer both parts of the address unchanged.                |
| PROG                      |                                                              |
| GRP                       |                                                              |
| PUB                       |                                                              |
| LGRP                      |                                                              |
| LPUB                      |                                                              |
| SYS                       |                                                              |
| USER                      |                                                              |
| TRANS                     |                                                              |
| CST                       |                                                              |
| CSTX                      |                                                              |
|                           |                                                              |
--------------------------------------------------------------------------------------------
|                           |                                                              |
| 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



MPE/iX 5.0 Documentation