fix code insertion in method

This commit is contained in:
Torsten Ruger
2018-03-19 13:05:08 +05:30
parent ed902c343c
commit 66a160d8ab
3 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ module Risc
raise "Not an instruction:#{instruction.to_s}" unless instruction.is_a?(Risc::Instruction)
raise instruction.to_s if( instruction.class.name.split("::").first == "Arm")
@current.insert(instruction) #insert after current
@current = instruction
@current = instruction.last
self
end