Class: AArch64::Instructions::SMSUBL
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::SMSUBL
- Defined in:
- lib/aarch64/instructions/smsubl.rb
Overview
SMSUBL – A64 Signed Multiply-Subtract Long SMSUBL <Xd>, <Wn>, <Wm>, <Xa>
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rd, rn, rm, ra) ⇒ SMSUBL
constructor
A new instance of SMSUBL.
Constructor Details
#initialize(rd, rn, rm, ra) ⇒ SMSUBL
Returns a new instance of SMSUBL.
7 8 9 10 11 12 |
# File 'lib/aarch64/instructions/smsubl.rb', line 7 def initialize rd, rn, rm, ra @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) @ra = check_mask(ra, 0x1f) end |
Instance Method Details
#encode(_) ⇒ Object
14 15 16 |
# File 'lib/aarch64/instructions/smsubl.rb', line 14 def encode _ SMSUBL(@rm, @ra, @rn, @rd) end |