This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to use the symbol ?STACK in another file

In start.a51, there is defined a idata segment ?STACK.

?STACK  SEGMENT   IDATA


Now, in my asm file, I want to use the ?STACK to reset the SP,when using it directly as follows,

mov SP, #STACK-1


but there is an error: "error A45: UNDEFINED SYMBOL"

How can I do it, thanks.

Parents Reply Children
No data