Re: [cc65] Possible bug in cc65

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-03-26 18:38:46
On Mon, Mar 26, 2012 at 09:20:45AM -0700, Joseph Rose wrote:
>    I've been working on a cartridge libary for cc65's C64 platform and have
>    been encountering problems with one of the demos.  I converted a part of
>    the demo to run outside the demo (i.e. in the normal configuration) and
>    found the same two bugs; 1. cputsxy() displays garbage text and; 2. the
>    output for rand() is too regular.  I have the code here:

I don't see a call to cputsxy in your code, so I don't know what you mean with
"cputsxy() displays garbage". 

Regarding rand(): The standard doesn't make any statements about the quality
of the pseudo-random numbers generated. I think that the quality of the
generator is quite ok with regard to its size and speed. If you think
otherwise, feel free to use your own improved random number generator.
                                     
One more comment: Using any of the conio functions to write beyond the end of
one line is non portable and may cause undefined behaviour.

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 Mon Mar 26 18:39:01 2012

This archive was generated by hypermail 2.1.8 : 2012-03-26 18:39:05 CEST