Class: AArch64::Instructions::RET
- Inherits:
-
Object
- Object
- 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
7 8 9 |
# File 'lib/aarch64/instructions/ret.rb', line 7 def initialize reg @reg = reg end |
Instance Method Details
#encode ⇒ Object
11 12 13 |
# File 'lib/aarch64/instructions/ret.rb', line 11 def encode RET(@reg.to_i) end |