I want to create a symbol textequ itself:
a textequ <a>
but it was not possible.
Is there anyone know how to do it?
I just want to reset a symbol to what it really was
Posted on 2003-05-11 08:51:13 by taowen2002
Reset_Symbol MACRO sym:REQ

sym EQU <%sym>
ENDM

Oranges EQU <Grapes>

Apples EQU <Oranges>

% ECHO Apples

Reset_Symbol Apples

% ECHO Apples ; ERROR!

% ECHO Oranges ; this still works :)
Any attempt to use Apples results in an error - cannot resolve due to circular reference. :) This accually solves the problem of not being able to undefine an EQU or MACRO - thanks for the idea! PURGE doesn't work to undefine, but atleast this would produce an error if a symbol was used after being undefined, therefore:
UNDEFINE MACRO sym:REQ

sym EQU <%sym>
ENDM
...into the toolbox. :)

I should look at the listing of the assembler to see what is happening better.
Posted on 2003-05-11 10:32:55 by bitRAKE
Thank your! You always can understand my problem!
:alright:
Posted on 2003-05-11 19:42:32 by taowen2002