Jump to content



Photo
- - - - -

Tutorials For 9860g Add-ins


  • Please log in to reply
12 replies to this topic

#1 Horrowind

Horrowind

    Newbie

  • Members
  • Pip
  • 29 posts
  • Gender:Male

  • Calculators:
    9860G SD
    9850GB+

Posted 03 March 2007 - 05:12 PM

Can someone of the Freaks write a Tutorial for prog Add-Ins with the SDK?
That would be nice :roflol:

#2 Menno

Menno

    Casio Freak

  • Members
  • PipPipPipPip
  • 184 posts
  • Gender:Male
  • Location:Netherlands

  • Calculators:
    Casio 880P
    Casio Graph 25+
    Casio fx-9860g sd

Posted 03 March 2007 - 06:10 PM

There are numerous C tutorials on the net, start learning that with for example bloodshed c dev (free compiler)

then you can start learning casio c

After you learned C and are learning casio c use the source code of games to learn, use the PDF's from casio for the right syntax

On Casiokingdom there are some C-code snippets, pong from kucalc is quite simple to understand and has the source included.

#3 kucalc

kucalc

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1422 posts
  • Gender:Male
  • Location:USA
  • Interests:Programming: C/C++, Fortran, LISP, COBOL 85 Standard, PHP, x86 and SH3 Assembly

    Computer graphics

  • Calculators:
    fx-9860G / fx-7400G Plus / Algebra FX 2.0+ / fx-9770G / CFX-9850G / CFX-9850GB+ / TI-89 / TI-nSpire

Posted 04 March 2007 - 12:38 AM

First of all, welcome to the forum Horrowind! :D

Menno is right. Look for free C tutorials on the web. Once you mastered that, then read the manuals that go along with the fx-9860 SDK. That is probably the best way to learning how to use the SDK. Also my Pong game includes simple source code that you could learn from: http://www.casiocalc...?showtopic=3145

#4 Horrowind

Horrowind

    Newbie

  • Members
  • Pip
  • 29 posts
  • Gender:Male

  • Calculators:
    9860G SD
    9850GB+

Posted 06 March 2007 - 05:16 PM

And how much must i now?
i now a bit like if, while, for,... is that enough?

#5 Menno

Menno

    Casio Freak

  • Members
  • PipPipPipPip
  • 184 posts
  • Gender:Male
  • Location:Netherlands

  • Calculators:
    Casio 880P
    Casio Graph 25+
    Casio fx-9860g sd

Posted 06 March 2007 - 05:35 PM

just follow some tutorials from lesson one to the end

then you know what you must know

as if we could know what you know based on one sentence ;)

#6 Horrowind

Horrowind

    Newbie

  • Members
  • Pip
  • 29 posts
  • Gender:Male

  • Calculators:
    9860G SD
    9850GB+

Posted 08 March 2007 - 06:40 PM

i have one and a half year C++ in school and i will learn more... <_<
and I have much (boring) praxsis (i dont know whether this is right english :unsure: )
but it would be useful if someone write a tutorial (so i must not read the PDF's)

Horrowind



#7 Menno

Menno

    Casio Freak

  • Members
  • PipPipPipPip
  • 184 posts
  • Gender:Male
  • Location:Netherlands

  • Calculators:
    Casio 880P
    Casio Graph 25+
    Casio fx-9860g sd

Posted 09 March 2007 - 04:28 PM

i think reading the PDF is needed anyhow

it is like :r-t-f-m: :r-t-f-m: :r-t-f-m: ;)

just read it because the syntax of casio C is different then standard C

#8 Guest_Khairy_*

Guest_Khairy_*
  • Guests

Posted 09 March 2007 - 05:39 PM

OK I am new to the SDK. my experience with C was 5 years ago in u...and that did not go well. I am lousy with C.

Now i want to pick on this SDK. so I have to learn again <_<

Your advice is this: Read up on C+ tutorials, then read Casio SDK C document, then try some program. Is that OK? Anything else I can do to learn faster? :banghead:

Do I read up C or C++ tutorials? I read some tutorials and I found that there are many differences in C :blink:

I am ok with Casio Basic but in writing big program Basic is worthless, so SDK is more useful.

Some idea on how to procedd better would be nice, thanks.

#9 Horrowind

Horrowind

    Newbie

  • Members
  • Pip
  • 29 posts
  • Gender:Male

  • Calculators:
    9860G SD
    9850GB+

Posted 09 March 2007 - 09:17 PM

I have a problem:
why isnt there anything on the display?
int AddIn_main(int isAppli, unsigned short OptionNum)
{
#include "fxlib.h"
unsigned int x,y;
	x=3;
	y=3;
	while(GetKey("KEY_CTRL_EXE")){
		if(IsKeyDown(KEY_CTRL_UP)&&x!=1) {x=x-1;}
		
		locate(x,y);
		Print((unsigned char*)"T");	<-??????
	}

	return 1;
}


I want to build a game where i can move a "T".

#10 Horrowind

Horrowind

    Newbie

  • Members
  • Pip
  • 29 posts
  • Gender:Male

  • Calculators:
    9860G SD
    9850GB+

Posted 09 March 2007 - 09:26 PM

Another Question:
Is it possible to open an Add-In from a Add-In/from the SD-Card?

#11 kucalc

kucalc

    Casio Maniac

  • [Legends]
  • PipPipPipPipPipPipPipPip
  • 1422 posts
  • Gender:Male
  • Location:USA
  • Interests:Programming: C/C++, Fortran, LISP, COBOL 85 Standard, PHP, x86 and SH3 Assembly

    Computer graphics

  • Calculators:
    fx-9860G / fx-7400G Plus / Algebra FX 2.0+ / fx-9770G / CFX-9850G / CFX-9850GB+ / TI-89 / TI-nSpire

Posted 10 March 2007 - 01:29 AM

I have a problem:
why isnt there anything on the display?

I want to build a game where i can move a "T".


Try my code:
int AddIn_main(int isAppli, unsigned short OptionNum)
{
	unsigned int x,y,key;
	x=3;
	y=3;
	while(key != KEY_CTRL_EXE) {
		Bdisp_AllClr_VRAM();
		if(IsKeyDown(KEY_CTRL_UP)==1)
		{
			y = y - 1;
		}
		if(IsKeyDown(KEY_CTRL_DOWN)==1)
		{
			y = y + 1;
		}
		if(IsKeyDown(KEY_CTRL_RIGHT)==1)
		{
			x = x + 1;
		}
		if(IsKeyDown(KEY_CTRL_LEFT)==1)
		{
			x = x - 1;
		}
		if(y <= 1)
		{
			y = 1;
		}
		if(y >= 8)
		{
			y = 8;
		}
		if(x <= 1)
		{
			x = 1;
		}
		if(x >= 21)
		{
			x = 21;
		}
		locate(x,y);
		Print((unsigned char*)"T");
		GetKey(&key);
	}
	return 1;
}

Press <span class=EXE' /> to exit. Use the UP, DOWN, LEFT, and RIGHT keys to move. Also note that the Print() function only prints to the V(ideo)RAM. You'll need a function that will copy the VRAM to the DD (Display Driver) such as the functions like GetKey() and Bdisp_PutDisp_DD().

Another Question:
Is it possible to open an Add-In from a Add-In/from the SD-Card?


No, but you can write a add-in that reads data from the SD card.

If you need more help just ask me. :D

#12 Horrowind

Horrowind

    Newbie

  • Members
  • Pip
  • 29 posts
  • Gender:Male

  • Calculators:
    9860G SD
    9850GB+

Posted 12 March 2007 - 07:05 PM

The 3rd question:
There are tutorials for Casio Basic, but there are no tutorials for Casio C.
There are users, who don't want to read the PDFs (like me :lol: ) or who don't understand this (like me too :lol: ).
so i tell you the request:
:!: plz write tuorials :!:

so i understand more

#13 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 29 August 2011 - 06:07 PM

I know this is an old topic, but I whole-heartedly agree! we need tutorials for C/ASM/SDK!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users