Class: AArch64::Instructions::LDUMAXH

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

Overview

LDUMAXH, LDUMAXAH, LDUMAXALH, LDUMAXLH – A64 Atomic unsigned maximum on halfword in memory LDUMAXAH <Ws>, <Wt>, [<Xn|SP>] LDUMAXALH <Ws>, <Wt>, [<Xn|SP>] LDUMAXH <Ws>, <Wt>, [<Xn|SP>] LDUMAXLH <Ws>, <Wt>, [<Xn|SP>]

Instance Method Summary collapse

Constructor Details

#initialize(rs, rt, rn, a, r) ⇒ LDUMAXH

Returns a new instance of LDUMAXH.



10
11
12
13
14
15
16
# File 'lib/aarch64/instructions/ldumaxh.rb', line 10

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

Instance Method Details

#encode(_) ⇒ Object



18
19
20
# File 'lib/aarch64/instructions/ldumaxh.rb', line 18

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