Class: AArch64::Instructions::STRB_reg
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::STRB_reg
- Defined in:
- lib/aarch64/instructions/strb_reg.rb
Overview
STRB (register) – A64 Store Register Byte (register) STRB <Wt>, [<Xn|SP>, (<Wm>|<Xm>), <extend> <amount>] STRB <Wt>, [<Xn|SP>, <Xm>LSL <amount>]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rt, rn, rm, option, s) ⇒ STRB_reg
constructor
A new instance of STRB_reg.
Constructor Details
#initialize(rt, rn, rm, option, s) ⇒ STRB_reg
Returns a new instance of STRB_reg.
8 9 10 11 12 13 14 |
# File 'lib/aarch64/instructions/strb_reg.rb', line 8 def initialize rt, rn, rm, option, s @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) end |
Instance Method Details
#encode(_) ⇒ Object
16 17 18 |
# File 'lib/aarch64/instructions/strb_reg.rb', line 16 def encode _ STRB_reg(@rm, @option, @s, @rn, @rt) end |