Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASM Calculator

🇬🇧 English | 🇷🇺 Русский

A simple command-line calculator written in x86-64 Assembly.

Features

  • Integer addition
  • Integer subtraction
  • Integer multiplication
  • Integer division
  • Division-by-zero handling
  • Uses printf and scanf
  • System V AMD64 ABI
  • NASM syntax

Requirements

  • Linux
  • NASM
  • GCC
  • GNU Make

Build

make

Manual build:

nasm -f elf64 -g src/main.asm -o bin/obj/main.o
gcc -no-pie bin/obj/main.o -o bin/out/calculator

Run

make run

or

./bin/out/calculator

Example

Project Structure

.
├── src/
│   └── main.asm
├── notes/
├── bin/
├── Makefile
├── LICENSE
└── README.md

About

This is my first project written in x86-64 Assembly. The project was created to practice Assembly programming and the System V AMD64 ABI.

Roadmap

License

MIT


Contributors

Languages