| Example counter

| This program sets up a counter which increments
| whenever you press the fire button on joystick
| one. View the counter in operation using
| !JS_Test.

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

| Keep track of fire_1 using flagB_2, will use to
| decide when fire_1 has just been pressed.
setB_2   =  fire_1
resetB_2 = ~fire_1

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

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

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