Class: AArch64::Instructions::MRS

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

Overview

MRS – A64 Move System Register MRS <Xt>, (<systemreg>|S<op0>_<op1>_<Cn>_<Cm>_<op2>)

Instance Method Summary collapse

Constructor Details

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



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

def initialize o0, op1, crn, crm, op2, rt
  @o0  = o0
  @op1 = op1
  @crn = crn
  @crm = crm
  @op2 = op2
  @rt  = rt
end

Instance Method Details

#encodeObject



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

def encode
  MRS(@o0, @op1, @crn, @crm, @op2, @rt.to_i)
end