metasm/cpu/z80/main.rb in metasm-1.0.3 vs metasm/cpu/z80/main.rb in metasm-1.0.4

- old
+ new

@@ -24,11 +24,11 @@ def initialize(sz, i) @sz = sz @i = i end - def symbolic(orig=nil) ; to_s.to_sym ; end + def symbolic(di=nil) ; to_s.to_sym ; end def self.from_str(s) raise "Bad name #{s.inspect}" if not x = @s_to_i[s] new(*x) end @@ -41,14 +41,14 @@ offset = Expression[offset] if offset @offset = offset @sz = sz end - def symbolic(orig) + def symbolic(di=nil) p = nil p = Expression[p, :+, @base.symbolic] if base p = Expression[p, :+, @offset] if offset - Indirection[p.reduce, @sz, orig] + Indirection[p.reduce, @sz, (di.address if di)] end end def initialize(family = :latest) super()