A89: Re: TI-GCC help needed


[Prev][Next][Index][Thread]

A89: Re: TI-GCC help needed




> To anyone who can help
>
> Recently I have taken my hand to trying to program in C for the TI-89.
> Currently I'm working on C Drugwars 89, and I was wondering what kind of
> features TI-GCC supports.  What are the data types supported? "int" is,
> "float" isn't i'm pretty sure. If float isn't, how would I go about storing
> large numbers (up to about 400 million or so). Is "double"?

Float means floating point numbers. If you really need them you could try
writing a header file for the 68882 simulation library (or whatever it's
called).

> Arrays? To what degree?
>
> Can I have all the standard facilities (i.e. an array inside a structure)?
>
> Structures?
>
> Switch statements?
>
> All the standard loops and decision mechanisms? For, do-while, if, if-else
> etc.

Everything in standard C is supported, not including I/O of course. It all just
compiles to assembly anyway, and the calc definately supports that. :)

> Also anyone have a routine that wraps text across the screen when it reaches
> the end of the line?
>   (I intend to use the small font for the text, but I'm sure I can modify
> the routine as nesscary)

You might want to take a look at WinStr and the WF_TTY flag. It produces
terminal output (the good kind <grin>) in a window. The full TI window system
documentation is available from ti.com.


 / Niklas Brunlid
Check out Prosit for the TI-89 / TI-92+ at http://prosit.ticalc.org
Random PQF Quote follows:

>From the back, Vetinari looked like a carnivorous flamingo.
        -- (Terry Pratchett, Men At Arms)




Follow-Ups: References: