Class: X86Assembler::X86Instruction

Inherits:
RMasm::Instruction show all
Defined in:
lib/rmasm/x86/x86_assembler.rb

Instance Attribute Summary collapse

Attributes inherited from RMasm::Directive

#id

Instance Method Summary collapse

Methods inherited from RMasm::Directive

#fetch

Constructor Details

#initialize(name, opcode, *args) ⇒ X86Instruction

Returns a new instance of X86Instruction.



85
86
87
88
89
# File 'lib/rmasm/x86/x86_assembler.rb', line 85

def initialize(name,opcode,*args)
  super name
  @opcode = opcode
  @args = Operand.parse(*args)
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



84
85
86
# File 'lib/rmasm/x86/x86_assembler.rb', line 84

def args
  @args
end

#dispObject

Returns the value of attribute disp.



84
85
86
# File 'lib/rmasm/x86/x86_assembler.rb', line 84

def disp
  @disp
end

#immObject

Returns the value of attribute imm.



84
85
86
# File 'lib/rmasm/x86/x86_assembler.rb', line 84

def imm
  @imm
end

#ipObject

Returns the value of attribute ip.



84
85
86
# File 'lib/rmasm/x86/x86_assembler.rb', line 84

def ip
  @ip
end

#modrmObject

Returns the value of attribute modrm.



84
85
86
# File 'lib/rmasm/x86/x86_assembler.rb', line 84

def modrm
  @modrm
end

#opcodeObject

Returns the value of attribute opcode.



84
85
86
# File 'lib/rmasm/x86/x86_assembler.rb', line 84

def opcode
  @opcode
end

#sibObject

Returns the value of attribute sib.



84
85
86
# File 'lib/rmasm/x86/x86_assembler.rb', line 84

def sib
  @sib
end