1. Using list files 2. Ran# test 3. Other pages 4. Hacking 5. Text commands 1. Using list files
List files are one type of calculators memories. Saving numbers to this memory is safer than saving them to
different variables, becourse many programs use the same variables, but list files are not so used.
Here is a small example of using list files in programs:
This code can be used when making a highscore table. If variable P is your points, the program checks that if it is larger than the highscore (List 3[2]), it will change the highscore to same as your points are. One very important thing when using list files is if you use other files than file 1, you always have to return to file 1 at the end of the program, becourse if another program uses list files, it always thinks that the list file selected is file 1 (which is default). Another thing is, that if you want to use a list in your game, you'll have to give those lines you'll be using a value. If you try to save data to line that doesn't exist (which is not initialized), it will only cause an error. 2. Ran# test Command Ran# creates randomized numbers. If you don't give any number, the command creates a random number between 0 and 1. I made a simple test, that shows that Casios randomizer is not as good as it could be. I ran two test, both two times, first looping 1000 times and then 500 times. The commands I used were Int 2Ran# and 2Ran#. The first one prints numbers 1 or 0 (not anything from between) and another one prints out any number between 0 and 2. The code I used was this:
This is what the variables mean:
B = random number
Results:
These results show that at least with these numbers Casios randomizer generates a little bit too low numbers. This also shows that the average goes lower when you take more numbers. 3. Other pages I have listed few links to pages that include programming tips etc. Some of these pages can be also found from links section. If you know another site including programming tips, just email me and I'll add it to this list.
Casio Corner: Programming
Jaakko Heinonen's Casio Page: Casio Help
Casio Graphical Calculator Encyclopaedia
Charlie's Graphics Calculator Site - CFX v THE REST
4. Hacking Here are few good links for those, who believe that they are advanced coders. Please report me if one of these links is broken. If you know another good Casio hacking site, just email me. I take no responsibility for the contents of these sites.
Casio Calculator Hacking
Casio Hacking Page
5. Text commands Casio calculators (CFX-9850G compatibles) have three different text commands which are all meant to be used in very different situations. This simple guide includes instructions how to use them, info about each command and a little speed test (coming soon). Info table Here is a table that shows some info about different text commands. Few explanations:
How to use them
"CASIO"
Orange "CASIO"
Locate X,Y,"CASIO"
Orange " "
Text Y,X,"CASIO"
Orange Text Y,X,"CASIO"
I will add more info to this text commands guide sometime later, but I think this is the most important stuff...
OS 98
|