fix insertion to account for chains

This commit is contained in:
Torsten Ruger 2018-03-14 17:39:31 +05:30
parent 2aa7d37a83
commit 6fe13fc2b7

View File

@ -48,7 +48,7 @@ module Risc
# instruction along to the given ones's next.
# ie insert into the linked list that the instructions form
def insert instruction
instruction.set_next @next
instruction.last.set_next @next
@next = instruction
end