Assembly Question: No constant symbol equates?
Rayman
Posts: 14,789
Maybe I'm missing something, but how can I define a constant number to a symbol so that I can use it over and over without using any memory?
Know what I mean?· With a different MCU, I'd use a compiler directive like:
ThisConstant EQU 5
and then I could use it like this:
ADD A,#ThisConstant
It appears to me that this doesn't exist with this compiler.· Am I wrong?· In the examples I've seen, people are doing:
ThisConstant LONG 5
This does the same thing, but uses up memory...
Know what I mean?· With a different MCU, I'd use a compiler directive like:
ThisConstant EQU 5
and then I could use it like this:
ADD A,#ThisConstant
It appears to me that this doesn't exist with this compiler.· Am I wrong?· In the examples I've seen, people are doing:
ThisConstant LONG 5
This does the same thing, but uses up memory...
Comments
Graham