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