change binary labels

This commit is contained in:
Torsten Ruger
2018-05-13 17:21:48 +03:00
parent 39902401b9
commit 866467ee5e
4 changed files with 16 additions and 5 deletions

View File

@ -27,6 +27,11 @@ module Parfait
Risc::Position.reset(self) if Risc::Position.set?(self)
end
def each( &block )
block.call( self )
@next.each( &block ) if @next
end
def to_s
"BinaryCode #{Risc::Position.set?(self) ? Risc::Position.get(self): self.object_id.to_s(16)}"
end

View File

@ -35,7 +35,7 @@ module Parfait
@classes = classes
@types = Dictionary.new
message = Message.new(nil)
100.times { @next_integer = Integer.new(0,@next_integer) }
101.times { @next_integer = Integer.new(0,@next_integer) }
50.times do
@first_message = Message.new message
#puts "INIT caller #{message.object_id} to #{@first_message.object_id}"