Skip to main content

Calysto LC3: An assembly language kernel for Jupyter

Project description

Calysto Little Computer - LC3 Assembly Language for Jupyter

An Jupyter kernel for LC3

This requires IPython 3.

To install:

::

pip install calysto_lc3 python -m calysto_lc3.install

To use it, run one of:

  • ipython notebook

  • In the notebook interface, select ‘Calysto LC3’ from the ‘New’ menu

  • ipython qtconsole –kernel calysto_lc3

  • ipython console –kernel calysto_lc3

Typing ? to the kernel gives:

This is the Calysto LC3 Jupyter kernel.

LC3 Interactive Magic Directives:

 %bp [clear | SUSPENDHEX]           - show, clear, or set breakpoints
 %cont                              - continue running
 %dis [STARTHEX [STOPHEX]]          - dump memory as program
 %dump [STARTHEX [STOPHEX]]         - list memory in hex
 %exe                               - execute the program
 %mem HEXLOCATION HEXVALUE          - set memory
 %pc HEXVALUE                       - set PC
 %reg REG HEXVALUE                  - set register REG to HEXVALUE
 %regs                              - show registers
 %reset                             - reset LC3 to start state
 %step                              - execute the next instruction, increment PC

HEX values begin with an 'x' and are composed of 4 0-F digits or letters.

Additional help is available with %help ITEM such as %help pc.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

calysto_lc3-0.4-py2.py3-none-any.whl (20.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file calysto_lc3-0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for calysto_lc3-0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 79bb355fd4df00d3bd4604e4feb44e5652cbcd8db97df0739e961584d045e6d7
MD5 a607eaba1352797122e0e991d557296b
BLAKE2b-256 447c81ca66e8bb83fd14a1641e8569b74d0224f9d6d917ed2a73268a9fe45021

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