Re: [cc65] CBM units

From: Groepaz <groepaz1gmx.net>
Date: 2010-02-21 00:10:25
On Samstag 20 Februar 2010, Ullrich von Bassewitz wrote:
> Hi!
> 
> On Thu, Feb 04, 2010 at 12:53:16PM +0100, Groepaz wrote:
> > remember: you must check wether $ba is 0 .... and if so, the current
> > device is 8 (and not zero). you should also set $ba to 8 then :) (this is
> > the case after reset)
> 
> Why do you think, 8 should be stored into $ba? Isn't it enough, to use a
>  drive number of 8 if $ba is zero? I cannot see a real reason to change the
>  value in $ba, since it's overwritten anyway by the next file operation.

its just the clean way to do it :) and you cant be sure what a - potentially 
modified/alternative - kernal uses it for, and how. personally i dont see a 
reason for not simply using $ba as the place to store the variable that keeps 
the current drive number :)

-- 

http://www.hitmen-console.org    http://magicdisk.untergrund.net
http://www.pokefinder.org        http://ftp.pokefinder.org

I have always wished that my computer would be as easy to use as my telephone. 
My wish has come true. I no longer know how to use my telephone. 
<Bjarne Stroustrup>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Feb 21 00:11:57 2010

This archive was generated by hypermail 2.1.8 : 2010-02-21 00:11:59 CET