got it down to string equality/identity

This commit is contained in:
Torsten Ruger
2015-05-31 17:54:36 +03:00
parent 1509e7ba2f
commit 5d870ef154
6 changed files with 19 additions and 9 deletions

View File

@ -45,6 +45,10 @@ module Register
objekt.set_position at
at += objekt.mem_length
end
@machine.objects.each do |objekt|
objekt.position
end
end
def assemble
@ -84,11 +88,16 @@ module Register
# and then plonk that binary data into the method.code array
def assemble_binary_method method
stream = StringIO.new
begin
method.info.blocks.each do |block|
block.codes.each do |code|
code.assemble( stream )
end
end
rescue => e
puts "Method error #{method.name}\n#{Sof::Writer.write(method.info.blocks).to_s[0...2000]}"
raise e
end
method.code.fill_with 0
index = 1
stream.each_byte do |b|