Class: AArch64::Instructions::SUBPS

Inherits:
Object
  • Object
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 = xd
  @xn = xn
  @xm = xm
end

Instance Method Details

#encodeObject



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

def encode
  SUBPS(@xm.to_i, @xn.to_i, @xd.to_i)
end