xref: /freebsd/contrib/file/magic/Magdir/os9 (revision c2c014f24c10f90d85126ac5fbd4d8524de32b1c)
1b6cee71dSXin LI
2b6cee71dSXin LI#------------------------------------------------------------------------------
3*40427ccaSGordon Tetlow# $File: os9,v 1.8 2017/03/17 21:35:28 christos Exp $
4b6cee71dSXin LI#
5b6cee71dSXin LI# Copyright (c) 1996 Ignatios Souvatzis. All rights reserved.
6b6cee71dSXin LI#
7b6cee71dSXin LI# Redistribution and use in source and binary forms, with or without
8b6cee71dSXin LI# modification, are permitted provided that the following conditions
9b6cee71dSXin LI# are met:
10b6cee71dSXin LI# 1. Redistributions of source code must retain the above copyright
11b6cee71dSXin LI#    notice, this list of conditions and the following disclaimer.
12b6cee71dSXin LI# 2. Redistributions in binary form must reproduce the above copyright
13b6cee71dSXin LI#    notice, this list of conditions and the following disclaimer in the
14b6cee71dSXin LI#    documentation and/or other materials provided with the distribution.
15b6cee71dSXin LI#
16b6cee71dSXin LI# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17b6cee71dSXin LI# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18b6cee71dSXin LI# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19b6cee71dSXin LI# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20b6cee71dSXin LI# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21b6cee71dSXin LI# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22b6cee71dSXin LI# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23b6cee71dSXin LI# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24b6cee71dSXin LI# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25b6cee71dSXin LI# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26b6cee71dSXin LI#
27b6cee71dSXin LI#
28b6cee71dSXin LI#
29b6cee71dSXin LI# OS9/6809 module descriptions:
30b6cee71dSXin LI#
31b6cee71dSXin LI0	beshort		0x87CD	OS9/6809 module:
32b6cee71dSXin LI#
33b6cee71dSXin LI>6	byte&0x0f	0x00	non-executable
34b6cee71dSXin LI>6	byte&0x0f	0x01	machine language
35b6cee71dSXin LI>6	byte&0x0f	0x02	BASIC I-code
36b6cee71dSXin LI>6	byte&0x0f	0x03	Pascal P-code
37b6cee71dSXin LI>6	byte&0x0f	0x04	C I-code
38b6cee71dSXin LI>6	byte&0x0f	0x05	COBOL I-code
39b6cee71dSXin LI>6	byte&0x0f	0x06	Fortran I-code
40b6cee71dSXin LI#
41b6cee71dSXin LI>6	byte&0xf0	0x10	program executable
42b6cee71dSXin LI>6	byte&0xf0	0x20	subroutine
43b6cee71dSXin LI>6	byte&0xf0	0x30	multi-module
44b6cee71dSXin LI>6	byte&0xf0	0x40	data module
45b6cee71dSXin LI#
46b6cee71dSXin LI>6	byte&0xf0	0xC0	system module
47b6cee71dSXin LI>6	byte&0xf0	0xD0	file manager
48b6cee71dSXin LI>6	byte&0xf0	0xE0	device driver
49b6cee71dSXin LI>6	byte&0xf0	0xF0	device descriptor
50b6cee71dSXin LI#
51b6cee71dSXin LI# OS9/m68k stuff (to be continued)
52b6cee71dSXin LI#
53b6cee71dSXin LI0	beshort		0x4AFC	OS9/68K module:
54b6cee71dSXin LI#
55b6cee71dSXin LI# attr
56b6cee71dSXin LI>0x14	byte&0x80	0x80	re-entrant
57b6cee71dSXin LI>0x14	byte&0x40	0x40	ghost
58b6cee71dSXin LI>0x14	byte&0x20	0x20	system-state
59b6cee71dSXin LI#
60b6cee71dSXin LI# lang:
61b6cee71dSXin LI#
62b6cee71dSXin LI>0x13	byte		1	machine language
63b6cee71dSXin LI>0x13	byte		2	BASIC I-code
64b6cee71dSXin LI>0x13	byte		3	Pascal P-code
65b6cee71dSXin LI>0x13	byte		4	C I-code
66b6cee71dSXin LI>0x13	byte		5	COBOL I-code
67b6cee71dSXin LI>0x13	byte		6	Fortran I-code
68b6cee71dSXin LI#
69b6cee71dSXin LI#
70b6cee71dSXin LI# type:
71b6cee71dSXin LI#
72b6cee71dSXin LI>0x12	byte		1	program executable
73b6cee71dSXin LI>0x12	byte		2	subroutine
74b6cee71dSXin LI>0x12	byte		3	multi-module
75b6cee71dSXin LI>0x12	byte		4	data module
76b6cee71dSXin LI>0x12	byte		11	trap library
77b6cee71dSXin LI>0x12	byte		12	system module
78b6cee71dSXin LI>0x12	byte		13	file manager
79b6cee71dSXin LI>0x12	byte		14	device driver
80b6cee71dSXin LI>0x12	byte		15	device descriptor
81