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