Re: [cc65] loadpaintmagic

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-02-01 15:25:08


Hi!

On Sat, Feb 01, 2003 at 02:50:38PM +0100, Tim Schürmann wrote:
> I was surprised when groepaz wrote, that it could be used on a cbm610 and/or C128
> aswell.

What he meant was the P500 and the C128. Both have a VIC; the P500 has a
different memory layout. Many C64 programs are easily portable to both
machines. However, as both machines are also CBMs, this is not an argument
against CBM file I/O.

> 1. Is it right, that "fseek" is not available for the C64?

Yes.

> 2. The C file I/O-routines won't work in VICE with true drive emulation enabled
> (i've tried Version 1.7, 1.9 and 1.10). Is this behaviour "correct"? (the
> CBM-routines are working).

This has already been discussed. The problem is that the file code does always
add the file type to the name, and if a file type is explicitly given, the
floppy looks for an exact match. The fact that VICE works when not using true
drive emulation is actually an emulation error: The emulator does not behave
as the real floppy would.

I will remove this for the next release. Until then, do something like

        #ifdef __CBM__
            _filetype = 'p';    /* Or whatever */
        #endif

or save your files as type USR (this is the default for _filetype).

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-02-01 15:25:46 CET