Re: [cc65] Directory/Drive functions

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-06-11 22:55:20


On Wed, Jun 11, 2003 at 10:37:35PM +0200, Groepaz wrote:
> On Wednesday 11 June 2003 22:21, Ullrich von Bassewitz wrote:
>
> > My suggestion would be to ask the following question (in fact, this is the
> > question, I've asked when deciding if a save/restore of other variables is
> > necessary): Is there a need to save and restore this variable? If not, why
> > bother? Or better: Why waste code on it? I've put quite some work in
> > sqeezing out bytes from library functions. Why should we waste code in
> > other areas? IMHO "because there's no reason not do do it" is not a good
> > reason.
>
> indeed. it may look like a good idea at first, but it would just introduce
> bloat to many programs. (i would personally even go one step further and
> remove the cleanup code alltogether and have the program loop infinitely or
> reset at exit like most other c64 programs do).

Not being able to leave a C64 program without a reset was one of the things I
hated most, even in my early C64 days. Most machines don't have a reset
switch, and switching power off and on again will stress the hardware a lot.

> and if you decide that you would like to restore this (and maybe more)
> variables, you can still link some own code to your programs easily and
> without much effort.

One of the most common type of programs on the C64 can be exited without any
effort, namely BASIC programs. This is very convenient and I think it is a
good idea that this will also work with cc65 generated programs.

> just for curiousity...what kind of tool/program is that what you think could
> nead such threatment? and why wouldnt you have it loop infinitely and provide
> an "exit" option rather than restarting it by "run"?

I'm not sure about which treatment you're talking. 

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 : 2003-06-11 22:55:38 CEST