An emulator for the RSC architecture written in Python.
Project description
pyRSC ( Relatively Simple Computer in Python )
pyRSC is an emulator for the RSC architecture written in Python.
To download the package, just use pip by pip install pythonRSC
After downloading the package, you can quickly test it by running through the command line.
pyRSC run tests\avg.txt
This will emulate the given microcode and expects no other inputs. As for the assembler, if you wish to create logisim-formatted binaries you can use the assembler command.
pyRSC assembler tests\avg.txt output.txt
It is required that you give an output filename along with the given input file. If you wish to use pythonRSC and its libraries, you can easily include them like so.
from pyRSC import RSC
pyRSC = RSC("tests\\avg.txt")
pyRSC.run() # Runs the given instructions and gives you an output!
pyRSC._assembler.logisim_format("output.txt") # Logisim-formatted binary output
pyRSC.mem.disasm(0x0, 0x1F) # Disassembly of the given instructions
The debug command is currently in development and will be documented in later versions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pythonRSC-0.0.5.tar.gz
.
File metadata
- Download URL: pythonRSC-0.0.5.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 067ed10be4fdd98f6742cc21f53d29aba5cabbf7214bf6d9d0773f1779c5d9d8 |
|
MD5 | c8583728de629ef016d6cbd683520fe2 |
|
BLAKE2b-256 | 76983c9deff1674b0a3c507655945fa839f1c30610e72dd4d6e6ef783a76eb63 |
File details
Details for the file pythonRSC-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: pythonRSC-0.0.5-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2147a13aa7598f5a434124ae11620b432432dfd37bf97ccda31367a73d92e5b1 |
|
MD5 | 401324f54d45ee3d4ce4de448bee495e |
|
BLAKE2b-256 | 38f3cedfa76ac2438612981a7468f5cc0f7e756f981b454309fc8ee32bb961db |