If you want to make money online : Register now

What memory locations will the CPU fetch instructions from with instruction length of 16bits

, , No Comments
Problem Detail: 

While reading Stallings OS Internals and Design, I run into problem. Here is example from the book.

For example, consider a simplified computer in which each instruction occupies one 16-bit word of memory. Assume that the PC is set to the location 300. On succeeding instruction cycles, it will fetch instructions from locations 301, 302, ...

My question is: If the length of instructions is 16bits, and the smallest addressable unit of the memory is 1B, why on succeeding instruction cycles it will fetch instructions from locations 301 and 302, and not multiples of two, 302 and 304?

Is the memory then organised as a sequence of 16bit long memory words?

Asked By : Matti
Answered By : Gaurav

I too read the book. If Dr. Stallings has quoted this, the memory locations 301 and 302 must be referring to word-wise and not byte-wise locations.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/22161

3200 people like this

 Download Related Notes/Documents

0 comments:

Post a Comment

Let us know your responses and feedback