Class: Ragweed::Rasm::Inc

Inherits:
IncDec show all
Defined in:
lib/ragweed/rasm/isa.rb

Overview

INC memory or register

Instance Attribute Summary

Attributes inherited from Instruction

#dst, #src

Instance Method Summary collapse

Methods inherited from IncDec

#to_s

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) ⇒ Inc

Returns a new instance of Inc.



786
787
788
789
790
# File 'lib/ragweed/rasm/isa.rb', line 786

def initialize(*args)
  super *args
  @var = Eax.clone
  @bas = 0x40
end