Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythonRSC-0.0.2.tar.gz (19.6 kB view details)

Uploaded Source

Built Distribution

pythonRSC-0.0.2-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file pythonRSC-0.0.2.tar.gz.

File metadata

  • Download URL: pythonRSC-0.0.2.tar.gz
  • Upload date:
  • Size: 19.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for pythonRSC-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6c361dcaa3a64a780815e70836ff640458c5156b99066c0763cdfe968bfff050
MD5 e5b7f5d41be8096cdc0fe84dda9226e0
BLAKE2b-256 2d266cb9d4ffb3bfdf436effc6dd14f89bd8a60c3426ce69f92aea181899f2ec

See more details on using hashes here.

File details

Details for the file pythonRSC-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pythonRSC-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for pythonRSC-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfd9a1e89d81e8d26d4b8ac2dca52b38c7fb5c4ec647624341bdfad5da7e617e
MD5 3c0a46d7a3ceac3d34b8acec74aff5c8
BLAKE2b-256 69ba9430ed0a00b510fecef1390bc6fc1beb6147d966d6c6d2f8cd4c0f59f7a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page