Using Boolean Operators - HP 49G User Manual

Hide thumbs Also See for 49G:
Table of Contents

Advertisement

Using Boolean operators

7KH +3 * SURYLGHV D QXPEHU RI FRPPDQGV WKDW HQDEOH \RX WR SHUIRUP
%RROHDQ RSHUDWLRQV DQG FRPSDULVRQV RQ ELQDU\ LQWHJHUV 7KHVH
FRPPDQGV¦DYDLODEOH E\ SUHVVLQJ >ì
IROORZLQJ WDEOH 7KH LQSXW V\QWD[ VKRZQ DVVXPHV WKDW \RX DUH LQ DOJHEUDLF
PRGH
Commands
AND Logical bit-by-bit
AND of two arguments.
Compares corresponding
bits and returns true (1) if
both bits are 1.
NOT Returns the one's
complement of the argu-
ment. Each bit in the result
is the complement of the
corresponding bit in the
argument.
OR Logical bit-by-bit OR
of two arguments. Com-
pares corresponding bits
and returns true (1) if either
bit is 1.
XOR Logical bit-by-bit
exclusive OR of two argu-
ments. Compares corre-
sponding bits and returns
true (1) if only one of the
bits is 1.
a.This answer assumes that the wordsize has been set to 12.
Number bases
/2*,&
Input
# 1100b AND # 1010b
NOT (#111b)
# 1100b OR # 1010b
# 1101b XOR # 1011b
¦DUH LOOXVWUDWHG LQ WKH
Examples
Output
# 1000b
#111111110000b
# 1110b
# 110b
a
Page 8-5

Advertisement

Table of Contents
loading

Table of Contents