Class: AArch64::Parser::ThreeWithLsl

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, lsl:) ⇒ ThreeWithLsl

Returns a new instance of ThreeWithLsl.



88
89
90
91
92
93
# File 'lib/aarch64/parser.rb', line 88

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

Instance Attribute Details

#dObject (readonly)

Returns the value of attribute d.



86
87
88
# File 'lib/aarch64/parser.rb', line 86

def d
  @d
end

#lslObject (readonly)

Returns the value of attribute lsl.



86
87
88
# File 'lib/aarch64/parser.rb', line 86

def lsl
  @lsl
end

#mObject (readonly)

Returns the value of attribute m.



86
87
88
# File 'lib/aarch64/parser.rb', line 86

def m
  @m
end

#nObject (readonly)

Returns the value of attribute n.



86
87
88
# File 'lib/aarch64/parser.rb', line 86

def n
  @n
end

Instance Method Details

#apply(asm, name) ⇒ Object



95
96
97
# File 'lib/aarch64/parser.rb', line 95

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