click here to load a frame set

Binary Calculator Help

INDEX

Introduction
What is Binary Calculator?
Little description
Functions reference
Clear the result
Set a number into the result field
Addition
Subtraction
Multiplication
Division
Logical AND
Logical OR
Logical XOR
Logical NOT
Shift left a bit
Shift right a bit
Store a value
Recall a stored value
Simply problem
Autor contacts

Top of Page

Introduction

This text is written in my best english. Sorry my english is not good, but I hope when I write in english, you understand me better than in German.

What is Binary Calculator?

A screen shot from Binary Calculator

Binary calculator is a easy and little program to calculate integer numbers with binary operations (no floating point).
It's very helpful to programming.
The Binary Calculator is freeware:

Icon from Binary calculator icon from Binary Calculator

Top of Page

Little description

Binary Calculator supports all logical operations like AND, OR, XOR, NOT. It can also calculate with normal operation (+, -, /, *). Then it have Shift Left and Shift Right functions. For store the result, it includes six memory places. Another really good function are the convert fields for binary, decimal, hexadecimal, octal and character.
Binary Calculator make it easy to convert a number in another system. It works with a HP RPN similar syntax: Enter the value in to the edit field you need, than press the operation you need.
The programm file BINARY.EXE is all you need to run. There arn't any .DLL's or a installation routine!

Top of Page

Functions reference

In all example, the one number is in the result field, the other (if needed) in the active memory.
If there is something like this in the text: ->ADD, it means the button "ADD".
"Memory" means all input field (binary, decimal, hexadecimal, octal, character).

Top of Page

Clear the result

To clear the result:

Top of Page

Set a number into the result field

If you want to add a number to the result field, do following thing:

Top of Page

Addition

To add two numbers:

Top of Page

Subtraction

To subtract a number from another:

NOTE: The number in the memory will be subtracted from the number in the result field.

Top of Page

Multiplication

To multiply two numbers:

Top of Page

Division

To divide a number from another:

NOTE: the number in the result field will be divide by the number in the memory.
The DIV - operation supports only integer division, if you divide 3 by 2, it calculate 1.

Top of Page

Logical AND

To make a logical AND with two numbers:

Top of Page

Logical OR

To make a logical OR with two numbers:

Top of Page

Logical XOR

To make a logical eXclusive OR with two numbers:

Top of Page

Logical NOT

To invert a number with the logical operation NOT:

NOTE: If the number is positive, the result is negative and reverse
This Operation inverse always all 32 bits (NOT 0 return -1111'1111'1111'1111'1111'1111'1111'1111b).

Top of Page

Shift left a bit

To shift left a bit:

NOTE: Shift left is the same like a multiplication with 2.

Top of Page

Shift right a bit

To shift right a bit:

NOTE: Shift left is the same like a division by 2.

Top of Page

Store a value

You can store the value in the result field:

NOTE: If the memory field is always full, the new value overwrite the old value.

Top of Page

Recall a stored value

A stored result can be recalled by selecting the memory field.

Simple problem

(2d + 10h) OR (10b SHL 2)

Calculation:
(0. press ->CLEAR)

  1. Mark Memory field 1
  2. Decimal field enter 2
  3. Press ->ADD
  4. Hexadecimal field enter 10
  5. Press ->ADD
  6. Press ->STORE
  7. Mark Memory field 2
  8. Press ->CLEAR
  9. Binary field enter 10
  10. Press ->ADD
  11. Press ->SHL twice
  12. Mark Memory 1
  13. Press ->OR

Top of Page

Autor contacts

Name: Andreas Stricker

e-mail: Andy.Stricker@spectraweb.ch

Homepage #1: http://www.spectraweb.ch/~astric/
Homepage #2: http://www.futurespace.ch/andy/

The official place from this document in the Web is: http://www.futurespace.ch/andy/e_binary/help.htm


© 1998 by Andreas Stricker e-mail Andy.Stricker@spectraweb.ch / last updated 17.7.1998