Class: AArch64::Instructions::RET
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::RET
- Defined in:
- lib/aarch64/instructions/ret.rb
Overview
RET – A64 Return from subroutine RET <Xn>
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(reg) ⇒ RET
constructor
A new instance of RET.
Constructor Details
#initialize(reg) ⇒ RET
Returns a new instance of RET.
7 8 9 |
# File 'lib/aarch64/instructions/ret.rb', line 7 def initialize reg @reg = check_mask(reg, 0x1f) end |
Instance Method Details
#encode(_) ⇒ Object
11 12 13 |
# File 'lib/aarch64/instructions/ret.rb', line 11 def encode _ RET(@reg) end |