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

BASEPRI defined in line 23; used 2 times
PS_ALLCC defined in line 8; used 2 times
PS_BR1 defined in line 15; never used
PS_BR2 defined in line 16; never used
PS_BR3 defined in line 17; never used
PS_BR4 defined in line 18; used 1 times
PS_BR5 defined in line 19; used 1 times
PS_BR6 defined in line 20; used 1 times
PS_BR7 defined in line 21; used 8 times
PS_C defined in line 4; used 2 times
PS_CURMOD defined in line 10; used 5 times
PS_IPL defined in line 12; used 1 times
  • in line 23
PS_N defined in line 7; never used
PS_PRVMOD defined in line 11; used 5 times
PS_V defined in line 5; never used
PS_Z defined in line 6; never used
USERMODE defined in line 24; used 3 times

Usage of this include

Last modified: 1983-09-02
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 896
Valid CSS Valid XHTML 1.0 Strict