Debian Codegraph @

travis/test/exitrep.asm

raw
1 %macro testrep 0-1
2 %assign i 1
3 %rep %1 4
4 mov eax,i
5 %if i==3
6 %exitrep
7 %if bull!shit ; Syntax error if evaluated
8 nop
9 %endif
10 %rep other::bullshit ; Same
11 nop
12 %endrep
13 %endif
14 mov ebx,i
15 %note in %?%1 iteration i
16 %if i >= 3
17 %error iteration i should not be seen
18 %endif
19 %assign i i+1
20 %endrep
21 ret
22 %endmacro
23
24 %macro testrep_nl 0-1.nolist
25 %assign i 1
26 %rep %1 4
27 mov eax,i
28 %if i==3
29 %exitrep
30 %endif
31 %note in %?%1 iteration i
32 mov ebx,i
33 %if i >= 3
34 %error iteration i should not be seen
35 %endif
36 %assign i i+1
37 %endrep
38 ret
39 %endmacro
40
41
42 testrep
43 testrep .nolist
44
45 testrep_nl
46 testrep_nl .nolist