This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Loop: compare, adrCurr, adrEnd, adrC cjump, adrC, report, continue ;; check if we reach the end continue: add, adrCurr, adrCurr, 1 compare, adrCurr, adrMax, adrC cjump, adrC, updateMax, Loop updateMax: add adrMax, adrCurr, 0 ;; update the maximum value jump Loop report: output, adrMax halt 4. For the width of PC, it depends on several factors: first, whether there is any instruction which will use the PC address. Second, whether the designer gives the specification on how big the memory is. In our case, since we’re told that our memory is limited to 255 addresses, we can use 8-bits for the PC. 5. Again, this answer is open to some variation, but some of the better ideas to change RSE would be to add extra instructions. For example, we can add useful operations including a branch when greater than zero....
View Full Document
This note was uploaded on 01/12/2011 for the course EECS 203 taught by Professor Wu during the Winter '08 term at Northwestern.
- Winter '08