Class: AArch64::Instructions::STRB_imm
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::STRB_imm
- Defined in:
- lib/aarch64/instructions/strb_imm.rb
Overview
STRB (immediate) – A64 Store Register Byte (immediate) STRB <Wt>, [<Xn|SP>], #<simm> STRB <Wt>, [<Xn|SP>, #<simm>]! STRB <Wt>, [<Xn|SP>#<pimm>]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rt, rn, imm9, opt) ⇒ STRB_imm
constructor
A new instance of STRB_imm.
Constructor Details
#initialize(rt, rn, imm9, opt) ⇒ STRB_imm
Returns a new instance of STRB_imm.
9 10 11 12 13 14 |
# File 'lib/aarch64/instructions/strb_imm.rb', line 9 def initialize rt, rn, imm9, opt @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @imm9 = check_mask(imm9, 0x1ff) @opt = check_mask(opt, 0x03) end |
Instance Method Details
#encode(_) ⇒ Object
16 17 18 |
# File 'lib/aarch64/instructions/strb_imm.rb', line 16 def encode _ STRB_imm(@imm9, @opt, @rn, @rt) end |