https://github.com/mwja/python-lmc
Little Man Computer in Python
https://github.com/mwja/python-lmc
handlers littlemancomputer lmc python python3
Last synced: 3 months ago
JSON representation
Little Man Computer in Python
- Host: GitHub
- URL: https://github.com/mwja/python-lmc
- Owner: mwja
- Created: 2021-05-05T23:17:42.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-11T06:55:42.000Z (about 4 years ago)
- Last Synced: 2025-02-09T00:41:26.790Z (4 months ago)
- Topics: handlers, littlemancomputer, lmc, python, python3
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python LMC
Version of the little man computer, in Python, that also supports a superset of instruction(s) (handlers) and interfacing with external components.## Running
(This will improve later)```bash
# To run a file on normal LMC
py -m lmc file_name.txt# To run with a file handler where device 0 is the target_file
py -m lmc file_name.txt target_file.txt --write-files
```## Examples
- `cat.txt` Uses file handler superset to cat to a given file
- `run-unicode.txt` Prints unicode characters from U0 onwards (also uses superset to write to given file)