fix from assign
This commit is contained in:
parent
56afe575e1
commit
847a486288
@ -38,7 +38,7 @@ module Vm
|
|||||||
if kode.is_a? Hash
|
if kode.is_a? Hash
|
||||||
raise "Hack only for 1 element #{inspect} #{kode.inspect}" unless kode.length == 1
|
raise "Hack only for 1 element #{inspect} #{kode.inspect}" unless kode.length == 1
|
||||||
instruction , result = kode.first
|
instruction , result = kode.first
|
||||||
instruction.result = result
|
instruction.assign result
|
||||||
kode = instruction
|
kode = instruction
|
||||||
end
|
end
|
||||||
raise "alarm #{kode}" if kode.is_a? Word
|
raise "alarm #{kode}" if kode.is_a? Word
|
||||||
|
Loading…
x
Reference in New Issue
Block a user