Factor out the instruction decoding logic into its own class to make it easier for the disassembler to reuse it.
Also makes the disassembler output nicer by displaying offsets as signed, and adds support for [reg - int].
fix fib example
support negative offsets to PlusRegister
Also sign extend in PlusRegister#to_s.
factor InstructionDecoder out of the emulator
rcpu-disas: ignore invalid instructions when disassembling
I totally forgot about this :(
I wanted to refactor the project and update it to the latest DCPU-16 spec, but never found the time.
You have push-access now, so feel free to do whatever you want :-)