1: /*
2: * PDP 11 program status word definitions
3: */
4: #define PS_C 0000001 /* carry bit */
5: #define PS_V 0000002 /* overflow bit */
6: #define PS_Z 0000004 /* zero bit */
7: #define PS_N 0000010 /* negative bit */
8: #define PS_ALLCC 0000017 /* all condition code bits on (unlikely) */
9: #define PS_T 0000020 /* trace enable bit */
10: #define PS_CURMOD 0140000 /* current mode ( all on is user ) */
11: #define PS_PRVMOD 0030000 /* previous mode ( all on is user ) */
12: #define PS_IPL 0000340 /* interrupt priority */
13: #define PS_USERCLR 0000340 /* bits that must be clear in user mode */
14: #define PS_BR0 0000000 /* bus request level 0 */
15: #define PS_BR1 0000040 /* bus request level 1 */
16: #define PS_BR2 0000100 /* bus request level 2 */
17: #define PS_BR3 0000140 /* bus request level 3 */
18: #define PS_BR4 0000200 /* bus request level 4 */
19: #define PS_BR5 0000240 /* bus request level 5 */
20: #define PS_BR6 0000300 /* bus request level 6 */
21: #define PS_BR7 0000340 /* bus request level 7 */
22:
23: #define BASEPRI(ps) (((ps) & PS_IPL) == 0)
24: #define USERMODE(ps) (((ps) & (PS_CURMOD|PS_PRVMOD)) == (PS_CURMOD|PS_PRVMOD))
Defined macros
PS_C
defined in line
4; used 2 times
PS_N
defined in line
7;
never used
PS_T
defined in line
9; used 4 times
PS_V
defined in line
5;
never used
PS_Z
defined in line
6;
never used
Usage of this include