Mnemonic
STS |
Description
The values of the carry and overflow indicators are stored in bits 14 and 15, respectively, of the addressed core-storage word. Remaining bits of the addressed core-storage word are affected as follows:
Bits | Condition |
---|---|
0 through 7 | Unchanged |
8 through 13 | Reset to zeros |
The addressed core-storage word is usually a load-status instruction. Storing the values of the carry and overflow indicators in this word provides for setting these indicators to the stored values when the load-status instruction is subsequently executed. This procedure is used when, for example, a program routine is temporarily interrupted so that some other routine can be executed. Then, before a return to the interrupted routine, the load-status instruction can be executed to restore the carry and overflow indicators to their previous values.
The STS operation can be shown pictorially as follows:
There are no addressing exceptions for the store-status instruction; all forms of addressing that are described under "Effective-Address Generation" apply to the STS instruction.
Indicators: Both the carry and the overflow indicators are reset to zero as a result of execution of the STS instruction.
Examples
Store Status
Assembler Language Coding | Hexadecimal Value | Description of Instruction | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Label | Operation | F | T | ||||||||
|
|
32 | 33 | 35..40.. | |||||||
STS | DISP | 28XX | Store status of indicators in CSL at EA (I+DISP) | ||||||||
STS | 1 | DISP | 29XX | Store status of indicators in CSL at EA (XR1+DISP) | |||||||
STS | 2 | DISP | 2AXX | Store status of indicators in CSL at EA (XR2+DISP) | |||||||
STS | 3 | DISP | 2BXX | Store status of indicators in CSL at EA (XR3+DISP) | |||||||
STS | L | ADDR | 2C00XXXX | Store status of indicators in CSL at EA (Addr) | |||||||
STS | L | 1 | ADDR | 2D00XXXX | Store status of indicators in CSL at EA (Addr+XR1) | ||||||
STS | L | 2 | ADDR | 2E00XXXX | Store status of indicators in CSL at EA (Addr+XR2) | ||||||
STS | L | 3 | ADDR | 2F00XXXX | Store status of indicators in CSL at EA (Addr+XR3) | ||||||
STS | I | ADDR | 2C80XXXX | Store status of indicators in CSL at EA (V in CSL at Addr) | |||||||
STS | I | 1 | ADDR | 2D80XXXX | Store status of indicators in CSL at EA (V in CSL at "Addr+XR1") | ||||||
STS | I | 2 | ADDR | 2E80XXXX | Store status of indicators in CSL at EA (V in CSL at "Addr+XR2") | ||||||
STS | I | 3 | ADDR | 2F80XXXX | Store status of indicators in CSL at EA (V in CSL at "Addr+XR3") |
But wait, there's MORE...