This doc is obsolete. The html doc is now the authoritative source.


*********************************************************
* TiLT - link program for TI calculators 	        *
* Copyright (C) 1999-2000, Romain Lievin		*
*							*
* This document describes the format of files used by   *
* the functions of this directory. The TIGraphLink file *
* format is not used but the converter modules are in   *
* the /convert directory 				*
* Last update: 20/02/2000				*
*********************************************************



All files have the same format.

A file can contain one or more variables. The only point that is necessary to
check is the good positionnement of the file pointer whenever a function is
called.

0) PAK files
------------

This format is proper to TiLT and so, it is not compatible with any 
others.

Format:
TI92_PAK	an identifier (it is a PAK file for TI92)	
12		the number of variables in the file
....		some variables such as below


I) TI92 files
-------------

Structure of a file (example) except for backups:

TI92		the calculator type
str		the local name of the var (8 characters max)
my_dir\str	the full name of the var (8+1+8=17 chars max)
STR             the variable type
00000008	the size of the var (longword)
01		the attribute of the var (byte)
data...		the data

Each line is terminated by a '\n'.

Structure of a backup file:

TI92            the calculator type
1.11		ROM version
main\backup     unused (for filling)
BACKUP          the type of the var
00000008        the size of the backup (longword)
00		unused (for filling)
donnees...      the data are binary data (memory dump)


II) TI89/TI92+ files
--------------------

Structure of a file (example) except for backups:

TI89            the calculator type
str             the local name of the var (8 characters max)
my_dir\str      the full name of the var (8+1+8=17 chars max)
STR             the variable type
00000008        the size of the var (longword)
03		the attribute of the var (locked, archived or none)
donnees...      the data

Each line is terminated by a '\n'.

Structure of a backup file:

TI89            the calculator type
0.00            unused (for filling)
main\backup     unused (for filling)
BACKUP          the variable type
00000000        the size of the backup in variables
00		unused (for filling)
donnees...	the data of the backup are variables

The data have the format of a normal file.

III) TI82 files
---------------

Structure of a file (example) except for backups:

TI82            the calculator type
MYPRG           the local name of the var (8 characters max)
MYPRG		unused (for filling)
STR             the variable type
00000008        the size of the var (longword)
03              unused (for filling)
donnees...      the data

Each line is terminated by a '\n'.

Structure of a backup file:

TI82            the calculator type
0.00            unused (for filling)
main\backup     unused (for filling)
BACKUP          the variable type
00000000        unused (for filling)
00              unused (for filling)
data ...	the data of the backup

The data have this format:
0009FC070F9608B601248D		the 0009 is the length of a packet
				the FC070F9608B601248D is this packet
<07FC>				length of the first part
binary data ...
<0896>				length of the second part
binary data ...
<01B6>				length of the third and last part
binary data ...


IV) TI83 files
--------------

The structure is the same as above but with the TI83 identifier.


V) TI85 files
-------------

The structure is the same as above but with the TI85 identifier.


VI) TI86 files
--------------

The structure is the same as aboce but with the TI86 identifier. Moreover,
there is no backup file.