1226048Sobrien 2226048Sobrien#------------------------------------------------------------------------------ 3226048Sobrien# $File: os9,v 1.7 2011/05/13 22:15:54 christos Exp $ 468349Sobrien# 568349Sobrien# Copyright (c) 1996 Ignatios Souvatzis. All rights reserved. 668349Sobrien# 768349Sobrien# Redistribution and use in source and binary forms, with or without 868349Sobrien# modification, are permitted provided that the following conditions 968349Sobrien# are met: 1068349Sobrien# 1. Redistributions of source code must retain the above copyright 1168349Sobrien# notice, this list of conditions and the following disclaimer. 1268349Sobrien# 2. Redistributions in binary form must reproduce the above copyright 1368349Sobrien# notice, this list of conditions and the following disclaimer in the 1468349Sobrien# documentation and/or other materials provided with the distribution. 1568349Sobrien# 1668349Sobrien# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1768349Sobrien# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1868349Sobrien# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1968349Sobrien# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2068349Sobrien# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 2168349Sobrien# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 2268349Sobrien# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 2368349Sobrien# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 2468349Sobrien# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 2568349Sobrien# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2668349Sobrien# 2768349Sobrien# 2868349Sobrien# 2968349Sobrien# OS9/6809 module descriptions: 3068349Sobrien# 3168349Sobrien0 beshort 0x87CD OS9/6809 module: 3268349Sobrien# 3368349Sobrien>6 byte&0x0f 0x00 non-executable 3468349Sobrien>6 byte&0x0f 0x01 machine language 3568349Sobrien>6 byte&0x0f 0x02 BASIC I-code 36139368Sobrien>6 byte&0x0f 0x03 Pascal P-code 3768349Sobrien>6 byte&0x0f 0x04 C I-code 3868349Sobrien>6 byte&0x0f 0x05 COBOL I-code 39139368Sobrien>6 byte&0x0f 0x06 Fortran I-code 4068349Sobrien# 4168349Sobrien>6 byte&0xf0 0x10 program executable 4268349Sobrien>6 byte&0xf0 0x20 subroutine 4368349Sobrien>6 byte&0xf0 0x30 multi-module 4468349Sobrien>6 byte&0xf0 0x40 data module 4568349Sobrien# 4668349Sobrien>6 byte&0xf0 0xC0 system module 4768349Sobrien>6 byte&0xf0 0xD0 file manager 4868349Sobrien>6 byte&0xf0 0xE0 device driver 4968349Sobrien>6 byte&0xf0 0xF0 device descriptor 5068349Sobrien# 5168349Sobrien# OS9/m68k stuff (to be continued) 5268349Sobrien# 5368349Sobrien0 beshort 0x4AFC OS9/68K module: 5468349Sobrien# 5568349Sobrien# attr 56139368Sobrien>0x14 byte&0x80 0x80 re-entrant 57139368Sobrien>0x14 byte&0x40 0x40 ghost 58139368Sobrien>0x14 byte&0x20 0x20 system-state 5968349Sobrien# 6068349Sobrien# lang: 6168349Sobrien# 62139368Sobrien>0x13 byte 1 machine language 63139368Sobrien>0x13 byte 2 BASIC I-code 64139368Sobrien>0x13 byte 3 Pascal P-code 65139368Sobrien>0x13 byte 4 C I-code 66139368Sobrien>0x13 byte 5 COBOL I-code 67139368Sobrien>0x13 byte 6 Fortran I-code 6868349Sobrien# 6968349Sobrien# 7068349Sobrien# type: 7168349Sobrien# 72139368Sobrien>0x12 byte 1 program executable 73139368Sobrien>0x12 byte 2 subroutine 74139368Sobrien>0x12 byte 3 multi-module 75139368Sobrien>0x12 byte 4 data module 76139368Sobrien>0x12 byte 11 trap library 77139368Sobrien>0x12 byte 12 system module 78139368Sobrien>0x12 byte 13 file manager 79139368Sobrien>0x12 byte 14 device driver 80139368Sobrien>0x12 byte 15 device descriptor 81