Re: [fasm-help] Variable test
Brought to you by:
privalov
From: Tomasz G. <fa...@me...> - 2002-11-18 15:40:57
|
> macro testnumeric var > { > if +var eq var > display 'numeric',0 > else > display 'symbol',0 > end if > } > testnumeric 0 ; -> ok > testnumeric eax ;-> ok > testnumeric al ;-> Error: reserved word used as symbol This error come from the parser. "eax" is allowed in expressions, because it can be used as an addressing register (inside square brackets, after "ptr" operator, or after "at" operator with "label" and "virtual" directive), "al" can't and so is not allowed. -- Tomasz |