added macro "cmp"

git-svn-id: svn://kolibrios.org@5941 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
pathoswithin 2015-12-02 09:38:32 +00:00
parent 00c9a2265f
commit e94cdff57f

View File

@ -398,6 +398,19 @@ macro diff10 title,l1,l2
; optimize the code for size ; optimize the code for size
__regs fix <eax,ebx,ecx,edx,esi,edi,ebp,esp> __regs fix <eax,ebx,ecx,edx,esi,edi,ebp,esp>
macro cmp arg1,arg2
{
if (arg1 in __regs) & (arg2 eqtype 0)
if (arg2) = 0
test arg1,arg1
else
cmp arg1,arg2
end if
else
cmp arg1,arg2
end if
}
macro add arg1,arg2 macro add arg1,arg2
{ {
if (arg2 eqtype 0) if (arg2 eqtype 0)