node/lib/metasm/metasm/gui/dasm_main.rb
# add/change a comment @addr
add/change a comment @addr
add / change a comment @addr
def add_comment(addr)
		cmt = @dasm.comment[addr].to_a.join(' ')
		if di = @dasm.di_at(addr)
			cmt += di.comment.to_a.join(' ')
		end
		inputbox("new comment for #{Expression[addr]}", :text => cmt) { |c|
			c = c.split("\n")
			c = nil if c == []
			do_add_comment(addr, c)
			session_append "do_add_comment(#{addr.inspect}, #{c.inspect})"
			gui_update
		}
	end
def add_comment ( addr ) cmt = @dasm . comment [ addr ] . to_a . join ( ' ' ) if di = @dasm . di_at ( addr ) cmt += di . comment . to_a . join ( ' ' ) end inputbox ( "new comment for #{Expression[addr]}" , :text => cmt ) { | c | c = c . split ( "\n" ) c = nil if c == [ ] do_add_comment ( addr , c ) session_append "do_add_comment(#{addr.inspect}, #{c.inspect})" gui_update } end
add/change a comment @addr
add / change a comment @addr
addr