Program Status Word

The Program status word (PSW) is an IBM System/360 architecture and successors control register which performs the function of a Status register and Program counter in other architectures, and more.

Although certain fields within the PSW may be tested or set by using non-privileged instructions, testing or setting the remaining fields may only be accomplished by using privileged instructions.

Contained within the PSW are certainly the zero (non-zero) and carry (borrow) flags and similar flags of other architectures' status registers, in this case encoded as a condition code with values from 0 to 15, representing the arithmetic sum of the four condition code bit values, 23 + 22 + 21 + 20.

The 64-bit PSW describes (among other things)

  • Interrupt masks
  • Privilege states
  • Condition code
  • Instruction address

In the early instances of the architecture (System/360 and early System/370), the instruction address was 24 bits; in later instances (late System/370), the instruction address was 31 bits plus a mode bit (24 bit addressing mode if zero; 31 bit addressing mode if one) for a total of 32 bits.

In the present instances of the architecture (z/Architecture), the instruction address is 64 bits and the PSW itself is 128 bits.

The PSW may be loaded by the LOAD PSW instruction (LPSW or LPSWE). Its contents may be examined with the Extract PSW instruction (EPSW).

Famous quotes containing the words program, status and/or word:

    The energy, the brutality, the scale, the contrast, the tension, the rapid change—and the permanent congestion—are what the New Yorker misses when he leaves the city.
    In New York City, U.S. public relief program (1935-1943)

    Anthropologists have found that around the world whatever is considered “men’s work” is almost universally given higher status than “women’s work.” If in one culture it is men who build houses and women who make baskets, then that culture will see house-building as more important. In another culture, perhaps right next door, the reverse may be true, and basket- weaving will have higher social status than house-building.
    —Mary Stewart Van Leeuwen. Excerpted from, Gender Grace: Love, Work, and Parenting in a Changing World (1990)

    Until recently the word fascist was considered shameful. Fortunately, that period has passed. In fact, there is now a reassessment of how much grandpa Benito did for Italy.
    Alessandra Mussolini, Italian actor, politician, and medical student. As quoted in Newsweek magazine, p. 19 (February 17, 1992)