Class: AArch64::Instructions::LDRH_reg

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn, rm, s, option) ⇒ LDRH_reg

Returns a new instance of LDRH_reg.



7
8
9
10
11
12
13
# File 'lib/aarch64/instructions/ldrh_reg.rb', line 7

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

Instance Method Details

#encodeObject



15
16
17
# File 'lib/aarch64/instructions/ldrh_reg.rb', line 15

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