Class: AArch64::Parser::TwoWithLsl

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(n, m, lsl:) ⇒ TwoWithLsl

Returns a new instance of TwoWithLsl.



74
75
76
77
78
# File 'lib/aarch64/parser.rb', line 74

def initialize n, m, lsl:
  @n   = n
  @m   = m
  @lsl = lsl
end

Instance Attribute Details

#lslObject (readonly)

Returns the value of attribute lsl.



72
73
74
# File 'lib/aarch64/parser.rb', line 72

def lsl
  @lsl
end

#mObject (readonly)

Returns the value of attribute m.



72
73
74
# File 'lib/aarch64/parser.rb', line 72

def m
  @m
end

#nObject (readonly)

Returns the value of attribute n.



72
73
74
# File 'lib/aarch64/parser.rb', line 72

def n
  @n
end

Instance Method Details

#apply(asm, name) ⇒ Object



80
81
82
# File 'lib/aarch64/parser.rb', line 80

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