fix insertion to account for chains
This commit is contained in:
parent
2aa7d37a83
commit
6fe13fc2b7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user