09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

adb: Program Debugger <strong>XENIX</strong> Programming<br />

Operators<br />

You may combine integers, symbols, variables, and register names with the following<br />

operators:<br />

Unary<br />

Not<br />

Negative<br />

* Contents of location<br />

Binary<br />

+<br />

*<br />

%<br />

&<br />

I<br />

#<br />

Addition<br />

Subtraction<br />

Multiplication<br />

Integer division<br />

Bitwise AND<br />

Bitwise inclusive OR<br />

Modulo<br />

Round up to the next multiple<br />

Unary operators have higher precedence than binary operators. All binary operators<br />

have the same precedence. Thus, the expression<br />

2*3 +4<br />

is equal to 10 and<br />

is 18.<br />

4 + 2*3<br />

You can change the precedence of the operations in an expression by using parentheses.<br />

For example, the expression<br />

4 + (2*3)<br />

is equal to 10.<br />

Note that adb uses signed 32-bit arithmetic. This means that values that exceed<br />

2,14 7,483,64 7 (decimal) are displayed as negative values.<br />

6-8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!