https://github.com/shane-staret/simplebinarycalculator
A Java binary calculator based on a system of gates
https://github.com/shane-staret/simplebinarycalculator
adder assembly assembly-language-programming binary binary-addition calculator calculator-application half-adder java twos-complement unsigned-integers
Last synced: 11 months ago
JSON representation
A Java binary calculator based on a system of gates
- Host: GitHub
- URL: https://github.com/shane-staret/simplebinarycalculator
- Owner: shane-staret
- Created: 2018-02-06T23:53:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-19T18:17:53.000Z (almost 8 years ago)
- Last Synced: 2025-01-22T01:36:41.029Z (about 1 year ago)
- Topics: adder, assembly, assembly-language-programming, binary, binary-addition, calculator, calculator-application, half-adder, java, twos-complement, unsigned-integers
- Language: Java
- Homepage:
- Size: 24.4 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SimpleBinaryCalculator
This is a simple Java based binary calculator based on software emulated gates. Our application will support up to 8 bit binary values supporting addition and subtraction of any value within 8 bits.
The project is split into three portions:
* The Adder
* The Complementor
* The Registers
Each of these systems will be developed in a separate branch and merged when each branch has completed their work.
**Data Exchange between classes**
* Any data that will be exchanged between two or more parts of the program will be sent as an array of 8 boolean values.
* True representing a 1 and false representing a 0 in bolean values.
* The left most column of the array, position 0 in Java will represent the most significant digit of our binary number.
**Expectations of classes**
* The **adder** will blindly add any two numbers and return the result in an array
* If the application is subtracting two numbers the adder will be passed a properly sighned value so that the resulltant is correct
* The **complementor** will perform any complemtning steps necesary as well as performing a twos complement operation if subtraction is to be carried out
* The **register** will support three different registers
* The subtrahend or addend
* The minuend or addend
* The summand