using macros in pic microcontrollers
Posted on 2006-07-13
I am new to coding in assembly language for pics.
I have the following code below. What appears to be happening is the memory address of Count and Count2 are xor'ed together rather than what is contained in those variables. If I pass two literals values and change the macro use literals instead the desired result is achieved of determining if the two variables are equal in value.
As it stands it just just determines if the location of the variables is at the same memory address, which is not desired....
Thank you in advance for any help.
btfsc Flag,E ;
Macro which in included from another file
EqualF macro par1, par2