From: uz Date: Tue, 11 Jan 2011 17:08:29 +0000 (+0000) Subject: Fixed an error in the division routine: The high byte of the wrong 16 bit X-Git-Tag: V2.13.3~555 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4a32e84639bcf26c2b4c61889bc01bb5cf27d96c;p=cc65 Fixed an error in the division routine: The high byte of the wrong 16 bit value was checked before entering the faster 16b8 division routine. git-svn-id: svn://svn.cc65.org/cc65/trunk@4904 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/runtime/udiv.s b/libsrc/runtime/udiv.s index 4dbc477aa..e667af0e2 100644 --- a/libsrc/runtime/udiv.s +++ b/libsrc/runtime/udiv.s @@ -34,7 +34,7 @@ tosudivax: udiv16: lda #0 sta ptr1+1 ldy #16 - ldx sreg+1 + ldx ptr4+1 beq udiv16by8a L0: asl sreg