Class: AArch64::Instructions::MSR_reg

Inherits:
Instruction show all
Defined in:
lib/aarch64/instructions/msr_reg.rb

Overview

MSR (register) – A64 Move general-purpose register to System Register MSR (<systemreg>|S<op0>_<op1>_<Cn>_<Cm>_<op2>), <Xt>

Instance Method Summary collapse

Constructor Details

#initialize(o0, op1, crn, crm, op2, rt) ⇒ MSR_reg

Returns a new instance of MSR_reg.



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

def initialize o0, op1, crn, crm, op2, rt
  @o0  = check_mask(o0, 0x01)
  @op1 = check_mask(op1, 0x07)
  @crn = check_mask(crn, 0x0f)
  @crm = check_mask(crm, 0x0f)
  @op2 = check_mask(op2, 0x07)
  @rt  = check_mask(rt, 0x1f)
end

Instance Method Details

#encode(_) ⇒ Object



16
17
18
# File 'lib/aarch64/instructions/msr_reg.rb', line 16

def encode _
  MSR_reg(@o0, @op1, @crn, @crm, @op2, @rt)
end