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

- old
+ new

@@ -19,11 +19,11 @@ attr_accessor :i def initialize(i) @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 @@ -37,14 +37,14 @@ @offset = offset @sz = sz @autoincr = autoincr 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()