os9 2.6 KB

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