Re: [cc65] cc65 and $ba again, sorry

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-10-17 22:12:44


Hi!

On Fri, Oct 17, 2003 at 09:01:50PM +0200, carlos wrote:
>     should i use conio instead of stdio? does that make a difference?

If you don't use C file I/O, the library won't open any files, so it won't
touch $BA. Try this:

--------------------------------------------------------------------------
#include <conio.h>
int main (void)
{
    clrscr ();
    cprintf ("$ba = %02X\n", *(unsigned char*)0xBA);
    return 0;
}
--------------------------------------------------------------------------

>     If yes, it would be really fine. How can avoid using c file io together
> with cbm file io, if
>     i need cbm load/save routines?

You can try CBM file I/O (see cbm.h). Because these routines are lower level,
chances are that they won't conflict with direct accesses to the kernal
variables. However, there's no guarantee that this will not happen. If you
want total control, you will have to write all code yourself and tailor it to
suit your needs.

Regards


	Uz


P.S.: When replying, please remove unneeded quoted material.

-- 
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-10-17 22:16:00 CEST