Re: [cc65] vic20 again

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-12-11 19:57:11


On Wed, Dec 11, 2002 at 07:33:49PM +0100, Groepaz wrote:
> writing _beyond_ the last line makes the conio implementation write beyond the
> screen memory.

Well, this is very old info, it's documented and there is a reason for it. If
you supply invalid parameters to the function it will behave erratically. In
other words: Garbage in, garbage out. If your program calls a function with
invalid parameters, it is your program, that is buggy, not the called
function.

I agree that it would be better to have the functions check the parameters,
but it was a deliberate decision to leave parameter checking off to save code
and make it run faster. I don't use this strategy on larger machines, but when
fighting for each byte, I think it's ok.

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 19:58:14 CET