Class: AArch64::Instructions::LDRSH_reg

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

Overview

LDRSH (register) – A64 Load Register Signed Halfword (register) LDRSH <Wt>, [<Xn|SP>, (<Wm>|<Xm>)<extend> {<amount>}] LDRSH <Xt>, [<Xn|SP>, (<Wm>|<Xm>)<extend> {<amount>}]

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LDRSH_reg.



8
9
10
11
12
13
14
15
# File 'lib/aarch64/instructions/ldrsh_reg.rb', line 8

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



17
18
19
# File 'lib/aarch64/instructions/ldrsh_reg.rb', line 17

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