Class: AArch64::Instructions::LDRA

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

Overview

LDRAA, LDRAB – A64 Load Register, with pointer authentication LDRAA <Xt>, [<Xn|SP>#<simm>] LDRAA <Xt>, [<Xn|SP>#<simm>]! LDRAB <Xt>, [<Xn|SP>#<simm>] LDRAB <Xt>, [<Xn|SP>#<simm>]!

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn, imm9, m, w, s) ⇒ LDRA

Returns a new instance of LDRA.



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

def initialize rt, rn, imm9, m, w, s
  @rt   = check_mask(rt, 0x1f)
  @rn   = check_mask(rn, 0x1f)
  @imm9 = check_mask(imm9, 0x1ff)
  @m    = check_mask(m, 0x01)
  @w    = check_mask(w, 0x01)
  @s    = check_mask(s, 0x01)
end

Instance Method Details

#encode(_) ⇒ Object



19
20
21
# File 'lib/aarch64/instructions/ldra.rb', line 19

def encode _
  LDRA(@m, @s, @imm9, @w, @rn, @rt)
end