Class: AArch64::Parser::TwoWithExtend

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(n, m, extend:, amount:) ⇒ TwoWithExtend

Returns a new instance of TwoWithExtend.



44
45
46
47
48
49
# File 'lib/aarch64/parser.rb', line 44

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

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



42
43
44
# File 'lib/aarch64/parser.rb', line 42

def amount
  @amount
end

#extendObject (readonly)

Returns the value of attribute extend.



42
43
44
# File 'lib/aarch64/parser.rb', line 42

def extend
  @extend
end

#mObject (readonly)

Returns the value of attribute m.



42
43
44
# File 'lib/aarch64/parser.rb', line 42

def m
  @m
end

#nObject (readonly)

Returns the value of attribute n.



42
43
44
# File 'lib/aarch64/parser.rb', line 42

def n
  @n
end

Instance Method Details

#apply(asm, name) ⇒ Object



51
52
53
# File 'lib/aarch64/parser.rb', line 51

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