This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Calculator Programming subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. General Coding and Design => Calculator Programming
Author Message
SilverCalcKnight
|_


Active Member


Joined: 15 Nov 2005
Posts: 577

Posted: 14 Jun 2006 11:03:11 am    Post subject:

Well, I was cleaning my room yesterday (a noble achievement in itself) and I stumbled across a book I've been wanting to read for a long time: C++: How To Program. Right now I've read about control statements, input and output, and right now the break and continue statements. I intend on using this knowledge to program in C for my 89-Ti. Anything specific to the 89-Ti I should know? Maybe anything useful that they don't teach you in a book? So far it seems remarkably similar to TI-Basic, but I assume that expectation will be shattered in the next days following.

-=SilverCalcKnight=-
Back to top
c_plus_plus
My Face Hertz


Active Member


Joined: 30 Jan 2006
Posts: 575

Posted: 14 Jun 2006 11:55:02 am    Post subject:

the main diference between c and BASIC is the actual synax of the comands.
BASIC:

Code:
If A
Then
dostuff
End


C:

Code:
If A
{
    dostuff;
}

the main reson for the simularity is the necesety for the same controll structures in all the programing languages. most hight level languages differ only by synax and library. Assembly is totaly diferent than the rest.

Edit: I know nothing about 89 C, but I know that the synax will be the same and the library will be diferent (most likely no stdio or iostream liibrary)


Last edited by Guest on 14 Jun 2006 11:57:11 am; edited 1 time in total
Back to top
elfprince13
Retired


Super Elite (Last Title)


Joined: 11 Apr 2005
Posts: 3500

Posted: 14 Jun 2006 12:22:46 pm    Post subject:

I believe they do have a hacked stdio library for TIGCC.
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 14 Jun 2006 12:26:30 pm    Post subject:

How exactly do you go about 'hacking' a library?
Back to top
Liazon
title goes here


Bandwidth Hog


Joined: 01 Nov 2005
Posts: 2007

Posted: 14 Jun 2006 12:43:13 pm    Post subject:

SilverCalcKnight wrote:
Well, I was cleaning my room yesterday (a noble achievement in itself) and I stumbled across a book I've been wanting to read for a long time: C++: How To Program. Right now I've read about control statements, input and output, and right now the break and continue statements. I intend on using this knowledge to program in C for my 89-Ti. Anything specific to the 89-Ti I should know? Maybe anything useful that they don't teach you in a book? So far it seems remarkably similar to TI-Basic, but I assume that expectation will be shattered in the next days following.

-=SilverCalcKnight=-
[post="82183"]<{POST_SNAPBACK}>[/post]


almost everything. syntax is definitely C, but its better to use a lot of ROM calls or assembly libraries, than suggested computer coding techniques because they slow things down on the calc from my experience.

oh ya, NO OBJECTS!! but you can still make structures Very Happy


Last edited by Guest on 14 Jun 2006 12:44:29 pm; edited 1 time in total
Back to top
SilverCalcKnight
|_


Active Member


Joined: 15 Nov 2005
Posts: 577

Posted: 14 Jun 2006 12:59:32 pm    Post subject:

Quote:
almost everything. syntax is definitely C, but its better to use a lot of ROM calls or assembly libraries, than suggested computer coding techniques because they slow things down on the calc from my experience.


Ah, a. I know there is inlined assembly code, but do I need to learn assembly or can I just use certain routines for speed-intensive portions of code?

-=SilverCalcKnight=-


Last edited by Guest on 14 Jun 2006 01:00:13 pm; edited 1 time in total
Back to top
Liazon
title goes here


Bandwidth Hog


Joined: 01 Nov 2005
Posts: 2007

Posted: 14 Jun 2006 04:27:55 pm    Post subject:

Just use a precompiled library. Just follow the instructions to include it, and TIGCC will do all the preprocessing necessary to include the functions. I suggest using ExtGraph. It's the best for greyscale.

68k ASM knowledge probably won't be needed unless what you're doing is really speed critical. But even greyscale first person shooters can be programmed in just C. They use the ASM routines in the FAT engine library to calculate things really fast.

I think F-Zero used ASM in speed critical sections, and bombermaze was pure ASM, but that was because I think the author was already a master of 68k ASM. Too tell you the truth, I've heard of very few games that needed custom ASM code written, but that's because I've played very few. For the most part, games use ASM libraries because they are supposedly faster than the TIGCC functions and Ti-OS ROM calls, especially for greyscale. Of course ASM libraries are MUCH MUCH larger than the other two.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement