Class: AArch64::Instructions::LDRSB_reg
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::LDRSB_reg
- Defined in:
- lib/aarch64/instructions/ldrsb_reg.rb
Overview
LDRSB (register) – A64 Load Register Signed Byte (register) LDRSB <Wt>, [<Xn|SP>, (<Wm>|<Xm>), <extend> <amount>] LDRSB <Wt>, [<Xn|SP>, <Xm>LSL <amount>] LDRSB <Xt>, [<Xn|SP>, (<Wm>|<Xm>), <extend> <amount>] LDRSB <Xt>, [<Xn|SP>, <Xm>LSL <amount>]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rt, rn, rm, s, option, opc) ⇒ LDRSB_reg
constructor
A new instance of LDRSB_reg.
Constructor Details
#initialize(rt, rn, rm, s, option, opc) ⇒ LDRSB_reg
Returns a new instance of LDRSB_reg.
10 11 12 13 14 15 16 17 |
# File 'lib/aarch64/instructions/ldrsb_reg.rb', line 10 def initialize rt, rn, rm, s, option, opc @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) @s = check_mask(s, 0x01) @option = check_mask(option, 0x07) @opc = check_mask(opc, 0x03) end |
Instance Method Details
#encode(_) ⇒ Object
19 20 21 |
# File 'lib/aarch64/instructions/ldrsb_reg.rb', line 19 def encode _ LDRSB_reg(@opc, @rm, @option, @s, @rn, @rt) end |