Chapter 4: The Instruction Set Architecture - 10/31/2013 02:13:31 ...
Chapter 4: The Instruction Set Architecture - 10/31/2013 02:13:31 ...
Chapter 4: The Instruction Set Architecture - 10/31/2013 02:13:31 ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4-20<br />
<strong>Chapter</strong> 4: <strong>The</strong> <strong>Instruction</strong> <strong>Set</strong> <strong>Architecture</strong><br />
One, Two, Three-Address Machines<br />
• Two Address <strong>Instruction</strong>s: In a two-address instruction, one of the<br />
operands is overwritten by the result. Here, the code for the expression<br />
A = B*C + D is:<br />
load<br />
mult<br />
add<br />
B, A<br />
C, A<br />
D, A<br />
<strong>The</strong> program size is now 3×(1+2×2) or 15 bytes. Memory traffic is<br />
15 + 2×2 + 2×2×3 or <strong>31</strong> bytes.<br />
Principles of Computer <strong>Architecture</strong> by M. Murdocca and V. Heuring<br />
© 1999 M. Murdocca and V. Heuring