Class: AArch64::Instructions::PRFM_reg
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::PRFM_reg
- Defined in:
- lib/aarch64/instructions/prfm_reg.rb
Overview
PRFM (register) – A64 Prefetch Memory (register) PRFM (<prfop>|#<imm5>), [<Xn|SP>, (<Wm>|<Xm>)<extend> {<amount>}]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rt, rn, rm, option, s) ⇒ PRFM_reg
constructor
A new instance of PRFM_reg.
Constructor Details
#initialize(rt, rn, rm, option, s) ⇒ PRFM_reg
Returns a new instance of PRFM_reg.
7 8 9 10 11 12 13 |
# File 'lib/aarch64/instructions/prfm_reg.rb', line 7 def initialize rt, rn, rm, option, s @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) @option = check_mask(option, 0x07) @s = check_mask(s, 0x01) end |
Instance Method Details
#encode(_) ⇒ Object
15 16 17 |
# File 'lib/aarch64/instructions/prfm_reg.rb', line 15 def encode _ PRFM_reg(@rm, @option, @s, @rn, @rt) end |