Class: AArch64::Parser::ThreeWithExtend

Inherits:
Object
  • Object
show all
Defined in:
lib/aarch64/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(d, n, m, extend:, amount:) ⇒ ThreeWithExtend

Returns a new instance of ThreeWithExtend.



134
135
136
137
138
139
140
# File 'lib/aarch64/parser.rb', line 134

def initialize d, n, m, extend:, amount:
  @d      = d
  @n      = n
  @m      = m
  @extend = extend
  @amount = amount
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



132
133
134
# File 'lib/aarch64/parser.rb', line 132

def amount
  @amount
end

#dObject (readonly)

Returns the value of attribute d.



132
133
134
# File 'lib/aarch64/parser.rb', line 132

def d
  @d
end

#extendObject (readonly)

Returns the value of attribute extend.



132
133
134
# File 'lib/aarch64/parser.rb', line 132

def extend
  @extend
end

#mObject (readonly)

Returns the value of attribute m.



132
133
134
# File 'lib/aarch64/parser.rb', line 132

def m
  @m
end

#nObject (readonly)

Returns the value of attribute n.



132
133
134
# File 'lib/aarch64/parser.rb', line 132

def n
  @n
end

Instance Method Details

#apply(asm, name) ⇒ Object



142
143
144
# File 'lib/aarch64/parser.rb', line 142

def apply asm, name
  asm.public_send(name, d, n, m, extend: extend, amount: amount)
end