summaryrefslogtreecommitdiff
path: root/usr.bin/file/magdir/sinclair
blob: 6eb92e0b8ef116940924f572591c7e026e8d6bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
#	$OpenBSD: sinclair,v 1.1 2004/06/03 03:14:20 tedu Exp $

#------------------------------------------------------------------------------
# sinclair:  file(1) sinclair QL

# additions to /etc/magic by Thomas M. Ott (ThMO)

# Sinclair QL floppy disk formats (ThMO)
0	string	=QL5		QL disk dump data,
>3	string	=A		720 KB,
>3	string	=B		1.44 MB,
>3	string	=C		3.2 MB,
>4	string	>\0		label:%.10s

# Sinclair QL OS dump (ThMO)
# (NOTE: if `file' would be able to use indirect references in a endian format
#	 differing from the natural host format, this could be written more
#	 reliably and faster...)
#
# we *can't* lookup QL OS code dumps, because `file' is UNABLE to read more
# than the first 8K of a file... #-(
#
#0		belong	=0x30000
#>49124		belong	<47104
#>>49128		belong	<47104
#>>>49132	belong	<47104
#>>>>49136	belong	<47104	QL OS dump data,
#>>>>>49148	string	>\0	type %.3s,
#>>>>>49142	string	>\0	version %.4s

# Sinclair QL firmware executables (ThMO)
0	string	NqNqNq`\004	QL firmware executable (BCPL)

# Sinclair QL libraries (ThMO)
0	beshort	=0xFB01		QL library archive data

# Sinclair QL executbables (ThMO)
6	beshort	=0x4AFB		QL executable,
>10	string	=\0		un-named
>8	beshort	=1
>>10	string	>\0		named: %.1s
>8	beshort	=2
>>10	string	>\0		named: %.2s
>8	beshort	=3
>>10	string	>\0		named: %.3s
>8	beshort	=4
>>10	string	>\0		named: %.4s
>8	beshort	=5
>>10	string	>\0		named: %.5s
>8	beshort	=6
>>10	string	>\0		named: %.6s
>8	beshort	=7
>>10	string	>\0		named: %.7s
>8	beshort	=8
>>10	string	>\0		named: %.8s
>8	beshort	=9
>>10	string	>\0		named: %.9s
>8	beshort	=10
>>10	string	>\0		named: %.10s
>8	beshort	=11
>>10	string	>\0		named: %.11s
>8	beshort	=12
>>10	string	>\0		named: %.12s
>8	beshort	=13
>>10	string	>\0		named: %.13s
>8	beshort	=14
>>10	string	>\0		named: %.14s
>8	beshort	=15
>>10	string	>\0		named: %.15s
>8	beshort	=16
>>10	string	>\0		named: %.16s
>8	beshort	=17
>>10	string	>\0		named: %.17s
>8	beshort	=18
>>10	string	>\0		named: %.18s
>8	beshort	=19
>>10	string	>\0		named: %.19s
>8	beshort	=20
>>10	string	>\0		named: %.20s
>8	beshort	>20
>>10	string	>\0		(truncated) named: %.20s

# Sinclair QL rom (ThMO)
0	belong	=0x4AFB0001	QL plugin-ROM data,
>10	string	=\0		un-named
>8	beshort	=1
>>10	string	>\0		named: %.1s
>8	beshort	=2
>>10	string	>\0		named: %.2s
>8	beshort	=3
>>10	string	>\0		named: %.3s
>8	beshort	=4
>>10	string	>\0		named: %.4s
>8	beshort	=5
>>10	string	>\0		named: %.5s
>8	beshort	=6
>>10	string	>\0		named: %.6s
>8	beshort	=7
>>10	string	>\0		named: %.7s
>8	beshort	=8
>>10	string	>\0		named: %.8s
>8	beshort	=9
>>10	string	>\0		named: %.9s
>8	beshort	=10
>>10	string	>\0		named: %.10s
>8	beshort	=11
>>10	string	>\0		named: %.11s
>8	beshort	=12
>>10	string	>\0		named: %.12s
>8	beshort	=13
>>10	string	>\0		named: %.13s
>8	beshort	=14
>>10	string	>\0		named: %.14s
>8	beshort	=15
>>10	string	>\0		named: %.15s
>8	beshort	=16
>>10	string	>\0		named: %.16s
>8	beshort	=17
>>10	string	>\0		named: %.17s
>8	beshort	=18
>>10	string	>\0		named: %.18s
>8	beshort	=19
>>10	string	>\0		named: %.19s
>8	beshort	=20
>>10	string	>\0		named: %.20s
>8	beshort	>20
>>10	string	>\0		(truncated) named: %.20s