472,779 Members | 2,591 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,779 software developers and data experts.

Address Register?

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?

Please Help

Kumar

Jul 12 '06 #1
5 1940
ku********@gmail.com wrote:
I have just new to degugger.
Debuggers are off-topic.
It shows the data registers and address registers.
Sure.
Data registers contatin the data values for the different variables.
OK.
But what the address registers holds?
An address? Just a wild guess.
Does address register A1 holds the address for the Data register D1?
No, probably some other address.
what is the exact relationship between the data register and address
register?
This is a question that cannot be answered in terms of C++ language.
Please find a better newsgroup to ask your hardware-specific questions.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 12 '06 #2

<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
Jul 12 '06 #3
<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?
An address register will hold the value of the memory location of the
instruction to be executed, or where the Stack address, or the data address.
They are pointer values usually. The last time I studied registers was back
in the 80286 days, however, so the terminology may have changed.
Jul 12 '06 #4
ku********@gmail.com schrieb:
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?
There is no A1 or D1. There are no address registers. At least not on my
system. And not in the C++ language.
So ask in a newsgroup for your platform.

--
Thomas
Jul 12 '06 #5

ku********@gmail.com wrote:
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?
Looks like 680x0 assembly.

In that case, there should be 8 address registers and 8 data registers.
On this specific architecture, there are two sets of registers, and
operations operate on either set (or both sets), depending on the type
of operation.
That is : An assembly instruction which mentions the register number
(with only 3 bits) will implicitly (depending on its opcode) refer to
either Dx or Ax.

This system permits to have 16 registers and refer to registers with
only 3 bits, and thus have a more compact binary code.

Operations such as addition, multiplication, bitwise operators, etc.
use D0 to D7 (Data registers) as register operands, while A0 to A7 are
used as memory operands.

You can't understand the real meaning of these register values if you
don't learn this assembly language.
With Internet you can find a lot of tutorial or references about the
68000 assembly language.

Jul 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dan Williams | last post by:
Apologies for the cross-post but i thought i'd aim for the largest audience possible. I have a web site that users have to register to with their email address. The site then emails the user...
17
by: Sue | last post by:
<html> Is there someone here that can help me validate the period as the fourth from the last character in an email address. There is other information and validation on the form I have to do but...
35
by: hasho | last post by:
Why is "call by address" faster than "call by value"?
15
by: dandelion | last post by:
Hi, Just another question for the standards jockeys... Suppose I have an Interrupt Vector Table located at address 0x0000 (16-bit machine). I want to dump the context of the IVT, by treating...
27
by: Adam Warner | last post by:
Hi all, In the code snippet below I successfully determine the address of val1:* struct o val1=l_SYM_2B(&a).o; print_aesthetic(&val1); The structure o is heavyweight. I understand...
4
by: Selden McCabe | last post by:
Does anyone know how to determine the client's MAC address from within ASP.Net? I suppose it would have to be java or vb script running on the browser, but I haven't been able to find an...
7
by: Ancient_Hacker | last post by:
In days of old, for no discernible reason, many CPU's had the ability to execute one or more instructions out of registers. Not very common today. Which brings up a semi interesting point. ...
11
by: !truth | last post by:
Hi, i feel confused about the following program, and it's works to get a pointer-member's address. #define NETDEV_ALIGN 32 #define NETDEV_ALIGN_CONST (NETDEV_ALIGN - 1) ...
11
by: glenh | last post by:
I have a web app that is running a photo competition. Basically any user should be able to vote on a photo with a rating between 1 and 5. At the end of the competition the photo with the highest...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.