Class: AArch64::Instructions::SYS

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

Overview

SYS – A64 System instruction SYS #<op1>, <Cn>, <Cm>, #<op2><Xt>

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of SYS.



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

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

Instance Method Details

#encodeObject



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

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