Class: AArch64::Instructions::SYS

Inherits:
Instruction 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 = check_mask(op1, 0x07)
  @cn  = check_mask(cn, 0x0f)
  @cm  = check_mask(cm, 0x0f)
  @op2 = check_mask(op2, 0x07)
  @xt  = check_mask(xt, 0x1f)
end

Instance Method Details

#encode(_) ⇒ Object



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

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