Class: AArch64::Instructions::RET

Inherits:
Instruction show all
Defined in:
lib/aarch64/instructions/ret.rb

Overview

RET – A64 Return from subroutine RET <Xn>

Instance Method Summary collapse

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