From: adam Date: Wed, 19 Nov 2008 10:28:40 +0000 (+0100) Subject: add fun-with-codebags2.fleet X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=24338eb6c3af94f0dbbfc83b15331a312cab4e00;p=fleet.git add fun-with-codebags2.fleet --- diff --git a/tests/codebags/fun-with-codebags2.fleet b/tests/codebags/fun-with-codebags2.fleet new file mode 100644 index 0000000..ca19ed7 --- /dev/null +++ b/tests/codebags/fun-with-codebags2.fleet @@ -0,0 +1,25 @@ +// expected output +#expect 12 +#expect 13 +#expect 14 + +// ships required in order to run this code +#ship debug : Debug +#ship memory : Memory + +// instructions not in any codebag are part of the "root codebag" +// which is dispatched when the code is loaded + +memory.out: + set ilc=*; collect packet, send; + +memory.inCBD: + set word= BOB; + deliver; + +BOB: { + debug.in: + set word= 12; deliver; + set word= 13; deliver; + set word= 14; deliver; +}