Re: [cc65] division issue?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-12-16 10:26:05
Hi!

On Thu, Dec 16, 2010 at 01:00:02AM -0800, Stefan Wessels wrote:
> The output from the code below is:
> a / b = 6
>
> Shouldn't that be 0?
                                                               
Thanks for the report!

I haven't tested your code, but the mod problem reported lately is probably
caused by a wrong check when calling a 16 by 8 division instead of a 16 by 16
one if the high byte of divisor is zero. Your problem might have the same
cause, so we will check that again when the mod issue is fixed.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Dec 16 10:26:15 2010

This archive was generated by hypermail 2.1.8 : 2010-12-16 10:26:18 CET