0 Replies - 460 Views - Last Post: 27 January 2012 - 12:29 AM Rate Topic: -----

Topic Sponsor:

#1 david2012  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 18-November 11

LC-3 machine language

Posted 27 January 2012 - 12:29 AM

I am having problem trying to understand this problem, would you guys give me some advice or head up, thanks! I am just asking for help, not asking for the answer, just need to know how to do it.

This is an LC-3 program , Shown below are the partial contents of memory locations x3000 to x3006.

15 0
x3000 0 0 1 0 0 0 0
x3001 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 1
x3002 1 0 1 1 0 0 0
x3003
x3004 1 1 1 1 0 0 0 0 0 0 1 0 0 1 0 1
x3005 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0
x3006


The PC contains the value x3000, and the RUN button is pushed.

As the program executes, we keep track of all values loaded into the MAR. Such a record is often referred to as an address trace. It is shown below.

MAR Trace
x3000
x3005
x3001
x3002
x3006
x4001
x3003
x0021

Your job: Fill in the missing bits in memory locations x3000 to x3006.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1