home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / winh / alpha / ksalpha.h next >
Encoding:
C/C++ Source or Header  |  1995-07-11  |  2.7 KB  |  120 lines

  1. #include "kxalpha.h"
  2.  
  3. //
  4. // Context Frame Offset and Flag Definitions
  5. //
  6.  
  7. #define CONTEXT_FULL 0x20007
  8. #define CONTEXT_CONTROL 0x20001
  9. #define CONTEXT_FLOATING_POINT 0x20002
  10. #define CONTEXT_INTEGER 0x20004
  11.  
  12. #define CxFltF0 0x0
  13. #define CxFltF1 0x8
  14. #define CxFltF2 0x10
  15. #define CxFltF3 0x18
  16. #define CxFltF4 0x20
  17. #define CxFltF5 0x28
  18. #define CxFltF6 0x30
  19. #define CxFltF7 0x38
  20. #define CxFltF8 0x40
  21. #define CxFltF9 0x48
  22. #define CxFltF10 0x50
  23. #define CxFltF11 0x58
  24. #define CxFltF12 0x60
  25. #define CxFltF13 0x68
  26. #define CxFltF14 0x70
  27. #define CxFltF15 0x78
  28. #define CxFltF16 0x80
  29. #define CxFltF17 0x88
  30. #define CxFltF18 0x90
  31. #define CxFltF19 0x98
  32. #define CxFltF20 0xa0
  33. #define CxFltF21 0xa8
  34. #define CxFltF22 0xb0
  35. #define CxFltF23 0xb8
  36. #define CxFltF24 0xc0
  37. #define CxFltF25 0xc8
  38. #define CxFltF26 0xd0
  39. #define CxFltF27 0xd8
  40. #define CxFltF28 0xe0
  41. #define CxFltF29 0xe8
  42. #define CxFltF30 0xf0
  43. #define CxFltF31 0xf8
  44. #define CxIntV0 0x100
  45. #define CxIntT0 0x108
  46. #define CxIntT1 0x110
  47. #define CxIntT2 0x118
  48. #define CxIntT3 0x120
  49. #define CxIntT4 0x128
  50. #define CxIntT5 0x130
  51. #define CxIntT6 0x138
  52. #define CxIntT7 0x140
  53. #define CxIntS0 0x148
  54. #define CxIntS1 0x150
  55. #define CxIntS2 0x158
  56. #define CxIntS3 0x160
  57. #define CxIntS4 0x168
  58. #define CxIntS5 0x170
  59. #define CxIntFp 0x178
  60. #define CxIntA0 0x180
  61. #define CxIntA1 0x188
  62. #define CxIntA2 0x190
  63. #define CxIntA3 0x198
  64. #define CxIntA4 0x1a0
  65. #define CxIntA5 0x1a8
  66. #define CxIntT8 0x1b0
  67. #define CxIntT9 0x1b8
  68. #define CxIntT10 0x1c0
  69. #define CxIntT11 0x1c8
  70. #define CxIntRa 0x1d0
  71. #define CxIntT12 0x1d8
  72. #define CxIntAt 0x1e0
  73. #define CxIntGp 0x1e8
  74. #define CxIntSp 0x1f0
  75. #define CxIntZero 0x1f8
  76. #define CxFpcr 0x200
  77. #define CxSoftFpcr 0x208
  78. #define CxFir 0x210
  79. #define CxPsr 0x218
  80. #define CxContextFlags 0x21c
  81. #define ContextFrameLength 0x230
  82.  
  83. //
  84. // Breakpoint Definitions
  85. //
  86.  
  87. #define USER_BREAKPOINT 0x0
  88. #define KERNEL_BREAKPOINT 0x1
  89. #define BREAKIN_BREAKPOINT 0x19
  90. #define DEBUG_PRINT_BREAKPOINT 0x14
  91. #define DEBUG_PROMPT_BREAKPOINT 0x15
  92. #define DEBUG_STOP_BREAKPOINT 0x16
  93. #define DEBUG_LOAD_SYMBOLS_BREAKPOINT 0x17
  94. #define DEBUG_UNLOAD_SYMBOLS_BREAKPOINT 0x18
  95.  
  96. //
  97. // Trap Code Definitions
  98. //
  99.  
  100. #define GENTRAP_INTEGER_OVERFLOW 0xffffffff
  101. #define GENTRAP_INTEGER_DIVIDE_BY_ZERO 0xfffffffe
  102. #define GENTRAP_FLOATING_OVERFLOW 0xfffffffd
  103. #define GENTRAP_FLOATING_DIVIDE_BY_ZERO 0xfffffffc
  104. #define GENTRAP_FLOATING_UNDERFLOW 0xfffffffb
  105. #define GENTRAP_FLOATING_INVALID_OPERAND 0xfffffffa
  106. #define GENTRAP_FLOATING_INEXACT_RESULT 0xfffffff9
  107.  
  108. //
  109. // Call PAL mnemonics
  110. //
  111.  
  112. #define bpt 0x80
  113. #define callsys 0x83
  114. #define imb 0x86
  115. #define gentrap 0xaa
  116. #define rdteb 0xab
  117. #define kbpt 0xac
  118. #define callkd 0xad
  119.  
  120.