Class: AArch64::Instructions::LDRA

Inherits:
Object
  • Object
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   = rt
  @rn   = rn
  @imm9 = imm9
  @m    = m
  @w    = w
  @s    = s
end

Instance Method Details

#encodeObject



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

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