Class: AArch64::Instructions::SYSL

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

Overview

SYSL – A64 System instruction with result SYSL <Xt>, #<op1>, <Cn>, <Cm>, #<op2>

Instance Method Summary collapse

Constructor Details

#initialize(xt, op1, cn, cm, op2) ⇒ SYSL

Returns a new instance of SYSL.



7
8
9
10
11
12
13
# File 'lib/aarch64/instructions/sysl.rb', line 7

def initialize xt, op1, cn, cm, op2
  @xt  = xt
  @op1 = op1
  @cn  = cn
  @cm  = cm
  @op2 = op2
end

Instance Method Details

#encodeObject



15
16
17
# File 'lib/aarch64/instructions/sysl.rb', line 15

def encode
  SYSL(@op1, @cn.to_i, @cm.to_i, @op2, @xt.to_i)
end