Re[2]: [cc65] File I/O on C64

Date view Thread view Subject view

From: groepaz (groepaz_at_gmx.net)
Date: 2002-11-19 02:59:57


Hello MagerValp,

BB>> At the same time, it would be way more desirable to be programming
BB>> with stdio for portability reasons on the game I'm working on.

M> Unless you're trying to port existing code to the C64, stdio isn't
M> really useful. Trying to get a 1 MHz C64 with a 400 cps disk drive to
M> conform to the stdio API is just inefficient. The kernal call wrappers
M> in cbm.h allow you to use the native API for disk I/O, and there's
M> conio for user I/O. If you want to stay compatible with other plat-
M> forms simply #ifdef your way around the problem and user wrapper
M> functions.

i have to stress that... beeing standard compliant requires lotta
things to be done even in simple function (ie putch). if you are
writing new things, better use something native here

btw, maybe it would make sence to define a "load/save file" thing
thats portable across cc65 platforms atleast. (and you can easily
write those functions in stdio to port it to another platform)

BB>> Is there someone out there who could take this on for the cause?

M> I think one or two people on this list have been hacking away a bit on
M> this, sooner or later something might turn up. Until then, use the
M> kernal call wrappers and treat the C64 as a C64 :)

/me raises hand :)

-- 
Best regards,
 groepaz                            mailto:groepaz_at_gmx.net


----------------------------------------------------------------------
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-11-19 03:00:02 CET