Awesome man! You solved quite a few problems I had working on mine. (Not sure I understand everything though)
I checked your code, fixed a few things. It now works for: 7c01 0030 7de1 1000 0020 7803 1000 https://github.com/fbulens/dcpu16-js
I'll continue tomorrow (Europe here).