SE547: Homework 9

Deadline: 5.30pm, Thursday 11 March 2004.

Last homework.

Homework

Consider the following Alpha machine code program:

1 ADDQ r1, 8, r2
2 LDQ r3 0(r1)
3 LDQ r4 0(r2)
4 ADDQ r3, r4, r5
5 STQ r5 8(r2)
6 RET

1. Give the execution steps of this program starting from pc 1 with initial store:

  ( r1 = 8, r2 = 7, r3 = 1, r4 = 18, r5 = 2, rm = { 1, 2, 3, 4 } )

2. Assuming that Post is true, calculate VC1 through VC6.

Submit your answers as a text, html, pdf or image file using Courses On Line.