; counter.asm ; Doug Ricket ; uCPL Lab 1 ; Summer 2001 mov a, #0h ; Stores the value 0 into the variable A count: inc p3 ; Add one to p3 cjne a, p3, count ; If P3 is zero, continue to P2 inc p2 cjne a, p2, count ; If P2 is zero, continue to P1 inc p1 cjne a, p1, count ; If P1 is zero, continue to P0 inc p0 sjmp count