This repository contains a few tools around the little man computer.
A simple but roboust assembler for lmc assmebly.
$ python3 asm.py input.asm > output| Program | Description |
|---|---|
| mul.asm | Multiplies two numbers |
| sum-100.asm | Sums the numbers from 1 to 100 |
| Program | Description |
|---|---|
| mul.asm | Multiplies two numbers |
| sum-100.asm | Sums the numbers from 1 to 100 |
An lmc simulator.
$ python3 sim.py inputor
$ python3 asm.py examples/sum-100.asm | python3 sim.py -Note
The simulator may prompt for input over stdin. This is not possible when the simulator accepts a program over stdin. In this case, the simulator will exit with an error.