Class: Ragweed::Rasm::Add
- Inherits:
-
Arith
- Object
- Instruction
- Arith
- Ragweed::Rasm::Add
- Defined in:
- lib/ragweed/rasm/isa.rb
Overview
ADD
Instance Attribute Summary
Attributes inherited from Instruction
Instance Method Summary collapse
-
#initialize(*args) ⇒ Add
constructor
A new instance of Add.
Methods inherited from Arith
Methods inherited from Instruction
#add, #coerce, #dst_imm?, #dst_lab?, #dst_reg?, i, #locate, #modrm, #patch, #sib, #src_imm?, #src_lab?, #src_reg?, #to_s
Constructor Details
#initialize(*args) ⇒ Add
Returns a new instance of Add.
616 617 618 619 620 |
# File 'lib/ragweed/rasm/isa.rb', line 616 def initialize(*args) super *args @imp8, @imp, @imm8, @imm, @rm, @mr = [0x04, 0x05, 0x83, 0x81, 0x03, 0x01] @x = Eax.clone end |