add variable length instruction idea

Rachel Samuelsson 1 year ago
parent a30700ff0d
commit 994e71cc7c
  1. 2

@ -57,7 +57,7 @@
# Encoding stuff
* Constant size 2 byte instructions (not including operands)
* Common instructions are 1 byte and a lookup table is used to run a function executing said instruction. Less common instructions will have the first byte take them to a function which reads the next byte, allowing for a tree of instructions.
* All words realistically **have** to be the same size for the stack to make sense. Which size should be used? This feels like it could easily become machine dependant.
* Possibly go for the highest you have, 8 bytes? Would mean that performance would be god awful on 32 bit machines. I might be ok with that? Am I?