Class: AArch64::Instructions::LDTRH
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::LDTRH
- Defined in:
- lib/aarch64/instructions/ldtrh.rb
Overview
LDTRH – A64 Load Register Halfword (unprivileged) LDTRH <Wt>, [<Xn|SP>#<simm>]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rt, rn, imm9) ⇒ LDTRH
constructor
A new instance of LDTRH.
Constructor Details
#initialize(rt, rn, imm9) ⇒ LDTRH
Returns a new instance of LDTRH.
7 8 9 10 11 |
# File 'lib/aarch64/instructions/ldtrh.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/ldtrh.rb', line 13 def encode _ LDTRH(@imm9, @rn, @rt) end |