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