Class: AArch64::Instructions::STR_reg_gen

Inherits:
Instruction
  • 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

Returns a new instance of 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     = check_mask(rt, 0x1f)
  @rn     = check_mask(rn, 0x1f)
  @rm     = check_mask(rm, 0x1f)
  @option = check_mask(option, 0x07)
  @s      = check_mask(s, 0x01)
  @size   = check_mask(size, 0x03)
end

Instance Method Details

#encode(_) ⇒ Object



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

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