[cc65] $ba

Date view Thread view Subject view

From: carlos (carlosofcascade_at_gmx.net)
Date: 2003-10-11 22:07:02


> Hello Ullrich,

this text looks a bit strange, as i sent it to the vice development team,
too.

> i found another thing which has either to do with Vice(1.12) or with cc65.
> I use Vice very extensively to test my codings. I used the drive access
via
> file system, and i
> use different directories in all drives 8,9,10,11.
> On the C64 there exists a drive variable ($ba), which holds the actual
> diskdrivenumber.
> In cc65 there is a variable called _curunit which is actually $ba.
> But if i use this variable to access the emulated drive it always contains
8
> for drive 8, in any directory with the different drive numbers.
> As this variable is set by $ffbd(Setlfs) it should be updated after every
> open,load or save.
> This isn't the case in Vice,as i load the program which reads _curunit
fresh
> into the memory after each code/test cycle.
>
I got a little bit futher, when i used the monitor to debug $ba, the
drivenumber.
After i start a cc65 program it holds the value zero. Before it was 8 or the
number i set it to.
After i make a diskaccess with cc65 the value is 8 again, suddenly.
I don't understand why the variable doesn't keep it's value from the point
on when i set it to a specific drivenumber.
Is there a reason, or is this a bug?


> Greetings Carlos


----------------------------------------------------------------------
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-10-11 22:09:53 CEST