use instruction steam from message

had been attached there last week, but was still used mainly through
the source (which i’m trying to remove)
This commit is contained in:
Torsten Ruger
2015-10-28 14:33:38 +02:00
parent 72b790c107
commit ef6cb2a069
7 changed files with 17 additions and 14 deletions

View File

@ -107,9 +107,9 @@ module Register
#puts "Method #{method.source.instructions.to_ac}"
begin
#puts "assemble #{method.source.instructions}"
method.source.instructions.assemble_all( stream )
method.instructions.assemble_all( stream )
rescue => e
puts "Assembly error #{method.name}\n#{Sof.write(method.source.instructions).to_s[0...2000]}"
puts "Assembly error #{method.name}\n#{Sof.write(method.instructions).to_s[0...2000]}"
raise e
end
index = 1