node/lib/metasm/metasm/gui/dasm_opcodes.rb
def focus_addr(addr)
		return if not addr = @parent_widget.normalize(addr)
		if l = @line_address.index(addr) and l < @line_address.keys.max - 4
			@caret_y, @caret_x = @line_address.keys.find_all { |k| @line_address[k] == addr }.max, 0
		elsif @dasm.get_section_at(addr)
			@view_addr, @caret_x, @caret_y = addr, 0, 0
			redraw
		else
			return
		end
		update_caret
		true
	end
# focus on addr
# returns true on success (address exists)
focus on addr
returns true on success (address exists)
focus on addr returns true on success ( address exists )
def focus_addr(addr)
		return if not addr = @parent_widget.normalize(addr)
		if l = @line_address.index(addr) and l < @line_address.keys.max - 4
			@caret_y, @caret_x = @line_address.keys.find_all { |k| @line_address[k] == addr }.max, 0
		elsif @dasm.get_section_at(addr)
			@view_addr, @caret_x, @caret_y = addr, 0, 0
			redraw
		else
			return
		end
		update_caret
		true
	end
def focus_addr ( addr ) return if not addr = @parent_widget . normalize ( addr ) if l = @line_address . index ( addr ) and l < @line_address . keys . max - 4 @caret_y , @caret_x = @line_address . keys . find_all { | k | @line_address [ k ] == addr } . max , 0 elsif @dasm . get_section_at ( addr ) @view_addr , @caret_x , @caret_y = addr , 0 , 0 redraw else return end update_caret true end
focus on addr
returns true on success (address exists)
focus on addr returns true on success ( address exists )
addr