138
2.5
Number of Execution States
The tables here can be used to calculate the number of states required for instruction execution.
Table 2-3 indicated the number of states required for each cycle (instruction fetch, branch
address read, stack operation, byte data access, word data access, internal operation). Table 2-4
indicates the number of cycles of each type occurring in each instruction.. The total number of
states required for execution of an instruction can be calculated from these two tables as follows:
Execution states=I
×
S
I
+J
×
S
J
+K
×
S
K
+L
×
S
L
+M
×
S
M
+N
×
S
N
Examples:
When instruction is fetched from on-chip ROM, and an on-chip RAM is
accessed.
1. BSET #0, @'FF00
From table 2-4:
I=L=2, J=K=M=N=0
From table 2- 3:
S
I
= 2, S
L
= 2
Number of states required for execution = 2
×
2 + 2
×
2 = 8
When instruction is fetched from on-chip ROM, branch address is read from on-chip ROM,
and on-chip RAM is used for stack area.
2. JSR @@ 30
From table 2-4:
I=2, J=K= 1, L=M=N=0
From table 2-3:
S
I
=S
J
=S
K
=2
Number of states required for execution = 2
×
2 + 1
×
2 + 1
×
2 = 8
Table 2-3. Number of States Taken by Each Cycle in Instruction Execution
Access Location
Execution Status
(instruction cycle)
On-Chip Memory
On-Chip Peripheral Moduel
Instruction fetch S
I
Branch address read S
J
Stack operation S
K
2
Byte data access S
L
2 or 3*
Word data access S
M
Internal operation S
N
1
*
Depends on which on-chip module is accessed. See the applicable hardware manual for
details.
Содержание H8/300L Series
Страница 1: ...H8 300L Series Programming Manual ...
Страница 6: ...iv ...
Страница 8: ...2 ...
Страница 11: ......
Страница 14: ......
Страница 46: ......
Страница 48: ......
Страница 60: ......
Страница 83: ......
Страница 116: ......
Страница 150: ...144 ...
Страница 151: ......
Страница 156: ...150 ...