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