summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbs/tw8950.pp
blob: 6cd776c468db37aff47134070115d5516bf7b00d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ %cpu=i386 }

{$ifdef fpc}
{$mode delphi}
{$endif}

procedure SetBitBuffer(var Value; const Bit: Cardinal);
asm
  BTS    [Value], Bit
end;

var
  l: longint;
begin
  l := 0;
  setbitbuffer(l,5);
  if (l <> 32) then
    halt(1);
end.