Is your feature request related to a problem? Please describe.
Multi-word arithmetic (64-bit or larger integers) is currently impossible. The SBCS instruction is critical for propagating borrow bits across multiple 32-bit words.
Describe the solution you'd like
Implement SBCS in ArithmeticOps.cs. This instruction uses the existing Carry flag from the CPSR/APSR to perform the subtraction.
The operation is defined as: $Rd = Rn - Operand2 - \text{NOT}(Carry)$.
Acceptance Criteria
Datasheet Reference
- ARMv6-M Architecture Reference Manual: Section A6.7.58 (SBCS)
Is your feature request related to a problem? Please describe.
Multi-word arithmetic (64-bit or larger integers) is currently impossible. The
SBCSinstruction is critical for propagating borrow bits across multiple 32-bit words.Describe the solution you'd like
$Rd = Rn - Operand2 - \text{NOT}(Carry)$ .
Implement
SBCSinArithmeticOps.cs. This instruction uses the existing Carry flag from the CPSR/APSR to perform the subtraction.The operation is defined as:
Acceptance Criteria
SBCSlogic using the current Carry flag state.InstructionDecoder.cs.SUBSfollowed by anSBCS.Datasheet Reference