World's most popular travel blog for travel bloggers.

[Solved]: categories of registers and and storage in them

, , No Comments
Problem Detail: 

The Wikipedia article on processor registers mentions:

Address registers hold addresses and are used by instructions that indirectly access primary memory.

Which addresses does this sentence refer to?

Asked By : Registered User

Answered By : Karolis Juodelė

RAM addresses or addresses of I/O devices. For example, in x86 architecture an IP (instruction pointer) register holds the memory address of the next instruction that is going to be read and executed. This register cannot be accessed directly (it can be modified by jumps though). Also, in x86 an SP (stack pointer) register shows the top of the stack structure (mostly used to hold local variables of functions) and is implicitly modified by push, pop, call, ret instructions (and interrupts). Of course, there are more examples.

Best Answer from StackOverflow

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

0 comments:

Post a Comment

Let us know your responses and feedback