node/lib/metasm/metasm/disassemble.rb
def normalize(addr)
		return addr if not addr or addr == :default
		addr = Expression[addr].bind(@old_prog_binding).reduce if not addr.kind_of? Integer
		addr %= 1 << [@cpu.size, 32].max if @cpu and addr.kind_of? Integer
		addr
	end
# returns the canonical form of addr (absolute address integer or label of start of section + section offset)
returns the canonical form of addr (absolute address integer or label of start of section + section offset)
returns the canonical form of addr ( absolute address integer or label of start of section + section offset )
def normalize(addr)
		return addr if not addr or addr == :default
		addr = Expression[addr].bind(@old_prog_binding).reduce if not addr.kind_of? Integer
		addr %= 1 << [@cpu.size, 32].max if @cpu and addr.kind_of? Integer
		addr
	end
def normalize ( addr ) return addr if not addr or addr == :default addr = Expression [ addr ] . bind ( @old_prog_binding ) . reduce if not addr . kind_of? Integer addr %= 1 << [ @cpu . size , 32 ] . max if @cpu and addr . kind_of? Integer addr end
returns the canonical form of addr (absolute address integer or label of start of section + section offset)
returns the canonical form of addr ( absolute address integer or label of start of section + section offset )
addr