1226048Sobrien
2226048Sobrien#------------------------------------------------------------------------------
3267843Sdelphij# $File: ti-8x,v 1.7 2014/04/30 21:41:02 christos Exp $
4133359Sobrien# ti-8x: file(1) magic for the TI-8x and TI-9x Graphing Calculators.
568349Sobrien#
668349Sobrien# From: Ryan McGuire (rmcguire@freenet.columbus.oh.us).
768349Sobrien#
8133359Sobrien# Update: Romain Lievin (roms@lpg.ticalc.org).
9133359Sobrien#
1068349Sobrien# NOTE: This list is not complete.
11133359Sobrien# Files for the TI-80 and TI-81 are pretty rare. I'm not going to put the
12133359Sobrien# program/group magic numbers in here because I cannot find any.
13133359Sobrien0		string		**TI80**	TI-80 Graphing Calculator File.
14133359Sobrien0		string		**TI81**	TI-81 Graphing Calculator File.
1568349Sobrien#
16133359Sobrien# Magic Numbers for the TI-73
17133359Sobrien#
18133359Sobrien0		string		**TI73**	TI-73 Graphing Calculator
19133359Sobrien>0x00003B	byte		0x00		(real number)
20133359Sobrien>0x00003B	byte		0x01		(list)
21133359Sobrien>0x00003B	byte		0x02		(matrix)
22133359Sobrien>0x00003B	byte		0x03		(equation)
23133359Sobrien>0x00003B	byte		0x04		(string)
24133359Sobrien>0x00003B	byte		0x05		(program)
25133359Sobrien>0x00003B	byte		0x06		(assembly program)
26133359Sobrien>0x00003B	byte		0x07		(picture)
27133359Sobrien>0x00003B	byte		0x08		(gdb)
28133359Sobrien>0x00003B	byte		0x0C		(complex number)
29133359Sobrien>0x00003B	byte		0x0F		(window settings)
30133359Sobrien>0x00003B	byte		0x10		(zoom)
31133359Sobrien>0x00003B	byte		0x11		(table setup)
32133359Sobrien>0x00003B	byte		0x13		(backup)
33133359Sobrien
3468349Sobrien# Magic Numbers for the TI-82
3568349Sobrien#
36133359Sobrien0		string		**TI82**	TI-82 Graphing Calculator
37133359Sobrien>0x00003B	byte		0x00		(real)
38133359Sobrien>0x00003B	byte		0x01		(list)
39133359Sobrien>0x00003B	byte		0x02		(matrix)
40133359Sobrien>0x00003B	byte		0x03		(Y-variable)
41133359Sobrien>0x00003B	byte		0x05		(program)
42133359Sobrien>0x00003B	byte		0x06		(protected prgm)
43133359Sobrien>0x00003B	byte		0x07		(picture)
44133359Sobrien>0x00003B	byte		0x08		(gdb)
45133359Sobrien>0x00003B	byte		0x0B		(window settings)
46133359Sobrien>0x00003B	byte		0x0C		(window settings)
47133359Sobrien>0x00003B	byte		0x0D		(table setup)
48133359Sobrien>0x00003B	byte		0x0E		(screenshot)
49133359Sobrien>0x00003B	byte		0x0F		(backup)
5068349Sobrien#
5168349Sobrien# Magic Numbers for the TI-83
5268349Sobrien#
53133359Sobrien0		string		**TI83**	TI-83 Graphing Calculator
54133359Sobrien>0x00003B	byte		0x00		(real)
55133359Sobrien>0x00003B	byte		0x01		(list)
56133359Sobrien>0x00003B	byte		0x02		(matrix)
57133359Sobrien>0x00003B	byte		0x03		(Y-variable)
58133359Sobrien>0x00003B	byte		0x04		(string)
59133359Sobrien>0x00003B	byte		0x05		(program)
60133359Sobrien>0x00003B	byte		0x06		(protected prgm)
61133359Sobrien>0x00003B	byte		0x07		(picture)
62133359Sobrien>0x00003B	byte		0x08		(gdb)
63133359Sobrien>0x00003B	byte		0x0B		(window settings)
64133359Sobrien>0x00003B	byte		0x0C		(window settings)
65133359Sobrien>0x00003B	byte		0x0D		(table setup)
66133359Sobrien>0x00003B	byte		0x0E		(screenshot)
67133359Sobrien>0x00003B	byte		0x13		(backup)
6868349Sobrien#
69133359Sobrien# Magic Numbers for the TI-83+
70133359Sobrien#
71133359Sobrien0		string		**TI83F*	TI-83+ Graphing Calculator
72133359Sobrien>0x00003B	byte		0x00		(real number)
73133359Sobrien>0x00003B	byte		0x01		(list)
74133359Sobrien>0x00003B	byte		0x02		(matrix)
75133359Sobrien>0x00003B	byte		0x03		(equation)
76133359Sobrien>0x00003B	byte		0x04		(string)
77133359Sobrien>0x00003B	byte		0x05		(program)
78133359Sobrien>0x00003B	byte		0x06		(assembly program)
79133359Sobrien>0x00003B	byte		0x07		(picture)
80133359Sobrien>0x00003B	byte		0x08		(gdb)
81133359Sobrien>0x00003B	byte		0x0C		(complex number)
82133359Sobrien>0x00003B	byte		0x0F		(window settings)
83133359Sobrien>0x00003B	byte		0x10		(zoom)
84133359Sobrien>0x00003B	byte		0x11		(table setup)
85133359Sobrien>0x00003B	byte		0x13		(backup)
86133359Sobrien>0x00003B	byte		0x15		(application variable)
87133359Sobrien>0x00003B	byte		0x17		(group of variable)
88133359Sobrien
89133359Sobrien#
9068349Sobrien# Magic Numbers for the TI-85
9168349Sobrien#
92133359Sobrien0		string		**TI85**	TI-85 Graphing Calculator
93133359Sobrien>0x00003B	byte		0x00		(real number)
94133359Sobrien>0x00003B	byte		0x01		(complex number)
95133359Sobrien>0x00003B	byte		0x02		(real vector)
96133359Sobrien>0x00003B	byte		0x03		(complex vector)
97133359Sobrien>0x00003B	byte		0x04		(real list)
98133359Sobrien>0x00003B	byte		0x05		(complex list)
99133359Sobrien>0x00003B	byte		0x06		(real matrix)
100133359Sobrien>0x00003B	byte		0x07		(complex matrix)
101133359Sobrien>0x00003B	byte		0x08		(real constant)
102133359Sobrien>0x00003B	byte		0x09		(complex constant)
103133359Sobrien>0x00003B	byte		0x0A		(equation)
104133359Sobrien>0x00003B	byte		0x0C		(string)
105133359Sobrien>0x00003B	byte		0x0D		(function GDB)
106133359Sobrien>0x00003B	byte		0x0E		(polar GDB)
107133359Sobrien>0x00003B	byte		0x0F		(parametric GDB)
108133359Sobrien>0x00003B	byte		0x10		(diffeq GDB)
109133359Sobrien>0x00003B	byte		0x11		(picture)
110133359Sobrien>0x00003B	byte		0x12		(program)
111133359Sobrien>0x00003B	byte		0x13		(range)
112133359Sobrien>0x00003B	byte		0x17		(window settings)
113133359Sobrien>0x00003B	byte		0x18		(window settings)
114133359Sobrien>0x00003B	byte		0x19		(window settings)
115133359Sobrien>0x00003B	byte		0x1A		(window settings)
116133359Sobrien>0x00003B	byte		0x1B		(zoom)
117133359Sobrien>0x00003B	byte		0x1D		(backup)
118133359Sobrien>0x00003B	byte		0x1E		(unknown)
119133359Sobrien>0x00003B	byte		0x2A		(equation)
120133359Sobrien>0x000032	string		ZS4		- ZShell Version 4 File.
121133359Sobrien>0x000032	string		ZS3		- ZShell Version 3 File.
12268349Sobrien#
123133359Sobrien# Magic Numbers for the TI-86
124133359Sobrien#
125133359Sobrien0		string		**TI86**	TI-86 Graphing Calculator
126133359Sobrien>0x00003B	byte		0x00		(real number)
127133359Sobrien>0x00003B	byte		0x01		(complex number)
128133359Sobrien>0x00003B	byte		0x02		(real vector)
129133359Sobrien>0x00003B	byte		0x03		(complex vector)
130133359Sobrien>0x00003B	byte		0x04		(real list)
131133359Sobrien>0x00003B	byte		0x05		(complex list)
132133359Sobrien>0x00003B	byte		0x06		(real matrix)
133133359Sobrien>0x00003B	byte		0x07		(complex matrix)
134133359Sobrien>0x00003B	byte		0x08		(real constant)
135133359Sobrien>0x00003B	byte		0x09		(complex constant)
136133359Sobrien>0x00003B	byte		0x0A		(equation)
137133359Sobrien>0x00003B	byte		0x0C		(string)
138133359Sobrien>0x00003B	byte		0x0D		(function GDB)
139133359Sobrien>0x00003B	byte		0x0E		(polar GDB)
140133359Sobrien>0x00003B	byte		0x0F		(parametric GDB)
141133359Sobrien>0x00003B	byte		0x10		(diffeq GDB)
142133359Sobrien>0x00003B	byte		0x11		(picture)
143133359Sobrien>0x00003B	byte		0x12		(program)
144133359Sobrien>0x00003B	byte		0x13		(range)
145133359Sobrien>0x00003B	byte		0x17		(window settings)
146133359Sobrien>0x00003B	byte		0x18		(window settings)
147133359Sobrien>0x00003B	byte		0x19		(window settings)
148133359Sobrien>0x00003B	byte		0x1A		(window settings)
149133359Sobrien>0x00003B	byte		0x1B		(zoom)
150133359Sobrien>0x00003B	byte		0x1D		(backup)
151133359Sobrien>0x00003B	byte		0x1E		(unknown)
152133359Sobrien>0x00003B	byte		0x2A		(equation)
153133359Sobrien#
154133359Sobrien# Magic Numbers for the TI-89
155133359Sobrien#
156133359Sobrien0		string		**TI89**	TI-89 Graphing Calculator
157133359Sobrien>0x000048	byte		0x00		(expression)
158133359Sobrien>0x000048	byte		0x04		(list)
159133359Sobrien>0x000048	byte		0x06		(matrix)
160133359Sobrien>0x000048	byte		0x0A		(data)
161133359Sobrien>0x000048	byte		0x0B		(text)
162133359Sobrien>0x000048	byte		0x0C		(string)
163133359Sobrien>0x000048	byte		0x0D		(graphic data base)
164133359Sobrien>0x000048	byte		0x0E		(figure)
165133359Sobrien>0x000048	byte		0x10		(picture)
166133359Sobrien>0x000048	byte		0x12		(program)
167133359Sobrien>0x000048	byte		0x13		(function)
168133359Sobrien>0x000048	byte		0x14		(macro)
169133359Sobrien>0x000048	byte		0x1C		(zipped)
170133359Sobrien>0x000048	byte		0x21		(assembler)
171133359Sobrien#
17268349Sobrien# Magic Numbers for the TI-92
17368349Sobrien#
174133359Sobrien0		string		**TI92**	TI-92 Graphing Calculator
175133359Sobrien>0x000048	byte		0x00		(expression)
176133359Sobrien>0x000048	byte		0x04		(list)
177133359Sobrien>0x000048	byte		0x06		(matrix)
178133359Sobrien>0x000048	byte		0x0A		(data)
179133359Sobrien>0x000048	byte		0x0B		(text)
180133359Sobrien>0x000048	byte		0x0C		(string)
181133359Sobrien>0x000048	byte		0x0D		(graphic data base)
182133359Sobrien>0x000048	byte		0x0E		(figure)
183133359Sobrien>0x000048	byte		0x10		(picture)
184133359Sobrien>0x000048	byte		0x12		(program)
185133359Sobrien>0x000048	byte		0x13		(function)
186133359Sobrien>0x000048	byte		0x14		(macro)
187133359Sobrien>0x000048	byte		0x1D		(backup)
188133359Sobrien#
189133359Sobrien# Magic Numbers for the TI-92+/V200
190133359Sobrien#
191133359Sobrien0		string		**TI92P*	TI-92+/V200 Graphing Calculator
192133359Sobrien>0x000048	byte		0x00		(expression)
193133359Sobrien>0x000048	byte		0x04		(list)
194133359Sobrien>0x000048	byte		0x06		(matrix)
195133359Sobrien>0x000048	byte		0x0A		(data)
196133359Sobrien>0x000048	byte		0x0B		(text)
197133359Sobrien>0x000048	byte		0x0C		(string)
198133359Sobrien>0x000048	byte		0x0D		(graphic data base)
199133359Sobrien>0x000048	byte		0x0E		(figure)
200133359Sobrien>0x000048	byte		0x10		(picture)
201133359Sobrien>0x000048	byte		0x12		(program)
202133359Sobrien>0x000048	byte		0x13		(function)
203133359Sobrien>0x000048	byte		0x14		(macro)
204133359Sobrien>0x000048	byte		0x1C		(zipped)
205133359Sobrien>0x000048	byte		0x21		(assembler)
206133359Sobrien#
207133359Sobrien# Magic Numbers for the TI-73/83+/89/92+/V200 FLASH upgrades
208133359Sobrien#
209133359Sobrien0x0000016	string		Advanced	TI-XX Graphing Calculator (FLASH)
210133359Sobrien0		string		**TIFL**	TI-XX Graphing Calculator (FLASH)
211133359Sobrien>8		byte		>0		- Revision %d
212133359Sobrien>>9 		byte		x		\b.%d,
213133359Sobrien>12		byte		>0		Revision date %02x
214133359Sobrien>>13		byte		x		\b/%02x
215133359Sobrien>>14		beshort		x		\b/%04x,
216133359Sobrien>17		string		>/0		name: '%s',
217133359Sobrien>48		byte		0x74		device: TI-73,
218133359Sobrien>48		byte		0x73		device: TI-83+,
219133359Sobrien>48		byte		0x98		device: TI-89,
220133359Sobrien>48		byte		0x88		device: TI-92+,
221133359Sobrien>49		byte		0x23		type: OS upgrade,
222133359Sobrien>49		byte		0x24		type: application,
223133359Sobrien>49		byte		0x25		type: certificate,
224133359Sobrien>49		byte		0x3e		type: license,
225267843Sdelphij>74		lelong		>0		size: %d bytes
226133359Sobrien
227133359Sobrien# VTi & TiEmu skins (TI Graphing Calculators).
228133359Sobrien# From: Romain Lievin (roms@lpg.ticalc.org).
229133359Sobrien# Magic Numbers for the VTi skins
230133359Sobrien0               string          VTI		Virtual TI skin
231133359Sobrien>3		string		v		- Version
232133359Sobrien>>4		byte		>0		\b %c
233133359Sobrien>>6		byte		x		\b.%c
234133359Sobrien# Magic Numbers for the TiEmu skins
235133359Sobrien0		string		TiEmu		TiEmu skin
236133359Sobrien>6              string          v               - Version
237133359Sobrien>>7             byte            >0              \b %c
238133359Sobrien>>9             byte            x               \b.%c
239133359Sobrien>>10		byte		x		\b%c
240