Class: AArch64::Instructions::RMIF

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

Overview

RMIF – A64 Rotate, Mask Insert Flags RMIF <Xn>, #<shift>, #<mask>

Instance Method Summary collapse

Constructor Details

#initialize(rn, imm6, mask) ⇒ RMIF

Returns a new instance of RMIF.



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

def initialize rn, imm6, mask
  @rn   = check_mask(rn, 0x1f)
  @imm6 = check_mask(imm6, 0x3f)
  @mask = check_mask(mask, 0x0f)
end

Instance Method Details

#encode(_) ⇒ Object



13
14
15
# File 'lib/aarch64/instructions/rmif.rb', line 13

def encode _
  RMIF(@imm6, @rn, @mask)
end