Class: AArch64::Instructions::LDURSW
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::LDURSW
- Defined in:
- lib/aarch64/instructions/ldursw.rb
Overview
LDURSW – A64 Load Register Signed Word (unscaled) LDURSW <Xt>, [<Xn|SP>#<simm>]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rt, rn, imm9) ⇒ LDURSW
constructor
A new instance of LDURSW.
Constructor Details
#initialize(rt, rn, imm9) ⇒ LDURSW
Returns a new instance of LDURSW.
7 8 9 10 11 |
# File 'lib/aarch64/instructions/ldursw.rb', line 7 def initialize rt, rn, imm9 @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @imm9 = check_mask(imm9, 0x1ff) end |
Instance Method Details
#encode(_) ⇒ Object
13 14 15 |
# File 'lib/aarch64/instructions/ldursw.rb', line 13 def encode _ LDURSW(@imm9, @rn, @rt) end |