Class: AArch64::Instructions::LDRSB_reg

Inherits:
Object
  • Object
show all
Defined in:
lib/aarch64/instructions/ldrsb_reg.rb

Overview

LDRSB (register) – A64 Load Register Signed Byte (register) LDRSB <Wt>, [<Xn|SP>, (<Wm>|<Xm>), <extend> <amount>] LDRSB <Wt>, [<Xn|SP>, <Xm>LSL <amount>] LDRSB <Xt>, [<Xn|SP>, (<Wm>|<Xm>), <extend> <amount>] LDRSB <Xt>, [<Xn|SP>, <Xm>LSL <amount>]

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn, rm, s, option, opc) ⇒ LDRSB_reg



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

def initialize rt, rn, rm, s, option, opc
  @rt     = rt
  @rn     = rn
  @rm     = rm
  @s      = s
  @option = option
  @opc    = opc
end

Instance Method Details

#encodeObject



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

def encode
  LDRSB_reg(@opc, @rm.to_i, @option, @s, @rn.to_i, @rt.to_i)
end