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