Class: AArch64::Instructions::SUBP

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

Overview

SUBP – A64 Subtract Pointer SUBP <Xd>, <Xn|SP>, <Xm|SP>

Instance Method Summary collapse

Constructor Details

#initialize(xd, xn, xm) ⇒ SUBP

Returns a new instance of SUBP.



7
8
9
10
11
# File 'lib/aarch64/instructions/subp.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/subp.rb', line 13

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