summaryrefslogtreecommitdiff
path: root/tests/webtbf/tw32915.pp
blob: 2f8b2b890c0089bde9128507ddcacb716cb95542 (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
{ %cpu=avr }
{ %fail }
program test;

type
  TUintRecord = packed record
    l:byte;
    h:byte;
  end;

procedure delayloop2(const counter: TUintRecord); assembler;
asm
  mov XH, counter.h
  mov XL, counter.l
end;


var
  t: TUintRecord;

begin
   t.l := 1;
   t.h := 0;
   delayloop2(t);
end.