hi,
am not sure this is going to make sense but am trying to work out if/how i can. have b1 count up each time it goes too a subroutine adds one then when it gets to 5 it goes to another routine.
any suggestions would be helpful.
jinx
am not sure this is going to make sense but am trying to work out if/how i can. have b1 count up each time it goes too a subroutine adds one then when it gets to 5 it goes to another routine.
Code:
#picaxe 20x2
#no_data
#no_table
main:do
sertxd(" am awake ",13,10)
gosub bckspin
pause 1000
loop
bckspin:
inc b1
pause 1000
sertxd("The value of b1 is ",#b1,13,10)
let b1 = b3
if b3 = 5 then gosub hello
return
hello:
sertxd("The value of b3 is ",#b3,13,10)
pause 1000
let b3 = 0
return
jinx