Skip to content

This is Simple Calculator made using LC3 instructions its able to compute addition, subtraction, multiplication, floor division and modulation.

Notifications You must be signed in to change notification settings

SillySerpent/Assembly-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assembly-Calculator

This is a Simple Calculator made using LC3 instructions. It can compute addition, multiplication, subtraction, floor division and modulation. It can compute single-digit integers; the output will also be a single-digit integer.

How To Use

  1. Load PennSim up. This is the LC3 Simulator. You also have to have Java downloaded.
  2. Make sure all the files are in the same folder, including PennSim, Lc3os.asm and calculator.asm
  3. Load PennSim up and have a look where the command line is (pointed out in the picture) Screenshot 2024-09-07 at 3 32 59 AM
  4. In the command line, run the following commands:
    1. as lc3os.asm
    2. load lc3os.obj
    3. as calculator.asm
    4. load calculator.obj
  5. Once the previous step has been completed, click "continue" at the top of the simulator, and the program will execute in the bottom left screen.

The Index for each operation

  1. Index 1 is addition " + "
  2. Index 2 is subtraction " - "
  3. Index 3 is multiplication " * "
  4. Index 4 is division " / "
  5. Index 5 is modulation " % "

About

This is Simple Calculator made using LC3 instructions its able to compute addition, subtraction, multiplication, floor division and modulation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published