An LC-3 Assembly Language kernel for Jupyter based on MetaKernel
Project description
# calysto_lc3
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`.
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 Distribution
calysto_lc3-0.6.tar.gz
(21.4 kB
view details)
Built Distribution
File details
Details for the file calysto_lc3-0.6.tar.gz
.
File metadata
- Download URL: calysto_lc3-0.6.tar.gz
- Upload date:
- Size: 21.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aba5d780c56352ac54fbd547f0877369a1150343c5f54a175f3fbfa11806826 |
|
MD5 | b42b962ec4ba275ef3449d0b27254c5f |
|
BLAKE2b-256 | 780b51728ede89a58e6fefdb9b46b770f448bb19c99605c21b7252cc4abdb857 |
File details
Details for the file calysto_lc3-0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: calysto_lc3-0.6-py2.py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35135145873fc640c46880d4faf7d35f2f70e107c07a5b4a2436f05138e30731 |
|
MD5 | 2627d4f6fc5039e29aa2e3673a7a4295 |
|
BLAKE2b-256 | b33455c85d9178c9dd2f0a14cb49f728c389aa4bd61252323bd2ad6bb2790868 |