1
2
3
4
5
6
7
8
9 #ifndef _CONTROLW_H_
10 #define _CONTROLW_H_
11
12 #ifdef __ASSEMBLER__
13 #define _Const_(x) $##x
14 #else
15 #define _Const_(x) x
16 #endif
17
18 #define CW_RC _Const_(0x0C00)
19 #define CW_PC _Const_(0x0300)
20 #define CW_PM _Const_(0x0020)
21 #define CW_UM _Const_(0x0010)
22 #define CW_OM _Const_(0x0008)
23 #define CW_ZM _Const_(0x0004)
24 #define CW_DM _Const_(0x0002)
25 #define CW_IM _Const_(0x0001)
26 #define CW_EXM _Const_(0x007f)
27
28 #define RC_RND _Const_(0x0000)
29 #define RC_DOWN _Const_(0x0400)
30 #define RC_UP _Const_(0x0800)
31 #define RC_CHOP _Const_(0x0C00)
32
33 #endif _CONTROLW_H_