In trying to resolve an interrupt crash problem I'm having, I noticed that the compiler output asm contains duplicate EQU assignments, ie, two variable names assigned to the same memory location. I'm using the latest build as of Aug 9. Is this a bug???
The duplicate EQUs aren't a problem, that's intentional. The reason is that some variables (for example, DELAYTEMP and SYSCALCTEMPX) will never be used at the same time. So, in order to save RAM, they can share a location.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In trying to resolve an interrupt crash problem I'm having, I noticed that the compiler output asm contains duplicate EQU assignments, ie, two variable names assigned to the same memory location. I'm using the latest build as of Aug 9. Is this a bug???
;Set aside memory locations for variables
DELAYTEMP EQU 112
DELAYTEMP2 EQU 113
SYSCALCTEMPX EQU 112
SYSDIVLOOP EQU 116
SYSSTRINGLENGTH EQU 118
SysCalcTempA EQU 117
SysCalcTempB EQU 121
SysSTATUS EQU 127
SysStringA EQU 119
SysStringA_H EQU 120
SysStringB EQU 114
SysStringB_H EQU 115
SysW EQU 126
SysWaitTemp10MS EQU 116
SysWaitTemp10US EQU 117
SysWaitTempMS EQU 114
SysWaitTempMS_H EQU 115
SYSSTRINGPARAM1 EQU 453
ENCINT EQU 32
K EQU 33
LCDBYTE EQU 34
LCDCOLUMN EQU 35
LCDLINE EQU 36
LCDREADY EQU 37
LCDVALUE EQU 38
LCDVALUETEMP EQU 39
PRINTLEN EQU 40
SYSPRINTTEMP EQU 41
StringPointer EQU 42
SysIFTemp EQU 43
SysIntOffCount EQU 44
SysPRINTDATAHandler EQU 45
SysPRINTDATAHandler_H EQU 46
SysTemp1 EQU 47
SysTemp2 EQU 48
Joe
Joe I see the same thing in my code. It does not crash though. Not sure it is a probelm or not. Ed.
The duplicate EQUs aren't a problem, that's intentional. The reason is that some variables (for example, DELAYTEMP and SYSCALCTEMPX) will never be used at the same time. So, in order to save RAM, they can share a location.