Also output last register states with instructions
Fix a bug with the instruction log queue
Better way to handle IO registers