Hi everyone - the following Macro produces error messages when invoked. The SWITCH macro generates an error message that says: comma, colon, or end of line expected, and the CASE macro produces an error message that says: label or instruction expected at start of line.
%macro SWITCH 1
%push switch
%assign __curr 1
mov eax, %1
jmp %$loc(__curr) ;%$loc(__curr)
%endmacro
%macro CASE 1
%ifctx switch
%$__curr: ;loc(__curr):
%assign __curr __curr+1
mov ebx, %1
cmp eax, ebx
jne __curr ;%$loc(__curr)
%endif
%endmacro
I have been thru this code a whole bunch of times and can't see what ails it.
If anyone has a clue or suggestion, I would be grateful.
Ciao,
Mark Allyn