Skip to main content

A hardware emulator for the Oberon RISC processor.

Project description

Python Oberon

Some software for Oberon 2013.

See also:

A hardware emulator for the new RISC processor written in Python. If Pygame is available it will open a screen of the standard dimensions of 1024 x 768 pixels. I've also implemented a very crude "assembler" which is really little more than a bunch of helper functions to emit binary instructions (in the form of 32-bit-wide ints. However, it also provides a function dis() that will return a string representing the (integer) instruction passed to it.

Start with:

python -i -m oberon

This will use disk.img by default. At around 3400000 cycles the screen background begins to fill in, and at around 6500000 cycles the window content begins to be drawn:

PyGame window showing Oberon

(The -i option tells Python to drop into interactive REPL mode after the script has run. You can interact with the risc object.)

Project details

Download files

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

Files for PythonOberon, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size PythonOberon-0.1.0.tar.gz (225.1 kB) File type Source Python version None Upload date Hashes View
Filename, size PythonOberon-0.1.0-py2-none-any.whl (242.2 kB) File type Wheel Python version py2 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page