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