[<<][rtl][>>][..]
Thu Aug 16 19:07:23 EDT 2018

Better instruction packing

Currently mostly unused:
3 bits
5 bits reserved
8 bits argument


If it is ok to have all zero operand instructions, something like this
could work:

H 7 8  - literal
L 15   - packed

Where 7 and 15 bits contain packed instructions.

Anyways a lot is possible still.
This isn't even a 2-stack machine.

Here's an approach:

1 + 3*5

Which can pack 5 instructions

The other branch can then be used for literals and jumps.


Anyways this all needs to be evaluated relative to an application,
because there are otherwise too many variables to even begin to define
"optimal".

In my case, "optimal" means simple.

Going anywhere, base it on Moore on Koopman
https://users.ece.cmu.edu/~koopman/stack_computers/sec6_3.html




[Reply][About]
[<<][rtl][>>][..]