Class: AArch64::Instructions::LDEOR

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

Overview

LDEOR, LDEORA, LDEORAL, LDEORL – A64 Atomic exclusive OR on word or doubleword in memory LDEOR <Ws>, <Wt>, [<Xn|SP>] LDEORA <Ws>, <Wt>, [<Xn|SP>] LDEORAL <Ws>, <Wt>, [<Xn|SP>] LDEORL <Ws>, <Wt>, [<Xn|SP>] LDEOR <Xs>, <Xt>, [<Xn|SP>] LDEORA <Xs>, <Xt>, [<Xn|SP>] LDEORAL <Xs>, <Xt>, [<Xn|SP>] LDEORL <Xs>, <Xt>, [<Xn|SP>]

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LDEOR.



14
15
16
17
18
19
20
21
# File 'lib/aarch64/instructions/ldeor.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/ldeor.rb', line 23

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