node/lib/metasm/metasm/exe_format/shellcode.rb
def parse_parser_instruction(instr)
		case instr.raw.downcase
		when '.base', '.baseaddr', '.base_addr'
			# ".base_addr <expression>"
			# expression should #reduce to integer
			@lexer.skip_space
			raise instr, 'syntax error' if not @base_addr = Expression.parse(@lexer).reduce
			raise instr, 'syntax error' if tok = @lexer.nexttok and tok.type != :eol
		else super(instr)
		end
	end
# allows definition of the base address
allows definition of the base address
allows definition of the base address
def parse_parser_instruction(instr)
		case instr.raw.downcase
		when '.base', '.baseaddr', '.base_addr'
			@lexer.skip_space
			raise instr, 'syntax error' if not @base_addr = Expression.parse(@lexer).reduce
			raise instr, 'syntax error' if tok = @lexer.nexttok and tok.type != :eol
		else super(instr)
		end
	end
def parse_parser_instruction ( instr ) case instr . raw . downcase when '.base' , '.baseaddr' , '.base_addr' @lexer . skip_space raise instr , 'syntax error' if not @base_addr = Expression . parse ( @lexer ) . reduce raise instr , 'syntax error' if tok = @lexer . nexttok and tok . type != :eol else super ( instr ) end end
allows definition of the base address
allows definition of the base address
# ".base_addr <expression>" # expression should #reduce to integer
instr