Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Assignment 1: Simple Calculator in Assembly

Tasks

  • Display nice message to user
  • Handle inputs of operations and operands
  • Handle invalid input
  • Clear console and display result - idk how to implement this :P
  • Implement sum
  • Implement sub
  • Implement div
  • Implement mul

Dependencies

  • nasm
  • gcc
  • gdb (for debugging)
  • ld the GNU linker - binutils

How to run

  1. run $ make
  2. run $ ./casm

About this assignmet

Requirements:

  • Implement a simple calculator program in assembly language that supports basic arithmetic operations (addition, subtraction, multiplication, and division).
  • Take user input for two operands and the desired operation.
  • Display the result of the calculation.
  • Implement error handling for invalid input.

Restrictions:

  • Use only basic arithmetic instructions available in the chosen assembly language.
  • Avoid using high-level constructs; stick to low-level operations.
  • Minimize the use of external libraries or system calls.

Submission Guidelines:

  • Submit the assembly source code along with any necessary files for building and running the program.
  • Include a README file explaining how to assemble and run the calculator program.
  • Provide a brief report discussing the challenges faced during implementation and how they were addressed.

About

Simple 32bit Calculator in Assembly

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages