Class: AArch64::Instructions::PRFM_lit

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

Overview

PRFM (literal) – A64 Prefetch Memory (literal) PRFM (<prfop>|#<imm5>), <label>

Instance Method Summary collapse

Constructor Details

#initialize(rt, label) ⇒ PRFM_lit

Returns a new instance of PRFM_lit.



7
8
9
10
# File 'lib/aarch64/instructions/prfm_lit.rb', line 7

def initialize rt, label
  @label = label
  @rt    = check_mask(rt, 0x1f)
end

Instance Method Details

#encode(pos) ⇒ Object



12
13
14
# File 'lib/aarch64/instructions/prfm_lit.rb', line 12

def encode pos
  PRFM_lit(check_mask(unwrap_label(@label, pos), 0x7ffff), @rt)
end