home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / program / language / as / source / h / option < prev    next >
Encoding:
Text File  |  1993-10-03  |  1.9 KB  |  91 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 optionCondOptPrecRound(void);
  23. WORD optionCondPrec_P(void);
  24. WORD optionCondL(void);
  25.  
  26. WORD optionLinkCond(void);
  27. WORD optionExceptionCond(void);
  28.  
  29. #define optionError ((WORD) -1)
  30.  
  31. #define EQ  ((WORD)0<<28)
  32. #define NE  ((WORD)1<<28)
  33. #define CS  ((WORD)2<<28)
  34. #define CC  ((WORD)3<<28)
  35. #define MI  ((WORD)4<<28)
  36. #define PL  ((WORD)5<<28)
  37. #define VS  ((WORD)6<<28)
  38. #define VC  ((WORD)7<<28)
  39. #define HI  ((WORD)8<<28)
  40. #define LS  ((WORD)9<<28)
  41. #define GE ((WORD)10<<28)
  42. #define LT ((WORD)11<<28)
  43. #define GT ((WORD)12<<28)
  44. #define LE ((WORD)13<<28)
  45. #define AL ((WORD)14<<28)
  46. #define NV ((WORD)15<<28)
  47.  
  48. #define HS CS
  49. #define LO CC
  50.  
  51. #define S_FLAG ((WORD) 1<<20)
  52.  
  53. #define T_FLAG ((WORD) 1<<21)
  54. #define B_FLAG ((WORD) 1<<22)
  55. #define P_FLAG ((WORD)15<<12)
  56. #define L_FLAG B_FLAG
  57.  
  58. #define LINK_BIT     ((WORD)1<<24) 
  59. #define EXEPTION_BIT ((WORD)0x00400000)
  60.  
  61. #define IB ((WORD)0x01800000)
  62. #define IA ((WORD)0x00800000)
  63. #define DB ((WORD)0x01000000)
  64. #define DA ((WORD)0x00000000)
  65.  
  66. #define PRECISION_SINGLE    ((WORD)0x00000000)
  67. #define PRECISION_DOUBLE    ((WORD)0x00000080)
  68. #define PRECISION_EXTENDED  ((WORD)0x00080000)
  69.  
  70. #define PRECISION_MEM_SINGLE    ((WORD)0x00000000)
  71. #define PRECISION_MEM_DOUBLE    ((WORD)0x00008000)
  72. #define PRECISION_MEM_EXTENDED  ((WORD)0x00400000)
  73. #define PRECISION_MEM_PACKED    ((WORD)0x00408000)
  74.  
  75. #define ROUND_NEAREST       ((WORD)0x00)
  76. #define ROUND_PLUSINF       ((WORD)0x20)
  77. #define ROUND_MINUSINF      ((WORD)0x40)
  78. #define ROUND_ZERO          ((WORD)0x60)
  79.  
  80.  
  81. #define REG_FLAG ((WORD)1<<25)
  82. #define PRE_FLAG ((WORD)1<<24)
  83. #define UP_FLAG  ((WORD)1<<23)
  84.  
  85. #define WB_FLAG  T_FLAG
  86.  
  87. #define FORCE_FLAG ((WORD)1<<22)
  88.  
  89.  
  90. #endif
  91.