Class: AArch64::Instructions::LDSMAX

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

Overview

LDSMAX, LDSMAXA, LDSMAXAL, LDSMAXL – A64 Atomic signed maximum on word or doubleword in memory LDSMAX <Ws>, <Wt>, [<Xn|SP>] LDSMAXA <Ws>, <Wt>, [<Xn|SP>] LDSMAXAL <Ws>, <Wt>, [<Xn|SP>] LDSMAXL <Ws>, <Wt>, [<Xn|SP>] LDSMAX <Xs>, <Xt>, [<Xn|SP>] LDSMAXA <Xs>, <Xt>, [<Xn|SP>] LDSMAXAL <Xs>, <Xt>, [<Xn|SP>] LDSMAXL <Xs>, <Xt>, [<Xn|SP>]

Instance Method Summary collapse

Constructor Details

#initialize(rs, rt, rn, size, a, r) ⇒ LDSMAX

Returns a new instance of LDSMAX.



14
15
16
17
18
19
20
21
# File 'lib/aarch64/instructions/ldsmax.rb', line 14

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

Instance Method Details

#encode(_) ⇒ Object



23
24
25
# File 'lib/aarch64/instructions/ldsmax.rb', line 23

def encode _
  LDSMAX(@size, @a, @r, @rs, @rn, @rt)
end