Class: AArch64::Instructions::SYSL

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

Instance Method Details

#encode(_) ⇒ Object



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

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