I wrote a simulator for my altered version of Koei's C virtual machine that would be more suitable for implementing on hardware. Maybe a small C-friendly virtual machine has its place somewhere.
Here's some bitfield stores being used to replace digits in a hex number. The bitfield instructions were the most difficult to figure out how to implement since they involved complicated masks and shifts.