586 Basic integer arithmetic
: returns the one’s complement (that is, each bit in the
specified wordsize is inverted: a 0 is replaced by 1 and a 1
by 0. The new integer represented appears in the
Out field
(and in the hex and decimal fields below it).
: activates edit mode. A cursor appears and you can
move abut the dialog using the cursor keys. The hex and
decimal fields can be modified, as can the bit
representation. A change in one such field automatically
modifies the other fields.
: closes the dialog and saves your changes. If you
don’t want to save your changes, press
J instead.
3. Make whatever changes you want.
4. To save your changes, tap ; otherwise press
J.
Note
If you save changes, the next time you select that same result in
Home view and open the Edit Integer dialog, the value shown
in the Was field will be the value you saved, not the value of the
result.
Base functions
Numerous functions related to integer arithmetic can be invoked
from Home view and within programs:
These are described in “Integer”, beginning on page 547.
• BITAND • BITNOT • BITOR
• BITSL • BITSR • BITXOR
• B→R • GETBASE • GETBITS
• R→B • SETBASE • SETBITS