Class: AArch64::Instructions::LDURSH

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

Overview

LDURSH – A64 Load Register Signed Halfword (unscaled) LDURSH <Wt>, [<Xn|SP>#<simm>] LDURSH <Xt>, [<Xn|SP>#<simm>]

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn, imm9, opc) ⇒ LDURSH

Returns a new instance of LDURSH.



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

def initialize rt, rn, imm9, opc
  @rt   = rt
  @rn   = rn
  @imm9 = imm9
  @opc  = opc
end

Instance Method Details

#encodeObject



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

def encode
  LDURSH(@opc, @imm9, @rn.to_i, @rt.to_i)
end