Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly Language > What does the "...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 5007 of 5113
Post > Topic >>

What does the "equ" command mean?

by Jason Hsu <jason_hsu@[EMAIL PROTECTED] > May 12, 2008 at 06:11 PM

I thought that the expression "x equ y" means that the value of x is
stored at address y.  But I've noticed that an example of working code
(for the 16C71 PIC microcontroller) has the following two lines in the
code:
****ta equ 0x05
rp0 equ 5

To take a look at the example I'm talking about, go to
http://www.arrl.org/files/qst-binaries/picswr.zip

and read the file Pic_swr.asm.

What exactly am I missing?  As I understand it 0x05 is the hexadecimal
expression of 5.  It looks to me that the value of the variable ****ta
is being stored in address 5.  But a few lines later, the variable rp0
is being stored in address 5.  That doesn't look right to me.

So what's going on?  Is the code in error, or am I misinterpreting or
overlooking something?
 




 3 Posts in Topic:
What does the "equ" command mean?
Jason Hsu <jason_hsu@[  2008-05-12 18:11:15 
Re: What does the "equ" command mean?
"Bill Leary" &l  2008-05-13 01:10:58 
Re: What does the "equ" command mean?
"Bill Leary" &l  2008-05-13 07:23:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Sep 6 15:39:28 CDT 2008.