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