xref: /dflybsd-src/contrib/file/magic/Magdir/os9 (revision c30bd0917bb6a625e80a835271887a7812787d1c)
1f72f8299SJan Lentfer
2f72f8299SJan Lentfer#------------------------------------------------------------------------------
3*c30bd091SSascha Wildner# $File: os9,v 1.8 2017/03/17 21:35:28 christos Exp $
4327e51cbSPeter Avalos#
5327e51cbSPeter Avalos# Copyright (c) 1996 Ignatios Souvatzis. All rights reserved.
6327e51cbSPeter Avalos#
7327e51cbSPeter Avalos# Redistribution and use in source and binary forms, with or without
8327e51cbSPeter Avalos# modification, are permitted provided that the following conditions
9327e51cbSPeter Avalos# are met:
10327e51cbSPeter Avalos# 1. Redistributions of source code must retain the above copyright
11327e51cbSPeter Avalos#    notice, this list of conditions and the following disclaimer.
12327e51cbSPeter Avalos# 2. Redistributions in binary form must reproduce the above copyright
13327e51cbSPeter Avalos#    notice, this list of conditions and the following disclaimer in the
14327e51cbSPeter Avalos#    documentation and/or other materials provided with the distribution.
15327e51cbSPeter Avalos#
16327e51cbSPeter Avalos# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17327e51cbSPeter Avalos# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18327e51cbSPeter Avalos# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19327e51cbSPeter Avalos# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20327e51cbSPeter Avalos# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
21327e51cbSPeter Avalos# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22327e51cbSPeter Avalos# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23327e51cbSPeter Avalos# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24327e51cbSPeter Avalos# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
25327e51cbSPeter Avalos# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26327e51cbSPeter Avalos#
27327e51cbSPeter Avalos#
28327e51cbSPeter Avalos#
29327e51cbSPeter Avalos# OS9/6809 module descriptions:
30327e51cbSPeter Avalos#
31327e51cbSPeter Avalos0	beshort		0x87CD	OS9/6809 module:
32327e51cbSPeter Avalos#
33327e51cbSPeter Avalos>6	byte&0x0f	0x00	non-executable
34327e51cbSPeter Avalos>6	byte&0x0f	0x01	machine language
35327e51cbSPeter Avalos>6	byte&0x0f	0x02	BASIC I-code
36327e51cbSPeter Avalos>6	byte&0x0f	0x03	Pascal P-code
37327e51cbSPeter Avalos>6	byte&0x0f	0x04	C I-code
38327e51cbSPeter Avalos>6	byte&0x0f	0x05	COBOL I-code
39327e51cbSPeter Avalos>6	byte&0x0f	0x06	Fortran I-code
40327e51cbSPeter Avalos#
41327e51cbSPeter Avalos>6	byte&0xf0	0x10	program executable
42327e51cbSPeter Avalos>6	byte&0xf0	0x20	subroutine
43327e51cbSPeter Avalos>6	byte&0xf0	0x30	multi-module
44327e51cbSPeter Avalos>6	byte&0xf0	0x40	data module
45327e51cbSPeter Avalos#
46327e51cbSPeter Avalos>6	byte&0xf0	0xC0	system module
47327e51cbSPeter Avalos>6	byte&0xf0	0xD0	file manager
48327e51cbSPeter Avalos>6	byte&0xf0	0xE0	device driver
49327e51cbSPeter Avalos>6	byte&0xf0	0xF0	device descriptor
50327e51cbSPeter Avalos#
51327e51cbSPeter Avalos# OS9/m68k stuff (to be continued)
52327e51cbSPeter Avalos#
53327e51cbSPeter Avalos0	beshort		0x4AFC	OS9/68K module:
54327e51cbSPeter Avalos#
55327e51cbSPeter Avalos# attr
56327e51cbSPeter Avalos>0x14	byte&0x80	0x80	re-entrant
57327e51cbSPeter Avalos>0x14	byte&0x40	0x40	ghost
58327e51cbSPeter Avalos>0x14	byte&0x20	0x20	system-state
59327e51cbSPeter Avalos#
60327e51cbSPeter Avalos# lang:
61327e51cbSPeter Avalos#
62327e51cbSPeter Avalos>0x13	byte		1	machine language
63327e51cbSPeter Avalos>0x13	byte		2	BASIC I-code
64327e51cbSPeter Avalos>0x13	byte		3	Pascal P-code
65327e51cbSPeter Avalos>0x13	byte		4	C I-code
66327e51cbSPeter Avalos>0x13	byte		5	COBOL I-code
67327e51cbSPeter Avalos>0x13	byte		6	Fortran I-code
68327e51cbSPeter Avalos#
69327e51cbSPeter Avalos#
70327e51cbSPeter Avalos# type:
71327e51cbSPeter Avalos#
72327e51cbSPeter Avalos>0x12	byte		1	program executable
73327e51cbSPeter Avalos>0x12	byte		2	subroutine
74327e51cbSPeter Avalos>0x12	byte		3	multi-module
75327e51cbSPeter Avalos>0x12	byte		4	data module
76327e51cbSPeter Avalos>0x12	byte		11	trap library
77327e51cbSPeter Avalos>0x12	byte		12	system module
78327e51cbSPeter Avalos>0x12	byte		13	file manager
79327e51cbSPeter Avalos>0x12	byte		14	device driver
80327e51cbSPeter Avalos>0x12	byte		15	device descriptor
81