Sha256: d5c3f9272cf7b29d06fd8fba11439161ba0c482c9a34786897282a7c73ac87cb

Contents?: true

Size: 688 Bytes

Versions: 43

Compression:

Stored size: 688 Bytes

Contents

require 'rex/arch/x86'

module Rex
module Poly

###
#
# This class encapsulates logical registers for the X86 architecture.
#
###
class LogicalRegister::X86 < LogicalRegister

	#
	# The default set of register numbers that can be used on x86.
	#
	def self.regnum_set
		[
			Rex::Arch::X86::EAX,
			Rex::Arch::X86::EBX,
			Rex::Arch::X86::ECX,
			Rex::Arch::X86::EDX,
			Rex::Arch::X86::ESI,
			Rex::Arch::X86::EDI,
			Rex::Arch::X86::EBP,
			Rex::Arch::X86::ESP
		]
	end

	#
	# Calls the base class constructor after translating the register name to
	# number.
	#
	def initialize(name, register = nil)
		super(name, register ? Rex::Arch::X86.reg_number(register) : nil)
	end

end

end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.35 lib/rex/poly/register/x86.rb
librex-0.0.34 lib/rex/poly/register/x86.rb
librex-0.0.33 lib/rex/poly/register/x86.rb
librex-0.0.32 lib/rex/poly/register/x86.rb
librex-0.0.31 lib/rex/poly/register/x86.rb
librex-0.0.30 lib/rex/poly/register/x86.rb
librex-0.0.29 lib/rex/poly/register/x86.rb
librex-0.0.28 lib/rex/poly/register/x86.rb
librex-0.0.27 lib/rex/poly/register/x86.rb
librex-0.0.26 lib/rex/poly/register/x86.rb
librex-0.0.25 lib/rex/poly/register/x86.rb
librex-0.0.23 lib/rex/poly/register/x86.rb
librex-0.0.21 lib/rex/poly/register/x86.rb
librex-0.0.19 lib/rex/poly/register/x86.rb
librex-0.0.17 lib/rex/poly/register/x86.rb
librex-0.0.13 lib/rex/poly/register/x86.rb
librex-0.0.12 lib/rex/poly/register/x86.rb
librex-0.0.7 lib/rex/poly/register/x86.rb
librex-0.0.6 lib/rex/poly/register/x86.rb
librex-0.0.5 lib/rex/poly/register/x86.rb