1234449Sobrien 2103373Sobrien#------------------------------------------------------------------------------ 3234449Sobrien# $File: acorn,v 1.5 2009/09/19 16:28:07 christos Exp $ 4103373Sobrien# acorn: file(1) magic for files found on Acorn systems 5103373Sobrien# 6103373Sobrien 7103373Sobrien# RISC OS Chunk File Format 8103373Sobrien# From RISC OS Programmer's Reference Manual, Appendix D 9103373Sobrien# We guess the file type from the type of the first chunk. 10103373Sobrien0 lelong 0xc3cbc6c5 RISC OS Chunk data 11103373Sobrien>12 string OBJ_ \b, AOF object 12103373Sobrien>12 string LIB_ \b, ALF library 13103373Sobrien 14103373Sobrien# RISC OS AIF, contains "SWI OS_Exit" at offset 16. 15103373Sobrien16 lelong 0xef000011 RISC OS AIF executable 16103373Sobrien 17103373Sobrien# RISC OS Draw files 18103373Sobrien# From RISC OS Programmer's Reference Manual, Appendix E 19103373Sobrien0 string Draw RISC OS Draw file data 20103373Sobrien 21103373Sobrien# RISC OS new format font files 22103373Sobrien# From RISC OS Programmer's Reference Manual, Appendix E 23103373Sobrien0 string FONT\0 RISC OS outline font data, 24103373Sobrien>5 byte x version %d 25103373Sobrien0 string FONT\1 RISC OS 1bpp font data, 26103373Sobrien>5 byte x version %d 27103373Sobrien0 string FONT\4 RISC OS 4bpp font data 28103373Sobrien>5 byte x version %d 29103373Sobrien 30103373Sobrien# RISC OS Music files 31103373Sobrien# From RISC OS Programmer's Reference Manual, Appendix E 32103373Sobrien0 string Maestro\r RISC OS music file 33103373Sobrien>8 byte x version %d 34103373Sobrien 35175296Sobrien>8 byte x type %d 36175296Sobrien 37175296Sobrien# Digital Symphony data files 38175296Sobrien# From: Bernard Jungen (bern8817@euphonynet.be) 39175296Sobrien0 string \x02\x01\x13\x13\x13\x01\x0d\x10 Digital Symphony sound sample (RISC OS), 40175296Sobrien>8 byte x version %d, 41175296Sobrien>9 pstring x named "%s", 42175296Sobrien>(9.b+19) byte =0 8-bit logarithmic 43175296Sobrien>(9.b+19) byte =1 LZW-compressed linear 44175296Sobrien>(9.b+19) byte =2 8-bit linear signed 45175296Sobrien>(9.b+19) byte =3 16-bit linear signed 46175296Sobrien>(9.b+19) byte =4 SigmaDelta-compressed linear 47175296Sobrien>(9.b+19) byte =5 SigmaDelta-compressed logarithmic 48175296Sobrien>(9.b+19) byte >5 unknown format 49175296Sobrien 50175296Sobrien0 string \x02\x01\x13\x13\x14\x12\x01\x0b Digital Symphony song (RISC OS), 51175296Sobrien>8 byte x version %d, 52175296Sobrien>9 byte =1 1 voice, 53175296Sobrien>9 byte !1 %d voices, 54175296Sobrien>10 leshort =1 1 track, 55175296Sobrien>10 leshort !1 %d tracks, 56175296Sobrien>12 leshort =1 1 pattern 57175296Sobrien>12 leshort !1 %d patterns 58175296Sobrien 59175296Sobrien0 string \x02\x01\x13\x13\x10\x14\x12\x0e 60175296Sobrien>9 byte =0 Digital Symphony sequence (RISC OS), 61175296Sobrien>>8 byte x version %d, 62175296Sobrien>>10 byte =1 1 line, 63175296Sobrien>>10 byte !1 %d lines, 64175296Sobrien>>11 leshort =1 1 position 65175296Sobrien>>11 leshort !1 %d positions 66175296Sobrien>9 byte =1 Digital Symphony pattern data (RISC OS), 67175296Sobrien>>8 byte x version %d, 68175296Sobrien>>10 leshort =1 1 pattern 69175296Sobrien>>10 leshort !1 %d patterns 70