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.
|
# instruction along to the given ones's next.
|
||||||
# ie insert into the linked list that the instructions form
|
# ie insert into the linked list that the instructions form
|
||||||
def insert instruction
|
def insert instruction
|
||||||
instruction.set_next @next
|
instruction.last.set_next @next
|
||||||
@next = instruction
|
@next = instruction
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user