Re: [cc65] stdio.h for GEOS?

Date view Thread view Subject view

From: Maciej Witkowiak (ytm_at_elysium.pl)
Date: 2002-12-20 13:14:21


Todd Elliott dnia 19 gru 2002 o 16:21 +1030 napisał:
> Can I use the preprocessor directive #include <stdio.h> when the target
> platform is GEOS? I don't remember seeing it in the samples for the GEOS
> target.
>
> I'm going through the C book I'm learning from and trying to use C for
> GEOS.

Download documentation package, there is a quite big document with
documentation of all GEOS-specific functions as well as information about
different behavior in some cases. As for today it is safe to use functions
from these includes in cc65:
assert.h, conio.h, dio.h, errno.h, joystick.h, mouse.h, stdlib.h, string.h,
time.h
These were not tested but should work:
rs232.h, zlib.h

I think that you have two possible ways:
- learn C on those console programs (use rather c64 target for that)
  and then get into cc65+GEOS because it is not a good starter - there are too
  many complicated C expressions involved in it IMO
OR
- learn basics of C (loops, keywords, meaning of all those ++, |, !=, && etc.)
  and using small programs compare your C code with assembly source code
  generated by cc65 - you will soon find out how C expressions are
  translated into asm and maybe you will treat C not as a different
  programming language but a higher level macro assembler with a library of
  functions

ytm

----------------------------------------------------------------------
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-12-20 13:14:52 CET