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.
- Load PennSim up. This is the LC3 Simulator. You also have to have Java downloaded.
- Make sure all the files are in the same folder, including PennSim, Lc3os.asm and calculator.asm
- Load PennSim up and have a look where the command line is (pointed out in the picture)

- In the command line, run the following commands:
- as lc3os.asm
- load lc3os.obj
- as calculator.asm
- load calculator.obj
- 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.
- Index 1 is addition " + "
- Index 2 is subtraction " - "
- Index 3 is multiplication " * "
- Index 4 is division " / "
- Index 5 is modulation " % "