Class: AArch64::Instructions::STRB_imm_unsigned

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

Overview

STRB (immediate) – A64 Store Register Byte (immediate) STRB <Wt>, [<Xn|SP>#<pimm>]

Instance Method Summary collapse

Constructor Details

#initialize(rt, rn, imm12) ⇒ STRB_imm_unsigned

Returns a new instance of STRB_imm_unsigned.



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

def initialize rt, rn, imm12
  @rt    = check_mask(rt, 0x1f)
  @rn    = check_mask(rn, 0x1f)
  @imm12 = check_mask(imm12, 0xfff)
end

Instance Method Details

#encode(_) ⇒ Object



13
14
15
# File 'lib/aarch64/instructions/strb_imm_unsigned.rb', line 13

def encode _
  STRB_imm_unsigned(@imm12, @rn, @rt)
end