acorn 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #------------------------------------------------------------------------------
  2. # acorn: file(1) magic for files found on Acorn systems
  3. #
  4. # RISC OS Chunk File Format
  5. # From RISC OS Programmer's Reference Manual, Appendix D
  6. # We guess the file type from the type of the first chunk.
  7. 0 lelong 0xc3cbc6c5 RISC OS Chunk data
  8. >12 string OBJ_ \b, AOF object
  9. >12 string LIB_ \b, ALF library
  10. # RISC OS AIF, contains "SWI OS_Exit" at offset 16.
  11. 16 lelong 0xef000011 RISC OS AIF executable
  12. # RISC OS Draw files
  13. # From RISC OS Programmer's Reference Manual, Appendix E
  14. 0 string Draw RISC OS Draw file data
  15. # RISC OS new format font files
  16. # From RISC OS Programmer's Reference Manual, Appendix E
  17. 0 string FONT\0 RISC OS outline font data,
  18. >5 byte x version %d
  19. 0 string FONT\1 RISC OS 1bpp font data,
  20. >5 byte x version %d
  21. 0 string FONT\4 RISC OS 4bpp font data
  22. >5 byte x version %d
  23. # RISC OS Music files
  24. # From RISC OS Programmer's Reference Manual, Appendix E
  25. 0 string Maestro\r RISC OS music file
  26. >8 byte x version %d
  27. >8 byte x type %d
  28. # Digital Symphony data files
  29. # From: Bernard Jungen (bern8817@euphonynet.be)
  30. 0 string \x02\x01\x13\x13\x13\x01\x0d\x10 Digital Symphony sound sample (RISC OS),
  31. >8 byte x version %d,
  32. >9 pstring x named "%s",
  33. >(9.b+19) byte =0 8-bit logarithmic
  34. >(9.b+19) byte =1 LZW-compressed linear
  35. >(9.b+19) byte =2 8-bit linear signed
  36. >(9.b+19) byte =3 16-bit linear signed
  37. >(9.b+19) byte =4 SigmaDelta-compressed linear
  38. >(9.b+19) byte =5 SigmaDelta-compressed logarithmic
  39. >(9.b+19) byte >5 unknown format
  40. 0 string \x02\x01\x13\x13\x14\x12\x01\x0b Digital Symphony song (RISC OS),
  41. >8 byte x version %d,
  42. >9 byte =1 1 voice,
  43. >9 byte !1 %d voices,
  44. >10 leshort =1 1 track,
  45. >10 leshort !1 %d tracks,
  46. >12 leshort =1 1 pattern
  47. >12 leshort !1 %d patterns
  48. 0 string \x02\x01\x13\x13\x10\x14\x12\x0e
  49. >9 byte =0 Digital Symphony sequence (RISC OS),
  50. >>8 byte x version %d,
  51. >>10 byte =1 1 line,
  52. >>10 byte !1 %d lines,
  53. >>11 leshort =1 1 position
  54. >>11 leshort !1 %d positions
  55. >9 byte =1 Digital Symphony pattern data (RISC OS),
  56. >>8 byte x version %d,
  57. >>10 leshort =1 1 pattern
  58. >>10 leshort !1 %d patterns