Re: [cc65] vic20 again

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-12-11 17:35:10


On Wed, Dec 11, 2002 at 05:30:38PM +0100, MagerValp wrote:
> True for the C64 at least.
>
>   for (i = 0; i < 100; ++i)
>     printf("Hello %d\r\n", i);
>
> overwrites $0800 and crashes as it scrolls off the screen.

This is definitely illegal code. As the comment in the header file says:

 * Most routines do not check the parameters. This may be unfortunate but is
 * also related to speed. The coordinates are always 0/0 based.

The question is if the program crashes when using fully legal screen
coordinates and not writing outside of the right border.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2002-12-11 17:36:10 CET