updated demo code
[fleet.git] / contrib / icache-demo.fleet
1
2 // ships required in order to run this code
3 #ship debug        : Debug
4 #ship icache       : Icache
5
6 // instructions not in any codebag are part of the "root codebag"
7 // which is dispatched when the code is loaded
8
9 debug.data:   deliver;
10 BOB:          sendto icache.cbd;
11 icache.cbd:   [*] take, deliver;
12 debug.data:   [*] take, deliver;
13
14
15 // This codebag illustrates how to do a loop.  Notice that this
16 // is actually an uncontrolled data emitter -- it could clog the
17 //  switch fabric!
18
19 BOB: {
20   12:           sendto debug.data;
21   13:           sendto debug.data;
22   14:           sendto debug.data;
23   BOB:          sendto icache.cbd;
24 }
25