Class: AArch64::Instructions::LDTR
- Inherits:
-
Object
- Object
- AArch64::Instructions::LDTR
- Defined in:
- lib/aarch64/instructions/ldtr.rb
Overview
LDTR – A64 Load Register (unprivileged) LDTR <Wt>, [<Xn|SP>#<simm>] LDTR <Xt>, [<Xn|SP>#<simm>]
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(rt, rn, imm9, size) ⇒ LDTR
constructor
A new instance of LDTR.
Constructor Details
#initialize(rt, rn, imm9, size) ⇒ LDTR
Returns a new instance of LDTR.
8 9 10 11 12 13 |
# File 'lib/aarch64/instructions/ldtr.rb', line 8 def initialize rt, rn, imm9, size @rt = rt @rn = rn @imm9 = imm9 @size = size end |
Instance Method Details
#encode ⇒ Object
15 16 17 |
# File 'lib/aarch64/instructions/ldtr.rb', line 15 def encode LDTR(@size, @imm9, @rn.to_i, @rt.to_i) end |