https://github.com/matveypavlich/calculator-x86-asm
Practicing x86 assembly by building a calculator
https://github.com/matveypavlich/calculator-x86-asm
asm asmx86 assembly calculator learn-assembly nasm nasm-assembly simple-project x86 x86-assembly
Last synced: 12 months ago
JSON representation
Practicing x86 assembly by building a calculator
- Host: GitHub
- URL: https://github.com/matveypavlich/calculator-x86-asm
- Owner: MatveyPavlich
- Created: 2025-06-09T05:08:23.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-24T19:15:54.000Z (12 months ago)
- Last Synced: 2025-06-24T20:27:29.350Z (12 months ago)
- Topics: asm, asmx86, assembly, calculator, learn-assembly, nasm, nasm-assembly, simple-project, x86, x86-assembly
- Language: Assembly
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calculator in x86 assembly v1.4
## Introduction
- This is a simple calculator that is written in x86 assembly! My first mini-project to practice assembly.
- Development: 2025-06-08 - 2025-Present
- Version developed: 2025-06-16 - 2025-06-28
- Can handle 1 digit signed numbers (except for division, for which it should be unsigned)
## Packages
To run the app, make sure you have the following packages installed:
1. `nasm` – **Assembler** for compiling x86 assembly source files into object code.
2. `gcc` – **C compiler toolchain** (provides the linker and standard libraries; `ld` is used indirectly or via `binutils`).
3. `make` – **Build automation tool** used to run the `Makefile` targets like `make`, `make run`, etc.
4. `gdb` – **GNU Debugger** (optional) – useful for stepping through and debugging your assembly code.
For Debian/ Ubuntu-based systems:
```
sudo apt update
sudo apt install nasm gcc make gdb
```
For Arch Linux:
```
sudo pacman -S nasm base-devel gdb
```
## Running the app
This app should be ran on x86 architecture. It will not run on ARM machines (e.g., Silicon Macs). To run the app simply:
1. Type `make` to assemble the source code in the terminal (make sure you are in the correct directory)
2. Type `make run` to run the program
3. To debug the program using GDB use `make debug`