Class: Ragweed::Rasm::Dec

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

Overview

DEC 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) ⇒ Dec

Returns a new instance of Dec.



797
798
799
800
801
# File 'lib/ragweed/rasm/isa.rb', line 797

def initialize(*args)
  super *args
  @var = Ecx.clone
  @bas = 0x48
end