HPlogo System Debug Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 8 System Debug Standard Functions

func eaddr

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Coerces an expression into an extended address.

Syntax

   eaddr (value)  

Formal Declaration

   eaddr:eaddr (value:any) 

Parameters

value

An expression to be coerced. All types are valid.

Table 8-4 Derivation of the EADDR Bit Pattern

Parameter TypeAction

BOOL

0.1 if TRUE, 0.0 if FALSE.

U16 U32 SPTR

Set the SID part to zero. Right justify the original value in the low-order 64 bits of the offset part with zero fill.

S16 S32 S64

Set the SID part to zero. Right justify the original value in the low-order 64 bits of the offset part with sign extension.

LONG Class

Transfer the SID part unchanged. Right justify the original offset part in the low-order 64 bits of the offset part with zero fill.

EADDR SADDR

Transfer both parts of the address unchanged.

STR

Transfer the ASCII bit pattern for the last twelve characters in the string. Strings shorter than twelve characters are treated as if they were extended on the left with nulls.

 

Examples

   $nmdat > wl eaddr( 1 )

   $0.1



   $nmdat > wl eaddr( ffff )

   $0.ffff



   $nmdat > wl eaddr( 1234abcd )

   $0.1234abcd



   $nmdat > wl eaddr( -1 )

   $0.ffffffffffffffff



   $nmdat > wl eaddr( 1234.5678 )

   $1234.5678



   $nmdat > wl eaddr( true )

   $0.1



   $nmdat > wl eaddr( prog(1.2) )

   $1.2

Limitations, Restrictions

none

Feedback to webmaster