Class: AArch64::Instructions::SBCS
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::SBCS
- Defined in:
- lib/aarch64/instructions/sbcs.rb
Overview
SBCS – A64 Subtract with Carry, setting flags SBCS <Wd>, <Wn>, <Wm> SBCS <Xd>, <Xn>, <Xm>
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rd, rn, rm, sf) ⇒ SBCS
constructor
A new instance of SBCS.
Constructor Details
#initialize(rd, rn, rm, sf) ⇒ SBCS
Returns a new instance of SBCS.
8 9 10 11 12 13 |
# File 'lib/aarch64/instructions/sbcs.rb', line 8 def initialize rd, rn, rm, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) @sf = check_mask(sf, 0x01) end |
Instance Method Details
#encode(_) ⇒ Object
15 16 17 |
# File 'lib/aarch64/instructions/sbcs.rb', line 15 def encode _ SBCS(@sf, @rm, @rn, @rd) end |