L> There is this page which might help some
L> http://www.merlyn.demon.co.uk/del-bits.htm
Thank you, it was interesting.
But it was not very helpful.
It's interesting, that they don't seem to care much about rotating
bytes or words. (Asm rotating 64-bits was fascinating!)
__
Jonas Maebe wrote:
> On 24 mei 2006, at 17:09, ����
�О�а�ов�киК 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
On 24 mei 2006, at 17:09, Пётр Косаревский 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
Did y
> 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;
> asm
> rolb %cl,%al
> end;
> (and similarly for all the other functions). The first parameter goes to
> eax, the seco
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,
> 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;
> asm
> rolb %cl,%al
> end;
> (and similarly for all the other functions). The first parameter goes to
> eax, the seco