deleted macros add, sub, cmp

git-svn-id: svn://kolibrios.org@5942 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
pathoswithin 2015-12-02 10:06:10 +00:00
parent e94cdff57f
commit 15762db0e4

View File

@ -398,45 +398,6 @@ 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
{
if (arg2 eqtype 0)
if (arg2) = 1
inc arg1
else
add arg1,arg2
end if
else
add arg1,arg2
end if
}
macro sub arg1,arg2
{
if (arg2 eqtype 0)
if (arg2) = 1
dec arg1
else
sub arg1,arg2
end if
else
sub arg1,arg2
end if
}
macro mov arg1,arg2 macro mov arg1,arg2
{ {
if (arg1 in __regs) & ((arg2 eqtype 0) | (arg2 eqtype '0')) if (arg1 in __regs) & ((arg2 eqtype 0) | (arg2 eqtype '0'))