1 /* SPDX-License-Identifier: GPL-2.0 */
26 ; examine what the sign should be
39 mov.l A0P,A0P ; is the numerator -ve
40 stc ccr,S2L ; keep the sign in bit 3 of S2L
43 neg.l A0P ; negate arg
46 mov.l A1P,A1P ; is the denominator -ve
49 neg.l A1P ; negate arg
50 xor.b #0x08,S2L ; toggle the result sign
55 ;; Basically the same, except that the sign of the divisor determines
58 mov.l A0P,A0P ; is the numerator -ve
59 stc ccr,S2L ; keep the sign in bit 3 of S2L
62 neg.l A0P ; negate arg
65 mov.l A1P,A1P ; is the denominator -ve
68 neg.l A1P ; negate arg