Class: AArch64::Instructions::SUBPS

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

Overview

SUBPS – A64 Subtract Pointer, setting Flags SUBPS <Xd>, <Xn|SP>, <Xm|SP>

Instance Method Summary collapse

Constructor Details

#initialize(xd, xn, xm) ⇒ SUBPS

Returns a new instance of SUBPS.



7
8
9
10
11
# File 'lib/aarch64/instructions/subps.rb', line 7

def initialize xd, xn, xm
  @xd = check_mask(xd, 0x1f)
  @xn = check_mask(xn, 0x1f)
  @xm = check_mask(xm, 0x1f)
end

Instance Method Details

#encode(_) ⇒ Object



13
14
15
# File 'lib/aarch64/instructions/subps.rb', line 13

def encode _
  SUBPS(@xm, @xn, @xd)
end