Re: [fasm-help] Variable test
Brought to you by:
privalov
From: Tomasz G. <fa...@me...> - 2002-11-19 20:56:24
|
Tuesday, November 19, 2002, 10:09:32 AM, you wrote: ST> J'm using the next macro: > May be another way for numeric variable test? "var2 eq +var2" is not a test for number, it can only distinquish the quoted string data from a standard number. In your case you probably want to distinguish the register from number. Maybe you should define also "REGISTERS equ al,bl,cl,dl,ah,bh,ch,dh,ax,bx,cx,dx,eax,ebx,ecx,edx,si,di,esi,edi" and then do the check: "if var1 in <REGISTERS> & ~ var2 in <REGISTERS>". -- Tomasz |