[fpc-pascal] rotating bits
ppkk at mail.ru
Wed May 24 16:11:51 CEST 2006
> With register calling convention (which is the default calling convention
> in FPC 2.x), it can be reduced just to:
> function brol(b: byte; c: byte): byte; assembler; inline;
> rolb %cl,%al
> (and similarly for all the other functions). The first parameter goes to
> eax, the second to ecx, and the result is supposed to be in eax again.
Well, I am jealous of your knowledge of the calling conventions.
Did you notice, that in default compiler mode "mov %al,result" does not work?
Anyway, why don't introduce these functions?
More information about the fpc-pascal