mirror of
https://github.com/lloeki/python-dcpu_16.git
synced 2025-12-06 09:54:39 +01:00
features section
This commit is contained in:
parent
1068870103
commit
d399ea3c5f
1 changed files with 12 additions and 0 deletions
12
README.mdown
12
README.mdown
|
|
@ -35,3 +35,15 @@ An example of a Python REPL session:
|
|||
|
||||
It's not bug-free yet, the implementation itself is still a WIP and the whole of the spec example does not pass yet. But hey, that's what you get in a few late hours. Fixes coming, I promise.
|
||||
|
||||
# Features
|
||||
|
||||
Opcodes and valcodes are as declarative as possible using decorators, leaving the dispatcher as a quasi-one-liner and leveraging `dict` power instead of `if`/`elif`.
|
||||
|
||||
Using functions/methods mean there are doctrings everywhere, hence documentation is both very local and as exhaustive as possible. Try `help(dcpu_16)`.
|
||||
|
||||
You can use `cpu[]` to dispatch valcodes and get/set directly without having to handle a pointer structure.
|
||||
|
||||
|
||||
The CPU is a class, so you can instantiate a bunch of them. I might move memory outside the CPU so that it would be shared by CPU instances (SMP!)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue