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
|
|
@ -364,7 +364,8 @@ class CPU(object):
|
|||
def j(c, val):
|
||||
c.r[7] = val
|
||||
|
||||
|
||||
def _op(c, word):
|
||||
"""dispatch to op"""
|
||||
|
||||
def _pointer(c, code):
|
||||
"""get pointer to valcode"""
|
||||
|
|
@ -430,3 +431,9 @@ class CPU(object):
|
|||
pass
|
||||
|
||||
|
||||
spec_demo = [
|
||||
0x7c01, 0x0030, 0x7de1, 0x1000, 0x0020, 0x7803, 0x1000, 0xc00d,
|
||||
0x7dc1, 0x001a, 0xa861, 0x7c01, 0x2000, 0x2161, 0x2000, 0x8463,
|
||||
0x806d, 0x7dc1, 0x000d, 0x9031, 0x7c10, 0x0018, 0x7dc1, 0x001a,
|
||||
0x9037, 0x61c1, 0x7dc1, 0x001a, 0x0000, 0x0000, 0x0000, 0x0000,
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue