Class: AArch64::Instructions::MRS
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::MRS
- 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
- #encode(_) ⇒ Object
-
#initialize(o0, op1, crn, crm, op2, rt) ⇒ MRS
constructor
A new instance of MRS.
Constructor Details
#initialize(o0, op1, crn, crm, op2, rt) ⇒ MRS
Returns a new instance of 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 = 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/mrs.rb', line 16 def encode _ MRS(@o0, @op1, @crn, @crm, @op2, @rt) end |