| Example free-running counter

| This program sets up a counter which counts while
| you hold down the fire button on joystick one.

| View the counter in operation using !JS_Test,
| the least significant bit will be on the right
| (flagB_2) and the most significant on the left
| (flagA_1). The bits will oscillate with
| frequencies of 25Hz, 12.5Hz, 6.25Hz & 3.125Hz
| respectively.

| ( The speeds of oscillation may not be clearly
| visible, depending on the number of active
| tasks and the speed of your ARM processor ).

|---------------------------------------------------

| Set flagB_2 as bit 0 of the counter
setB_2   = ~flagB_2.fire_1
resetB_2 =  flagB_2.fire_1

| Set flagA_2 as bit 1 of the counter
setA_2   = ~flagA_2.flagB_2.fire_1
resetA_2 =  flagA_2.flagB_2.fire_1

| Set flagB_1 as bit 2 of the counter
setB_1   = ~flagB_1.flagA_2.flagB_2.fire_1
resetB_1 =  flagB_1.flagA_2.flagB_2.fire_1

| Set flagA_1 as bit 3 of the counter
setA_1   = ~flagA_1.flagB_1.flagA_2.flagB_2.fire_1
resetA_1 =  flagA_1.flagB_1.flagA_2.flagB_2.fire_1
