Sha256: 8f31388418462ebb539a3e8ba7201f655381dce753665242d5edeec61dff92b7

Contents?: true

Size: 760 Bytes

Versions: 4

Compression:

Stored size: 760 Bytes

Contents

#    This file is part of Metasm, the Ruby assembly manipulation suite
#    Copyright (C) 2006-2009 Yoann GUILLOT
#
#    Licence is LGPL, see LICENCE in the top-level directory


require 'metasm/cpu/x86_64/opcodes'
require 'metasm/render'

module Metasm
class X86_64
	def gui_hilight_word_regexp_init
		ret = {}

		%w[a b c d].each { |r|
			ret["#{r}l"] = "[re]?#{r}x|#{r}l"
			ret["#{r}h"] = "[re]?#{r}x|#{r}h"
			ret["#{r}x"] = ret["e#{r}x"] = ret["r#{r}x"] = "[re]?#{r}x|#{r}[hl]"
		}

		%w[sp bp si di].each { |r|
			ret["#{r}l"] = ret[r] = ret["e#{r}"] = ret["r#{r}"] = "[re]?#{r}|#{r}l"
		}

		(8..15).each { |i|
			r = "r#{i}"
			ret[r+'b'] = ret[r+'w'] = ret[r+'d'] = ret[r] = "#{r}[bwd]?"
		}

		ret['eip'] = ret['rip'] = '[re]ip'

		ret
	end
end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
metasm-1.0.5 metasm/cpu/x86_64/render.rb
metasm-1.0.4 metasm/cpu/x86_64/render.rb
metasm-1.0.3 metasm/cpu/x86_64/render.rb
metasm-1.0.2 metasm/cpu/x86_64/render.rb