hw1Sol - CSE 260 Digital Computers: Organization and...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
- 1 - 1. (10 points) The diagram below shows the contents of the washu-1 processor’s registers and memory. Show how the registers and memory change if the processor executes three instructions, starting from this state. The instruction at location 03A4 is an add (A3A1) and the value at location 03A1 is FFFF (-1), so ACC becomes 213C. The next instruction is an indirect store (53AA), so the IAR is loaded with the contents of 03AA, which is 03A2 and so the ACC value gets stored in location 03A2. The next instruction is a branch-on-positive (852E). Since the ACC value is positive, the branch is taken, making the PC=052E. The final state of the processor and memory is shown below. CSE 260 – Digital Computers: Organization and Logical Design Homework 1 Solutions Jon Turner Memory IREG PC ACC IAR Processor 03A1 03A2 03A3 03A4 03A5 03A6 03A7 03A8 03A9 03AA 123C 03A4 213D 3215 FFFF 0012 12C5 A3A1 53AA 852E 2314 37BC BD89 03a2 Memory IREG PC ACC IAR Processor 03A1 03A2 03A3 03A4 03A5 03A6 03A7 03A8 03A9 03AA 852E 052E 213C 03A2 FFFF 213c 12C5 A3A1 53AA 852E 2314 37BC BD89 03a2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
- 2 - 2. (15 points) This problem can be done in groups of 2 or 3. Work together. The program below
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

hw1Sol - CSE 260 Digital Computers: Organization and...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online