File: ok_parse_impl_asm.pas

package info (click to toggle)
pasdoc 0.16.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,572 kB
  • sloc: pascal: 28,894; javascript: 7,665; xml: 2,597; makefile: 523; sh: 417
file content (46 lines) | stat: -rw-r--r-- 642 bytes parent folder | download | duplicates (2)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ Parse implementation section.
  Separate test to check that asm blocks with Pascal keywords are handled correctly.
  Must be tested with --implementation-comments=*any* }
unit ok_parse_impl_asm;

interface

implementation

// Pascal keywords inside ASM blocks

procedure t_case; assembler;
asm
  @@case:
end;

procedure t_const; assembler;
asm
  @@const:
end;

procedure t_type; assembler;
asm
  @@type:
end;

procedure t_procedure; assembler;
asm
  @@procedure:
end;

procedure t_begin; assembler;
asm
  @@begin:
end;

// Keyword that should finish the block

procedure t_end; assembler;
asm
  jz    @@end
@@end:
  mov   edx,eax
end;

end.