hlorenzi / customasm

💻 An assembler for custom, user-defined instruction sets! https://hlorenzi.github.io/customasm/web/
Apache License 2.0
720 stars 56 forks source link

Partial fix for issue #115: Increment $,pc within asm{} #118

Closed Emmett81 closed 3 years ago

Emmett81 commented 3 years ago

It's a simple modification in fn eval_asm where the supplied context is cloned and used instead with it's bit_offset incremented every line when that lines result size is known.