Class: AArch64::Instructions::LDURSB

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

Overview

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LDURSB.



8
9
10
11
12
13
# File 'lib/aarch64/instructions/ldursb.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/ldursb.rb', line 15

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