75h UT$SDIV signed integer division
Input X register - Numerator.
D register - Denominator.
Output X register - Quotient.
Description

2-byte by 2-byte signed integer division routine.

Divides X by D, putting the result into X.

Does not check for division by zero, which will cause an infinite loop.

Example
        LDD     SIGNED_DENOMINATOR
        BEQ     ERROR           ; divide by zero not checked for in UT$SDIV
        LDX     SIGNED_NUMERATOR
        OS      UT$SDIV
        INX                     ; test X
        DEX
        BMI     NEGATIVE_QUOTIENT
Errors - none -