473,587 Members | 2,479 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1990
ku********@gmai l.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********@gma il.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.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********@gma il.comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.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********@gmai l.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********@gmai l.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
5664
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 their password via Exchange 2000 and ASP/VBScript and CDO. Does anyone know if its possible to verify that the email address exists before sending the email, rather than me having to send the email and only discovering that the user has input an...
17
4899
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 the period in the email address is the only part I am having problems with. I have posted part of my code below. Any help would be greatly appreciated. THANKS !
35
10757
by: hasho | last post by:
Why is "call by address" faster than "call by value"?
15
2227
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 it as an array starting at (you guessed it) 0x0000. So I would have struct iv_s* ivt = (struct iv_s *) 0x0000;
27
2221
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 (hopefully correctly) that (barring compiler optimisations) C will shallow copy the structure into val1.
4
9417
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 example... Thanks, ---Selden McCabe
7
1414
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. We know the "register" keyword suggests the compiler keep the following variable in a register. We also have the "inline" suggestion in C++ to suggest inlining a
11
3374
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) static inline void *netdev_priv(struct net_device *dev) { return (char *)dev + ((sizeof(struct net_device)+ NETDEV_ALIGN_CONST)
11
2153
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 average rating wins the competition. To make things fair we would like to restrict a user from only voting on any one photo only once. However to encourage voting we dont want to have to force users to register/signup. So we thought perhaps...
0
7923
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7852
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
3845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.