From 4a32e84639bcf26c2b4c61889bc01bb5cf27d96c Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 11 Jan 2011 17:08:29 +0000 Subject: [PATCH] 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 --- libsrc/runtime/udiv.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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