473,320 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 1973
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.