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.4.tar.gz
.
File metadata
- Download URL: pythonRSC-0.0.4.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 | a3e5602c110a53abf55328f1b35266a19107875c99f1e70bc02c8cff99abbb8f |
|
MD5 | c26f809b8e54860813c991350d535f6b |
|
BLAKE2b-256 | 6826a3355f019018248c01a0dfe4ef3a20ca0927876bf667b02c5e34e5ae14c9 |
File details
Details for the file pythonRSC-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: pythonRSC-0.0.4-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 | ee8deabc9ef48d1bc34a7376ae1d652331b25650f3400374242111fa54bb3666 |
|
MD5 | 4f74a4f00add672850e3a31efd279f0c |
|
BLAKE2b-256 | eade9bd8cc3483a91d180c719b12229fe5f3fce37842b983ef9928f84df86652 |