[cc65] Commodore file i/o (was: and another....)

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2002-10-08 18:30:08


On Tue, Oct 08, 2002 at 05:49:47PM +0200, groepaz wrote:
> i have some code.... if you look at the snapshot you can get an idea
> of how its designed... however, the current version has many little
> bugs fixed (a bunch of those related to compiler problems ;)) and its
> actually "almost" useable (that is, works ok for opening ONE file at a
> time atm, most standard routines implemented, except seeking -which is
> going to be troublesome on cbm drives-)

As far as I can see, it does not implement POSIX compatible I/O routines,
which is a problem as I see it, because that means that cc65 would need that,
too, and not only the low level routines but also the hig level stuff
(fopen/fread/...) will be platform dependent.

> i was actually waiting for these loadables drivers and some
> instruction on how to use them so i can test if that filestuff really
> works as intended ;)

If you have a recent snapshot, you may want to have a look at the header file
include/modload.h. It exports the necessary structures and functions to load
modules at runtime. The libsrc/c64 directory contains a graphics driver for
320x200x2 graphics mode, just have a look at the makefile to see how it is
translated and linked. There's a problem however: Since module loading needs
disk I/O, and disk I/O is not available for the CBMs, there will no longer be
loadable modules for the CBMs as soon as I remove the dirty hack I'm currently

> i was also considering writing a simple "tetris" using the
> conio-module as a programming example, but i havent done that yet :)

Yes, I've also had some ideas for games. Writing a simple pacman or so
shouldn't be too much work. But since I'm already way behind schedule with all
my other projects, I'm glad I never started:-)



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 : 2002-10-08 18:30:10 CEST