Commit Graph

2 Commits

Author SHA1 Message Date
Bradford Lamson-Scribner
2a17dda142 internal/vm/{cpu,mem,opcodes,vm}: stick to using byte instead of uint8
I can never decide on these things but I generally
prefer using `byte` in go.
2020-05-31 21:47:05 -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