Re: [fasm-help] Variable test
Brought to you by:
privalov
From: <ult...@no...> - 2002-11-19 14:32:54
|
UNSUBSCRIBE ----- Original Message ----- From: "Serge Tserkovitsky" <ts...@ra...> To: <fas...@li...> Sent: Tuesday, November 19, 2002 2:09 PM Subject: [fasm-help] Variable test > J'm using the next macro: > > macro _compare var1,cond,var2 > { > if ~ ( cond in <CMP_OPPCODES,CMP_BITS,CMP_NBITS> ) > _error 'unavailable compare instruction' > else if ( cond in <CMP_BITS,CMP_NBITS> ) > test var1,var2 > else if ( var1 in <al,bl,cl,dl,ah,bh,ch,dh,ax,bx,cx,dx,eax,ebx,ecx,edx,si,di,esi,edi> ) & ( var2 eq +var2 ) > if ~ var2 > test var1,var1 > else > cmp var1,var2 > end if > else > cmp var1,var2 > end if > } > > Parser error if var2 in <al,ah> etc. > May be another way for numeric variable test? > > With many thanks, S.Tserkovitsky > ts...@ra... > > > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: To learn the basics of securing > your web site with SSL, click here to get a FREE TRIAL of a Thawte > Server Certificate: http://www.gothawte.com/rd524.html > _______________________________________________ > Fasm-help mailing list > Fas...@li... > https://lists.sourceforge.net/lists/listinfo/fasm-help > |