use repeat counter instead of standing bit
authoradam <adam@megacz.com>
Tue, 12 Feb 2008 09:06:58 +0000 (10:06 +0100)
committeradam <adam@megacz.com>
Tue, 12 Feb 2008 09:06:58 +0000 (10:06 +0100)
src/edu/berkeley/fleet/assembler/Parser.java

index 574633e..95a3ec7 100644 (file)
@@ -358,7 +358,8 @@ public class Parser {
                 }
                 tt = tt.child(0);
                 if (tt.head().equals("[*]")) {
-                    count = 0;
+                    cb.add(new Instruction.Counter(pump, predicate, Instruction.Counter.STANDING, Instruction.Counter.REPEAT_COUNTER));
+                    //count = 0;
                     requeue = false;
                 } else if (tt.head().equals("int")) {
                     count = (int)number(tt);