13.07.2015 Views

The Midterm Solution - Suraj @ LUMS - Lahore University of ...

The Midterm Solution - Suraj @ LUMS - Lahore University of ...

The Midterm Solution - Suraj @ LUMS - Lahore University of ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>The</strong> initial state <strong>of</strong> the memory (in hexadecimal notation) is detailed on page 6.Suppose the program counter is initialized so that the instruction at location 100h isexecuted first.Step through the program, updating the appropriate registers and memory locations,until the Halt instruction is reached.Answer the questions using the table provided on the next page detailing the initial contents <strong>of</strong>memory. You may also use the reverse side for rough work if necessary.a) What is the value <strong>of</strong> memory location 11Ah?_________0003 h_________b) What is the value <strong>of</strong> memory location 11Ch?_________0008 h or 0005 h______c) What is the value <strong>of</strong> memory location 11Eh?_________0003 h_______________d) What is the value <strong>of</strong> memory location 120h?_________000A h_______________e) What is the value <strong>of</strong> memory location 122h?_________0002 h_________________________f) What is the value <strong>of</strong> memory location 124h?_________0004 h_________________________PTOPage 6 <strong>of</strong> 16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!