Class: AArch64::Instructions::LDCLR

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

Overview

LDCLR, LDCLRA, LDCLRAL, LDCLRL – A64 Atomic bit clear on word or doubleword in memory LDCLR <Ws>, <Wt>, [<Xn|SP>] LDCLRA <Ws>, <Wt>, [<Xn|SP>] LDCLRAL <Ws>, <Wt>, [<Xn|SP>] LDCLRL <Ws>, <Wt>, [<Xn|SP>] LDCLR <Xs>, <Xt>, [<Xn|SP>] LDCLRA <Xs>, <Xt>, [<Xn|SP>] LDCLRAL <Xs>, <Xt>, [<Xn|SP>] LDCLRL <Xs>, <Xt>, [<Xn|SP>]

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LDCLR.



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

def initialize rs, rt, rn, a, r, size
  @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)
  @size = check_mask(size, 0x03)
end

Instance Method Details

#encode(_) ⇒ Object



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

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