Class: AArch64::Instructions::STLXR

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

Overview

STLXR – A64 Store-Release Exclusive Register STLXR <Ws>, <Wt>, [<Xn|SP>,,#0] STLXR <Ws>, <Xt>, [<Xn|SP>,,#0]

Instance Method Summary collapse

Constructor Details

#initialize(rs, rt, rn, size) ⇒ STLXR

Returns a new instance of STLXR.



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

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

Instance Method Details

#encode(_) ⇒ Object



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

def encode _
  STLXR(@size, @rs, @rn, @rt)
end