[fpc-pascal] rotating bits

Jonas Maebe jonas.maebe at elis.ugent.be
Wed May 24 17:06:33 CEST 2006

On 24 mei 2006, at 16:11, Пётр Косаревский wrote:

>> function brol(b: byte; c: byte): byte; assembler; inline;
>> asm
>>   rolb  %cl,%al
>> end;
>> (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.
>> Tomas
> 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?

That is by design. "result" only works in Delphi and ObjFPC modes.  
Otherwise you should use the function name instead of "result".


More information about the fpc-pascal mailing list