fpc/tests/tbs/tb0367.pp
fpc 790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00

28 lines
382 B
ObjectPascal

{ %CPU=i386 }
{ %VERSION=1.1 }
{$ifdef fpc}
{$mode delphi}
{$asmmode intel}
{$endif}
function LRot(Value:Byte) : Byte; assembler;
asm
MOV CL, Value
MOV Result, CL
MOV AL, 20
end;
var
i : Byte;
begin
i:=LRot(10);
writeln('LRot(10) = ',i,' (should be 10)');
if i<>10 then
begin
writeln('ERROR!');
halt(1);
end;
end.