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?