mirror of
https://github.com/lloeki/python-dcpu_16.git
synced 2025-12-06 09:54:39 +01:00
updated doc and brought back spec demo
This commit is contained in:
parent
ec4711d2af
commit
54e56b82db
2 changed files with 10 additions and 3 deletions
|
|
@ -12,9 +12,9 @@ It's meant to be used interactively via the Python REPL as well as programmatica
|
|||
|
||||
An example of a Python REPL session:
|
||||
|
||||
>>> from dcpu_16 import CPU
|
||||
>>> from dcpu_16 import CPU, spec_demo
|
||||
>>> c = CPU(debug=True)
|
||||
>>> c.load_m() # loads demo program
|
||||
>>> c.load_m(spec_demo) # loads demo program
|
||||
>>> c.step() # step by one instruction
|
||||
<< SET
|
||||
<< c.r[0x0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue