home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / assembler / as / src / h / option < prev    next >
Encoding:
Text File  |  1992-07-20  |  1.9 KB  |  90 lines

  1.  
  2. /*
  3.  * option.h
  4.  * Copyright © 1992 Niklas Röjemo
  5.  */
  6.  
  7. #ifndef _option_h
  8. #define _option_h
  9.  
  10. #ifndef _global_h
  11. #include "global.h"
  12. #endif
  13.  
  14. WORD optionCond(void);
  15. WORD optionCondS(void);
  16. WORD optionCondSP(void);
  17. WORD optionCondB(void);
  18. WORD optionCondBT(void);
  19. WORD optionCondDirLdm(void);
  20. WORD optionCondDirStm(void);
  21. WORD optionCondPrecRound(void);
  22. WORD optionCondPrec_P(void);
  23. WORD optionCondL(void);
  24.  
  25. WORD optionLinkCond(void);
  26. WORD optionExceptionCond(void);
  27.  
  28. #define optionError ((WORD) -1)
  29.  
  30. #define EQ  ((WORD)0<<28)
  31. #define NE  ((WORD)1<<28)
  32. #define CS  ((WORD)2<<28)
  33. #define CC  ((WORD)3<<28)
  34. #define MI  ((WORD)4<<28)
  35. #define PL  ((WORD)5<<28)
  36. #define VS  ((WORD)6<<28)
  37. #define VC  ((WORD)7<<28)
  38. #define HI  ((WORD)8<<28)
  39. #define LS  ((WORD)9<<28)
  40. #define GE ((WORD)10<<28)
  41. #define LT ((WORD)11<<28)
  42. #define GT ((WORD)12<<28)
  43. #define LE ((WORD)13<<28)
  44. #define AL ((WORD)14<<28)
  45. #define NV ((WORD)15<<28)
  46.  
  47. #define HS CS
  48. #define LO CC
  49.  
  50. #define S_FLAG ((WORD) 1<<20)
  51.  
  52. #define T_FLAG ((WORD) 1<<21)
  53. #define B_FLAG ((WORD) 1<<22)
  54. #define P_FLAG ((WORD)15<<12)
  55. #define L_FLAG B_FLAG
  56.  
  57. #define LINK_BIT     ((WORD)1<<24) 
  58. #define EXEPTION_BIT ((WORD)0x00400000)
  59.  
  60. #define IB ((WORD)0x01800000)
  61. #define IA ((WORD)0x00800000)
  62. #define DB ((WORD)0x01000000)
  63. #define DA ((WORD)0x00000000)
  64.  
  65. #define PRECISION_SINGLE    ((WORD)0x00000000)
  66. #define PRECISION_DOUBLE    ((WORD)0x00000080)
  67. #define PRECISION_EXTENDED  ((WORD)0x00080000)
  68.  
  69. #define PRECISION_MEM_SINGLE    ((WORD)0x00000000)
  70. #define PRECISION_MEM_DOUBLE    ((WORD)0x00008000)
  71. #define PRECISION_MEM_EXTENDED  ((WORD)0x00400000)
  72. #define PRECISION_MEM_PACKED    ((WORD)0x00408000)
  73.  
  74. #define ROUND_NEAREST       ((WORD)0x00)
  75. #define ROUND_PLUSINF       ((WORD)0x20)
  76. #define ROUND_MINUSINF      ((WORD)0x40)
  77. #define ROUND_ZERO          ((WORD)0x60)
  78.  
  79.  
  80. #define REG_FLAG ((WORD)1<<25)
  81. #define PRE_FLAG ((WORD)1<<24)
  82. #define UP_FLAG  ((WORD)1<<23)
  83.  
  84. #define WB_FLAG  T_FLAG
  85.  
  86. #define FORCE_FLAG ((WORD)1<<22)
  87.  
  88.  
  89. #endif
  90.