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...
|