Class: AArch64::Instructions::STR_reg_gen

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

Overview

STR (register) – A64 Store Register (register) STR <Wt>, [<Xn|SP>, (<Wm>|<Xm>)<extend> {<amount>}] STR <Xt>, [<Xn|SP>, (<Wm>|<Xm>)<extend> {<amount>}]

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn, rm, option, s, size) ⇒ STR_reg_gen



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

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

Instance Method Details

#encodeObject



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

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