Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

IR, the PC , the MAR , the MDR ,and A


  • Please log in to reply

#1
G!RL

G!RL

    New Member

  • Member
  • Pip
  • 7 posts
hi :tazz:


i hope to find any one solve my problems with computing course this symster ;)

THE PROBLEM:

7.2 suppose that the following instructions are found at given locations in memory :
20 LDA 50
21 ADD 51
50 724
51 006
a. show the content of the IR, the PC , the MAR , the MDR ,and A at the conclusion of instruction 20 .





b. Show the contents of each register as each step of the fetch-execute cycle is
performed for instruction 21.


How i can find it?? tell my the way plzzzzz
  • 0

Advertisements


#2
Verst

Verst

    Member

  • Member
  • PipPip
  • 11 posts
20 LDA 50
21 ADD 51
50 724
51 006
I'm writing this by memory so check out the info before you use it...
The IR (Instruction Register) stores the machine code of the current order (code understandable to the processor). Don't know what's the code of the LDA order (load the number at the memory location 50 into register A). You probably have that information somewhere. The PC (Program Counter) is a kind of a pointer that tells the processor where the next instruction is (in the computers memory). It always points at the instruction that comes after the current one. So it probably stores 21.
Can't figure out what MAR and MDR are. Probably registers that stand between the processor and the bus, and are used for temporary storage of data and memory addresses before the processor or the bus can take them.
A is one of the processors registers, at the end of instruction 20 it probably stores the number 724.
Can't answer the b part of the question because it depends on the type of the processor, plus the above should be enough for you to figure out how fetch-execute cycle is performed after reading the literature that came with the course:)
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP