comparison src/int.s @ 81:fbc14509955a

Fix comments on 32 bit division routine
author William Astle <lost@l-w.ca>
date Sat, 07 Oct 2023 12:59:43 -0600
parents bb50ac9fdf37
children 9a4e2364a966
comparison
equal deleted inserted replaced
80:bb50ac9fdf37 81:fbc14509955a
307 ldd fpa0extra6 ; now subtract divisor from remainder 307 ldd fpa0extra6 ; now subtract divisor from remainder
308 subd fpa1+fps.sig+2 308 subd fpa1+fps.sig+2
309 ldd fpa0extra4 309 ldd fpa0extra4
310 sbcb fpa1+fps.sig+1 310 sbcb fpa1+fps.sig+1
311 sbca fpa1+fps.sig 311 sbca fpa1+fps.sig
312 bcs util_div32b ; brif it doesn't go - need to restore 312 bcs util_div32b ; brif it doesn't go - don't subtract or set bit
313 inc fpa0extra3 ; set quotient bit 313 inc fpa0extra3 ; set quotient bit
314 ldd fpa0extra6 ; actuall do the subtraction 314 ldd fpa0extra6 ; actually do the subtraction
315 subd fpa1+fps.sig+2 315 subd fpa1+fps.sig+2
316 std fpa0extra6 316 std fpa0extra6
317 ldd fpa0extra4 317 ldd fpa0extra4
318 sbcb fpa1+fps.sig+1 318 sbcb fpa1+fps.sig+1
319 sbca fpa1+fps.sig 319 sbca fpa1+fps.sig