Class: AArch64::Instructions::STLUR_gen

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

Overview

STLUR – A64 Store-Release Register (unscaled) STLUR <Wt>, [<Xn|SP>#<simm>] STLUR <Xt>, [<Xn|SP>#<simm>]

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn, imm9, size) ⇒ STLUR_gen

Returns a new instance of STLUR_gen.



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

def initialize rt, rn, imm9, size
  @rt   = check_mask(rt, 0x1f)
  @rn   = check_mask(rn, 0x1f)
  @imm9 = check_mask(imm9, 0x1ff)
  @size = check_mask(size, 0x03)
end

Instance Method Details

#encode(_) ⇒ Object



15
16
17
# File 'lib/aarch64/instructions/stlur_gen.rb', line 15

def encode _
  STLUR_gen(@size, @imm9, @rn, @rt)
end