<ku********@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
>I have just new to degugger.
It shows the data registers and address registers.
Data registers contatin the data values for the different variables.
But what the address registers holds?
Does address register A1 holds the address for the Data register D1?
what is the exact relationship between the data register and address
register?
Registers and other hardware-related information are completely hardware and
operating-system specific, and thus off-topic in this newsgroup, which
discusses C++ language issues.
You might want to get a book on general desktop computer architecture, if
you're curious. Or one specific to your system.
[Off-Topic info follows]
In general, an address register contains an address in memory where data is
being read from or written to.
So, you may have an assignment statement in your C++ code, which has been
compiled into some form of memory write statement in machine code, and the
destination address of that machine code statement could get stored in an
address register. When the op-code is executed, the data gets written to
that address in memory.
But given that you're in a debugger, a displayed address register may show
an address that was already written to, or one about to be written to, or
nothing of particular interest to you at that moment. It's really all
dependent on the architecture of your system and the way your IDE displays
data.
-Howard