This project implements a basic calculator using x86 assembly. It can perform arithmetic operations such as addition, subtraction, multiplication, and division.
- Supports basic operations (+, -, *, /)
- Command-line interface
- Input validation for numerical values
- NASM assembler
- Linux OS (or any x86-compatible system)
- C++ compiler (for
compiler.cpp
)
-
Clone the repository:
git clone https://github.com/sthaarwin/Calculator-using-Assembly-x86
-
Compile the C++ script
compiler.cpp
:g++ compiler.cpp -o compiler
-
Run the compiler to build and run all
.asm
files:./compiler
The script will search for all
.asm
files in the directory, compile them using NASM, and run the resulting executables.
Feel free to contribute by creating pull requests or reporting issues.