xref: /freebsd/contrib/file/magic/Magdir/sinclair (revision b6cee71de37d56e36dbc118e2d9b03e7cece5709)
1*b6cee71dSXin LI
2*b6cee71dSXin LI#------------------------------------------------------------------------------
3*b6cee71dSXin LI# $File: sinclair,v 1.5 2009/09/19 16:28:12 christos Exp $
4*b6cee71dSXin LI# sinclair:  file(1) sinclair QL
5*b6cee71dSXin LI
6*b6cee71dSXin LI# additions to /etc/magic by Thomas M. Ott (ThMO)
7*b6cee71dSXin LI
8*b6cee71dSXin LI# Sinclair QL floppy disk formats (ThMO)
9*b6cee71dSXin LI0	string	=QL5		QL disk dump data,
10*b6cee71dSXin LI>3	string	=A		720 KB,
11*b6cee71dSXin LI>3	string	=B		1.44 MB,
12*b6cee71dSXin LI>3	string	=C		3.2 MB,
13*b6cee71dSXin LI>4	string	>\0		label:%.10s
14*b6cee71dSXin LI
15*b6cee71dSXin LI# Sinclair QL OS dump (ThMO)
16*b6cee71dSXin LI# (NOTE: if `file' would be able to use indirect references in a endian format
17*b6cee71dSXin LI#	 differing from the natural host format, this could be written more
18*b6cee71dSXin LI#	 reliably and faster...)
19*b6cee71dSXin LI#
20*b6cee71dSXin LI# we *can't* lookup QL OS code dumps, because `file' is UNABLE to read more
21*b6cee71dSXin LI# than the first 8K of a file... #-(
22*b6cee71dSXin LI#
23*b6cee71dSXin LI#0		belong	=0x30000
24*b6cee71dSXin LI#>49124		belong	<47104
25*b6cee71dSXin LI#>>49128		belong	<47104
26*b6cee71dSXin LI#>>>49132	belong	<47104
27*b6cee71dSXin LI#>>>>49136	belong	<47104	QL OS dump data,
28*b6cee71dSXin LI#>>>>>49148	string	>\0	type %.3s,
29*b6cee71dSXin LI#>>>>>49142	string	>\0	version %.4s
30*b6cee71dSXin LI
31*b6cee71dSXin LI# Sinclair QL firmware executables (ThMO)
32*b6cee71dSXin LI0	string	NqNqNq`\004	QL firmware executable (BCPL)
33*b6cee71dSXin LI
34*b6cee71dSXin LI# Sinclair QL libraries (was ThMO)
35*b6cee71dSXin LI0	beshort	0xFB01		QDOS object
36*b6cee71dSXin LI>2	pstring	x		'%s'
37*b6cee71dSXin LI
38*b6cee71dSXin LI# Sinclair QL executables (was ThMO)
39*b6cee71dSXin LI4	belong	0x4AFB		QDOS executable
40*b6cee71dSXin LI>9	pstring	x		'%s'
41*b6cee71dSXin LI
42*b6cee71dSXin LI# Sinclair QL ROM (ThMO)
43*b6cee71dSXin LI0	belong	=0x4AFB0001	QL plugin-ROM data,
44*b6cee71dSXin LI>9	pstring	=\0		un-named
45*b6cee71dSXin LI>9	pstring	>\0		named: %s
46