Class: AArch64::Instructions::LDAPUR_gen
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::LDAPUR_gen
- Defined in:
- lib/aarch64/instructions/ldapur_gen.rb
Overview
LDAPUR – A64 Load-Acquire RCpc Register (unscaled) LDAPUR <Wt>, [<Xn|SP>#<simm>] LDAPUR <Xt>, [<Xn|SP>#<simm>]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(size, opc, rt, rn, simm) ⇒ LDAPUR_gen
constructor
A new instance of LDAPUR_gen.
Constructor Details
#initialize(size, opc, rt, rn, simm) ⇒ LDAPUR_gen
Returns a new instance of LDAPUR_gen.
8 9 10 11 12 13 14 |
# File 'lib/aarch64/instructions/ldapur_gen.rb', line 8 def initialize size, opc, rt, rn, simm @size = check_mask(size, 0x03) @opc = check_mask(opc, 0x03) @rt = check_mask(rt, 0x1f) @rn = check_mask(rn, 0x1f) @simm = check_mask(simm, 0x1ff) end |
Instance Method Details
#encode(_) ⇒ Object
16 17 18 |
# File 'lib/aarch64/instructions/ldapur_gen.rb', line 16 def encode _ LDAPUR_gen(@size, @opc, @simm, @rn, @rt) end |