102 Computer Architecture and Organization
is carried out immediately after receiving the instruction byte within the processor. In other words, for every
case, instruction decoding is done at the end of the rst machine cycle. Does it not demand any extra time?
Well it depends. If it is a hardware-based decoding, then it does not need any extra time. However, in case of
micro-programming, it would consume one or two extra T-states. For example, Intel 8085 spends four T-states
for fetching the rst instruction byte during its rst machine cycle, while for subsequent machine cycles it
spends only three T-states. As a matter of fact, in its rst machine cycle rst three T-states are suf cient for
fetching the rst byte of instruction. Next T-state of the rst machine cycle is devoted for instruction decoding.
As the answer of the second question, we can say that the data would be incremented either at the end
of second machine cycle or at the beginning of the third machine cycle, depending upon the processor.
Here also, the adopted technique plays an important role.
5.3.6 Timings, Control and Response
Through the above discussions, it must be clear to the reader that timing and control play very important
roles in smooth and ef cient functioning of any processor. To further explain this concept, we may take
up the example of interrupt .
Although we shall have a detailed discussions on interrupt in Section 5.6, it may be introduced here
as an external asynchronous signal, which forces the processor to carry out something special for it by
branching to a pre-de ned address and, thus, executing a special program segment, known as inter-
rupt service routine (ISR). As this is an asynchronous signal, it may be activated at any time during
the execution of any instruction by the processor. However, the processor cannot leave an instruction’s
execution half-way to start doing something else for the sake of such an interrupting signal.
To solve this problem, processors reserve a particular time-slot for checking the existence of any inter-
rupt input signal during the execution of each and every instruction. For example, Intel 8085 processor
had reserved the penultimate T-state of the last machine cycle of any instruction for this interrupt signal
checking. If it is present, then the next instruction would not be executed immediately and the processor
would start executing from the interrupt’s ISR. We shall discuss more about it in the Section 5.6. However,
the modi ed owchart of the instruction cycle is presented in Figure 5.9 , where the previously explained
portion is shaded. The reader may compare it with Figure 5.6 .
5.4 REGISTER SET
To perform internal operations, all processors offer some internal registers, which can store temporary
information or some operands. Similar to read/write memory, these registers are nothing but a combina-
tion of several ip- ops. Most of these registers are user (programmer) accessible and a few are not.
The number of user accessible registers varies from processor to processor. Those processors that are
Figure 5.8 Example of instruction cycle, machine cycle and T-state correlation
M05_GHOS1557_01_SE_C05.indd 102M05_GHOS1557_01_SE_C05.indd 102 4/29/11 5:06 PM4/29/11 5:06 PM