https://github.com/sajdoko/assemblycalculator
A simple calculator written in x86 assembly with support for four main arithmetic operations
https://github.com/sajdoko/assemblycalculator
assembly calculator
Last synced: 12 days ago
JSON representation
A simple calculator written in x86 assembly with support for four main arithmetic operations
- Host: GitHub
- URL: https://github.com/sajdoko/assemblycalculator
- Owner: sajdoko
- Created: 2022-02-20T22:07:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-21T21:47:14.000Z (over 4 years ago)
- Last Synced: 2025-02-25T00:44:45.945Z (over 1 year ago)
- Topics: assembly, calculator
- Language: Assembly
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Assembly Calculator
A simple calculator written in x86 assembly with support for four main arithmetic operations:
- `Addition`
- `Subtraction`
- `Multiplication`
- `Division`
## Usage
./calculator
./calculator + 2 6
8
## Operations supported
+ - * /
## Compiling
First install [NASM](https://github.com/netwide-assembler/nasm "Netwide Assembler")
sudo apt-get install nasm
Then, to compile run:
nasm -f elf64 -o calculator.o calculator.asm
ld -d calculator calculator.o
or
make