Class: AArch64::Instructions::LDRSW_reg

Inherits:
Instruction show all
Defined in:
lib/aarch64/instructions/ldrsw_reg.rb

Overview

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LDRSW_reg.



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

def initialize rt, rn, rm, s, option
  @rt     = check_mask(rt, 0x1f)
  @rn     = check_mask(rn, 0x1f)
  @rm     = check_mask(rm, 0x1f)
  @s      = check_mask(s, 0x01)
  @option = check_mask(option, 0x07)
end

Instance Method Details

#encode(_) ⇒ Object



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

def encode _
  LDRSW_reg(@rm, @option, @s, @rn, @rt)
end