An open API service indexing awesome lists of open source software.

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

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