Interpreter.java: periodically invoke dumpState if requested
[fleet.git] / tests / flags / c-flag-determined-by-dc.test
1 // expected output
2 #expect 1
3 #expect 0
4 #expect 0
5 #expect 0
6 #expect 1
7 #expect 1
8 #expect 0
9 #expect 1
10
11 #ship debug        : Debug
12 #ship alu          : Alu
13 #ship fifo         : Fifo
14
15 alu.in1:
16   set word=1;
17   set ilc=*;
18   deliver;
19
20 alu.inOp:
21   set word=Alu.inOp[CMP];
22   set ilc=*;
23   deliver;
24
25 alu.out:
26   set flags a=0, b=0;
27   set olc=8;
28
29   head;
30   [!b] recv token, collect nothing;
31   [b]  recv token, collect word;
32   set flags a=c, b=b;
33   [!a] set word=0;
34   [a]  set word=1;
35   send to debug.in;
36   set olc--;
37   [d] abort;
38   set flags a=a, b=!b;
39   tail;
40
41 debug.in:
42   set ilc=*;
43   recv, deliver;
44
45 alu.in2:
46   set word=0;
47   set ilc=4;
48   deliver;
49   set word=1;
50   set ilc=4;
51   deliver;
52
53 fifo.out:
54   send token to alu.out:1;
55   send token to alu.out:1;
56   send token to alu.out:0;
57   send token to alu.out:0;
58   send token to alu.out:1;
59   send token to alu.out:1;
60   send token to alu.out:0;
61   send token to alu.out:0;
62
63