请输入您要查询的百科知识:

 

词条 Program status word
释义

  1. References

{{Refimprove|date=August 2011}}

The program status word[1][2] (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 the two bit condition code, representing zero, positive, negative, overflow, and similar flags of other architectures' status registers. Conditional branch instructions test this encoded as a four bit value, with each bit representing a test of one of the four condition code values, 23 + 22 + 21 + 20. (Since IBM uses big-endian bit numbering, mask value 8 selects code 0, mask value 4 selects code 1, mask value 2 selects code 2, and mask value 1 selects code 3.)

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 (XA/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).

References

1. ^{{cite manual | author= | title=IBM System/360 Principles of Operation | section= |sectionurl= | version=EIGHTH EDITION | publisher=IBM | date=September 1968 | url=http://www.bitsavers.org/pdf/ibm/360/princOps/A22-6821-7_360PrincOpsDec67.pdf | format=PDF | id=A22-6821-7 |accessdate= | quote= | page = | pages = | ref =}}
2. ^{{cite manual | author= | title=z/Architecture Principles of Operation | section= |sectionurl= | version=Tenth Edition | publisher=IBM | date=September 2012 | url=http://publibfi.boulder.ibm.com/epubs/pdf/dz9zr009.pdf | format=PDF | id=SA22-7832-09 |accessdate= | quote= | page = | pages = | ref =}}
{{DEFAULTSORT:Status Register}}{{computer-hardware-stub}}{{comp-sci-stub}}

4 : Control flow|Central processing unit|Digital registers|IBM System/360 mainframe line

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/22 15:43:51