Mail Archives: djgpp/2000/04/30/18:14:21
What's "profiling"? Also, the routine in question, Draw_Line_HorizHere,
uses DS:EDI for the position of the line and ECX for the length. Any other
routine which might use the registers will be designed to interface with
other asm routines and probably use the registers a certain way
(AL=color/Value, EDI=destination, ECX=Length/X/Some kind of factor, EDX=Y,
etc.)
Steamer wrote:
> Joseph Rose wrote:
>
> >Also, how does fastcall work in DJGPP/DOS? I have a few functions that
> >use the registers for the parameters.
>
> You have a prototype like this:
>
> int foo(int arg1, int arg2) __attribute__ ((regparm(n)));
>
> where n = 1, 2 or 3 (the number of parameters passed in registers).
>
> Uses EAX, EDX and ECX (probably in that order, but you should check).
>
> You can't use this while profiling, however.
>
> S.
- Raw text -