Hello,

Oeps I wrote a bug in the Max3. This one is better:

function Max3(a, b, c: integer): integer;
asm
   cmp eax, edx
   jl  @less
   mov edx, ecx
   jmp @again
@less:
   mov eax, ecx
@again:
   cmp eax, edx
   jl  @done
   ret
@done:
   mov eax, edx
end;

---
Rgds, Wilfried
http://www.mestdagh.biz

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to