Halt and I/O
| |
|
Operation:
| |
If halt bit set then halt program execution.
If L bit set then read switches into specified register.
|
Description:
| |
The Halt and I/O instruction can accomplish three tasks:
- When (H) is set, program execution is halted.
- When (L) is set, the switches are loaded into the specified destination register.
This can be done either indepentendly or in conjunction with halting.
- Finally, the instruction has the implicit capability to provide a NOP command.
When neither halt (H) nor I/O (L) are set, no operation is performed.
|
Instruction Format:
| |
|
1 | 1 | 0 | 0 | L | H | Dreg |
Bit addresses | 7 | 6 | 5 | 4 |
3 | 2 | 1 0 |
|
Instruction Fields:
| |
L:
| |
The L field specified to load when set to 1.
|
H:
| |
The H field specified to halt program execution when set to 1.
|
Dreg:
| |
Two-bit binary number specifying destination (target) register.
|
|