os9 2.7 KB

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