ti-8x 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. #------------------------------------------------------------------------------
  2. # $File: ti-8x,v 1.6 2009/09/19 16:28:12 christos Exp $
  3. # ti-8x: file(1) magic for the TI-8x and TI-9x Graphing Calculators.
  4. #
  5. # From: Ryan McGuire (rmcguire@freenet.columbus.oh.us).
  6. #
  7. # Update: Romain Lievin (roms@lpg.ticalc.org).
  8. #
  9. # NOTE: This list is not complete.
  10. # Files for the TI-80 and TI-81 are pretty rare. I'm not going to put the
  11. # program/group magic numbers in here because I cannot find any.
  12. 0 string **TI80** TI-80 Graphing Calculator File.
  13. 0 string **TI81** TI-81 Graphing Calculator File.
  14. #
  15. # Magic Numbers for the TI-73
  16. #
  17. 0 string **TI73** TI-73 Graphing Calculator
  18. >0x00003B byte 0x00 (real number)
  19. >0x00003B byte 0x01 (list)
  20. >0x00003B byte 0x02 (matrix)
  21. >0x00003B byte 0x03 (equation)
  22. >0x00003B byte 0x04 (string)
  23. >0x00003B byte 0x05 (program)
  24. >0x00003B byte 0x06 (assembly program)
  25. >0x00003B byte 0x07 (picture)
  26. >0x00003B byte 0x08 (gdb)
  27. >0x00003B byte 0x0C (complex number)
  28. >0x00003B byte 0x0F (window settings)
  29. >0x00003B byte 0x10 (zoom)
  30. >0x00003B byte 0x11 (table setup)
  31. >0x00003B byte 0x13 (backup)
  32. # Magic Numbers for the TI-82
  33. #
  34. 0 string **TI82** TI-82 Graphing Calculator
  35. >0x00003B byte 0x00 (real)
  36. >0x00003B byte 0x01 (list)
  37. >0x00003B byte 0x02 (matrix)
  38. >0x00003B byte 0x03 (Y-variable)
  39. >0x00003B byte 0x05 (program)
  40. >0x00003B byte 0x06 (protected prgm)
  41. >0x00003B byte 0x07 (picture)
  42. >0x00003B byte 0x08 (gdb)
  43. >0x00003B byte 0x0B (window settings)
  44. >0x00003B byte 0x0C (window settings)
  45. >0x00003B byte 0x0D (table setup)
  46. >0x00003B byte 0x0E (screenshot)
  47. >0x00003B byte 0x0F (backup)
  48. #
  49. # Magic Numbers for the TI-83
  50. #
  51. 0 string **TI83** TI-83 Graphing Calculator
  52. >0x00003B byte 0x00 (real)
  53. >0x00003B byte 0x01 (list)
  54. >0x00003B byte 0x02 (matrix)
  55. >0x00003B byte 0x03 (Y-variable)
  56. >0x00003B byte 0x04 (string)
  57. >0x00003B byte 0x05 (program)
  58. >0x00003B byte 0x06 (protected prgm)
  59. >0x00003B byte 0x07 (picture)
  60. >0x00003B byte 0x08 (gdb)
  61. >0x00003B byte 0x0B (window settings)
  62. >0x00003B byte 0x0C (window settings)
  63. >0x00003B byte 0x0D (table setup)
  64. >0x00003B byte 0x0E (screenshot)
  65. >0x00003B byte 0x13 (backup)
  66. #
  67. # Magic Numbers for the TI-83+
  68. #
  69. 0 string **TI83F* TI-83+ Graphing Calculator
  70. >0x00003B byte 0x00 (real number)
  71. >0x00003B byte 0x01 (list)
  72. >0x00003B byte 0x02 (matrix)
  73. >0x00003B byte 0x03 (equation)
  74. >0x00003B byte 0x04 (string)
  75. >0x00003B byte 0x05 (program)
  76. >0x00003B byte 0x06 (assembly program)
  77. >0x00003B byte 0x07 (picture)
  78. >0x00003B byte 0x08 (gdb)
  79. >0x00003B byte 0x0C (complex number)
  80. >0x00003B byte 0x0F (window settings)
  81. >0x00003B byte 0x10 (zoom)
  82. >0x00003B byte 0x11 (table setup)
  83. >0x00003B byte 0x13 (backup)
  84. >0x00003B byte 0x15 (application variable)
  85. >0x00003B byte 0x17 (group of variable)
  86. #
  87. # Magic Numbers for the TI-85
  88. #
  89. 0 string **TI85** TI-85 Graphing Calculator
  90. >0x00003B byte 0x00 (real number)
  91. >0x00003B byte 0x01 (complex number)
  92. >0x00003B byte 0x02 (real vector)
  93. >0x00003B byte 0x03 (complex vector)
  94. >0x00003B byte 0x04 (real list)
  95. >0x00003B byte 0x05 (complex list)
  96. >0x00003B byte 0x06 (real matrix)
  97. >0x00003B byte 0x07 (complex matrix)
  98. >0x00003B byte 0x08 (real constant)
  99. >0x00003B byte 0x09 (complex constant)
  100. >0x00003B byte 0x0A (equation)
  101. >0x00003B byte 0x0C (string)
  102. >0x00003B byte 0x0D (function GDB)
  103. >0x00003B byte 0x0E (polar GDB)
  104. >0x00003B byte 0x0F (parametric GDB)
  105. >0x00003B byte 0x10 (diffeq GDB)
  106. >0x00003B byte 0x11 (picture)
  107. >0x00003B byte 0x12 (program)
  108. >0x00003B byte 0x13 (range)
  109. >0x00003B byte 0x17 (window settings)
  110. >0x00003B byte 0x18 (window settings)
  111. >0x00003B byte 0x19 (window settings)
  112. >0x00003B byte 0x1A (window settings)
  113. >0x00003B byte 0x1B (zoom)
  114. >0x00003B byte 0x1D (backup)
  115. >0x00003B byte 0x1E (unknown)
  116. >0x00003B byte 0x2A (equation)
  117. >0x000032 string ZS4 - ZShell Version 4 File.
  118. >0x000032 string ZS3 - ZShell Version 3 File.
  119. #
  120. # Magic Numbers for the TI-86
  121. #
  122. 0 string **TI86** TI-86 Graphing Calculator
  123. >0x00003B byte 0x00 (real number)
  124. >0x00003B byte 0x01 (complex number)
  125. >0x00003B byte 0x02 (real vector)
  126. >0x00003B byte 0x03 (complex vector)
  127. >0x00003B byte 0x04 (real list)
  128. >0x00003B byte 0x05 (complex list)
  129. >0x00003B byte 0x06 (real matrix)
  130. >0x00003B byte 0x07 (complex matrix)
  131. >0x00003B byte 0x08 (real constant)
  132. >0x00003B byte 0x09 (complex constant)
  133. >0x00003B byte 0x0A (equation)
  134. >0x00003B byte 0x0C (string)
  135. >0x00003B byte 0x0D (function GDB)
  136. >0x00003B byte 0x0E (polar GDB)
  137. >0x00003B byte 0x0F (parametric GDB)
  138. >0x00003B byte 0x10 (diffeq GDB)
  139. >0x00003B byte 0x11 (picture)
  140. >0x00003B byte 0x12 (program)
  141. >0x00003B byte 0x13 (range)
  142. >0x00003B byte 0x17 (window settings)
  143. >0x00003B byte 0x18 (window settings)
  144. >0x00003B byte 0x19 (window settings)
  145. >0x00003B byte 0x1A (window settings)
  146. >0x00003B byte 0x1B (zoom)
  147. >0x00003B byte 0x1D (backup)
  148. >0x00003B byte 0x1E (unknown)
  149. >0x00003B byte 0x2A (equation)
  150. #
  151. # Magic Numbers for the TI-89
  152. #
  153. 0 string **TI89** TI-89 Graphing Calculator
  154. >0x000048 byte 0x00 (expression)
  155. >0x000048 byte 0x04 (list)
  156. >0x000048 byte 0x06 (matrix)
  157. >0x000048 byte 0x0A (data)
  158. >0x000048 byte 0x0B (text)
  159. >0x000048 byte 0x0C (string)
  160. >0x000048 byte 0x0D (graphic data base)
  161. >0x000048 byte 0x0E (figure)
  162. >0x000048 byte 0x10 (picture)
  163. >0x000048 byte 0x12 (program)
  164. >0x000048 byte 0x13 (function)
  165. >0x000048 byte 0x14 (macro)
  166. >0x000048 byte 0x1C (zipped)
  167. >0x000048 byte 0x21 (assembler)
  168. #
  169. # Magic Numbers for the TI-92
  170. #
  171. 0 string **TI92** TI-92 Graphing Calculator
  172. >0x000048 byte 0x00 (expression)
  173. >0x000048 byte 0x04 (list)
  174. >0x000048 byte 0x06 (matrix)
  175. >0x000048 byte 0x0A (data)
  176. >0x000048 byte 0x0B (text)
  177. >0x000048 byte 0x0C (string)
  178. >0x000048 byte 0x0D (graphic data base)
  179. >0x000048 byte 0x0E (figure)
  180. >0x000048 byte 0x10 (picture)
  181. >0x000048 byte 0x12 (program)
  182. >0x000048 byte 0x13 (function)
  183. >0x000048 byte 0x14 (macro)
  184. >0x000048 byte 0x1D (backup)
  185. #
  186. # Magic Numbers for the TI-92+/V200
  187. #
  188. 0 string **TI92P* TI-92+/V200 Graphing Calculator
  189. >0x000048 byte 0x00 (expression)
  190. >0x000048 byte 0x04 (list)
  191. >0x000048 byte 0x06 (matrix)
  192. >0x000048 byte 0x0A (data)
  193. >0x000048 byte 0x0B (text)
  194. >0x000048 byte 0x0C (string)
  195. >0x000048 byte 0x0D (graphic data base)
  196. >0x000048 byte 0x0E (figure)
  197. >0x000048 byte 0x10 (picture)
  198. >0x000048 byte 0x12 (program)
  199. >0x000048 byte 0x13 (function)
  200. >0x000048 byte 0x14 (macro)
  201. >0x000048 byte 0x1C (zipped)
  202. >0x000048 byte 0x21 (assembler)
  203. #
  204. # Magic Numbers for the TI-73/83+/89/92+/V200 FLASH upgrades
  205. #
  206. 0x0000016 string Advanced TI-XX Graphing Calculator (FLASH)
  207. 0 string **TIFL** TI-XX Graphing Calculator (FLASH)
  208. >8 byte >0 - Revision %d
  209. >>9 byte x \b.%d,
  210. >12 byte >0 Revision date %02x
  211. >>13 byte x \b/%02x
  212. >>14 beshort x \b/%04x,
  213. >17 string >/0 name: '%s',
  214. >48 byte 0x74 device: TI-73,
  215. >48 byte 0x73 device: TI-83+,
  216. >48 byte 0x98 device: TI-89,
  217. >48 byte 0x88 device: TI-92+,
  218. >49 byte 0x23 type: OS upgrade,
  219. >49 byte 0x24 type: application,
  220. >49 byte 0x25 type: certificate,
  221. >49 byte 0x3e type: license,
  222. >74 lelong >0 size: %d bytes
  223. # VTi & TiEmu skins (TI Graphing Calculators).
  224. # From: Romain Lievin (roms@lpg.ticalc.org).
  225. # Magic Numbers for the VTi skins
  226. 0 string VTI Virtual TI skin
  227. >3 string v - Version
  228. >>4 byte >0 \b %c
  229. >>6 byte x \b.%c
  230. # Magic Numbers for the TiEmu skins
  231. 0 string TiEmu TiEmu skin
  232. >6 string v - Version
  233. >>7 byte >0 \b %c
  234. >>9 byte x \b.%c
  235. >>10 byte x \b%c