Ski IA-64 Simulator Reference Manual 1.0L

Table 4-1. Ski Simulator Arithmetic and Logic Operators

Operator

Description

 

 

( )

group operators with operands

! ~ + - *

opposite truth value, logical one’s complement,

 

unary plus, unary minus, dereference: treat as an

 

address and read eight bytes

* /

multiply, divide

+ -

add, subtract

<< >>

logical left shift, logical right shift

< <= > >=

less than, less than or equal to, greater than, greater

 

than or equal to

== !=

equal to, not equal to

&

bitwise and

^

bitwise exclusive or

bitwise or

&&

logical and

logical or

 

 

As an example, in xski,

eval 64 0d64 0o64 0b100000 *main ~(((0D1234+0X10EF0)*4)<<6)+0B10001001

prints the values of the six expressions in the Main Window, as shown in Figure 4-1.The first expression is taken as a hexadecimal number, the second as a decimal number, the third as an octal number, and the fourth as a binary number. The fifth expression is the value at the location specified by the symbol “ main” (the first 64 bits of the code bundle at that loca- tion), and the sixth expression is the result of some arithmetic.

Figure 4-1. xski Evaluating Expressions

Copyright © 2000 Hewlett-Packard Co.

Command Language 4-3

Page 55
Image 55
HP IA-64 manual Ski Simulator Arithmetic and Logic Operators, Xski Evaluating Expressions