summaryrefslogtreecommitdiff
path: root/tests/tbs/tb0367.pp
blob: a8a56ebe8ccb082d831c2040099670624bf2e6a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ %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.