1 stable release
2.0.1 | Jul 1, 2023 |
---|
#200 in Simulation
115KB
2.5K
SLoC
LMinC
This is an assembler and simulator for the Little Minion Computer and Little Man Computer.
The Little Minion Computer model was created by Professor Magnus Bordewich of Durham University, based on the Little Man Computer created by Dr. Stuart Madnick of M.I.T. in 1965.
It supports the assembly in both specifications.
Little Minion Computer Assembly, Little Man Computer
Installing with cargo
Make sure you have cargo installed.
cargo install --git https://github.com/tomboddaert/lminc
Examples
Assembly examples
- There is an example of assembly in examples/fib.txt.
- There are an example of number assembly in examples/fib_num.txt.
Library examples
- There is an example of assembling and running from assembly in examples/fibonacci.rs
- There is an example of assembling and running from numbers in examples/fibonacci_from_nums.rs
- There is an example of saving and loading a computer's memory in examples/save_and_load.rs
Extended mode (unstable)
I am working on an extended mode. The documentation is in extended_mode.md.
License
LMinC is dual-licensed under either the Apache License Version 2.0 OR MIT license at your option.