Commit Graph

6 Commits

Author SHA1 Message Date
Bradford Lamson-Scribner
00cec5678e internal/vm/{exec_funcs,opcodes}: add support for executing INX 2020-05-31 08:59:09 -06:00
Bradford Lamson-Scribner
35bdeac2c8 internal/vm/{exec_funcs,opcodes}: handle INX instruction execution 2020-05-30 17:14:13 -06:00
Bradford Lamson-Scribner
8d6a0f8fd3 internal/vm: start playing with op executions
So far the pattern feels a tiny bit weird but also has been nice to work
with. As you can see, the op now contains it’s instruction execution func
which can be called directly from the op.
2020-05-30 17:06:36 -06:00
Bradford Lamson-Scribner
2bd748fccd docs: update some funcs with light docs 2020-05-30 11:13:35 -06:00
Bradford Lamson-Scribner
cdca8f735d internal/vm: add the first few opcode handlers
Still a little iffy on the code design, although this seems like it
could be a desirable pattern. This way I would have to write an opcode
handler for all the cases and register it to the “op”. That way step
calls are super simple from Appleone’s point of view -> get the operation
and that operation has everything needed to execute on the vm.
2020-05-30 11:03:58 -06:00
Bradford Lamson-Scribner
f77b94f885 internal/{cpu,vm}: add memory to the vm, and refactor cpu/vm/memory code 2020-05-27 21:19:43 -06:00