Overview
This page has most of my work of c programs for the TI-89 series calculator. All programs and code here are free to download and use under the GNU General Public License. I used TIGCC to compile all of my programs. I do NOT guaranty the quaintly nor the workability of any code or program. Use at your own risk. I suggest visiting Techno Plaza for help learning c for the TI-89 or TI-92.
Authentication
Ti-89 programs are generally freeware with a exception to a few TI applications. This is due to the easy transfer and then running of a desired program from one calculator to another. However, there are some times you want to stop people from doing this. Either you want to make a few bucks off of your brilliant program, or you only want it available to a select few. In any case, here is a way to prevent programs to work properly after being transferred to a non authenticated calculator.
#include < system.h>
void _main(void)
{
if(!authent_calc())
exit(1);
/* Main Program */
... stuf ...
}
bool authent_calc(void)
{
char authent[17];
char ID[17] = {"0","9","2","1","3","0","9","B","2","4","6","D","C","9"};
int index;
// Get the calculator's ID
AB_serno(authent);
for (index = 0; index < 16; index++)
if (ID[index] != authent[index])
return false;
return true;
}
authent_calc() will return true if the calculator’s ID it approved. The authent[] array holds the calculator’s ID, ID[] holds the preapproved ID, and AB_serno(authent) gets the calculator’s ID and stores it in the authent array. The for loop just makes sure that the two arrays are identical. Now the program will only run on the calculator you allow it to run on. The calculator’s ID can be found by hitting F1 then going to about. Feel free to adapt this to your own desire.
** NOTE ** This function was made to limit a programs use to only a select few and is not in any way meant to be use to make a program sellable. It is just a side effect you can use if you want to
Geometry
Risk