Skip to content

sthaarwin/Calculator-using-Assembly-x86

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Calculator in Assembly (x86)

This project implements a basic calculator using x86 assembly. It can perform arithmetic operations such as addition, subtraction, multiplication, and division.

Features

  • Supports basic operations (+, -, *, /)
  • Command-line interface
  • Input validation for numerical values

Requirements

  • NASM assembler
  • Linux OS (or any x86-compatible system)
  • C++ compiler (for compiler.cpp)

How to Build and Run

  1. Clone the repository:

    git clone https://github.com/sthaarwin/Calculator-using-Assembly-x86
  2. Compile the C++ script compiler.cpp:

    g++ compiler.cpp -o compiler
  3. 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.

Contributing

Feel free to contribute by creating pull requests or reporting issues.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published