pTAL Reference Manual (H06.03+)

Built-In Routines
HP pTAL Reference Manual523746-005
15-35
$DBLL
$DBLL
$DBLL converts to INT values an INT(32) value.
int-expression
is an INT expression.
To form the INT(32) value, $DBLL places the first int-expression in the high-order
16 bits and the second int-expression in the low-order 16 bits.
Example 15-21. $DBL Routine
INT .EXT i;
EXTADDR e;
INT(32) j;
j := $DBL(e); ! OK: e is type EXTADDR
j := $DBL(@i); ! OK: @i is type EXTADDR
j := $DBL(i); ! OK: i is type INT
j := $DBL(@j); ! ERROR: @j is type WADDR
j := $DBL(@e); ! ERROR: @e is type WADDR
pTAL privileged procedure No
Can be executed only by privileged procedures No
Sets condition code No
Sets $CARRY No
Sets $OVERFLOW No
Example 15-22. $DBLL Routine
INT first_int, second_int;
INT(32) some_double;
INT .EXT p; ! 32-bit simple pointer
some_double := $DBLL (first_int, second_int);
! Return INT(32) value
@p := ($DBLL (2, 7)) '<<' 1; ! Return 32-bit address in
! user code segment
DBLL
( int-expression , int-expression )
VST079.vsd