Wednesday, October 3, 2012

How to use logical operators in Base Mode

Model : CASIO  fx-991MS, CASIO fx-570MS

Addition,Subtraction,Multiplication, Division are same as arithmetic calculation in Base Mode.Besides this you can use the following logical operators between values in Base-n calculations. The meaning of this operators are as follows..


1. and --> logical product
2. or --> logical sum
3. xor --> exclusive or
4. xnor --> exclusive nor
5. Not --> Bitwise complement
6. Neg --> Negation

Example: Perform the calculation 12016 or 11012 and produce a hexadecimal and a decimal result. (Ans : 12d16, 30110)

Solution:
 
(Mode initialization)
MODE >> MODE >> 3(BASE)

(Perform calculation)
(Hexadecimal Mode) >> 1 >> 2 >> 0 >>  x-1(Logic) >> 2(or) >> x-1 >>  x-1 >>  x-1 >> 3(b) >> 1 >> 1 >> 0 >> 1 >> =(In Hexadecimal) >> x2(In Binary)

 If you want to produce negative binary, octal and hexadecimal values you can do it by taking the two's complement.