Subroutines are great , I use them any time I have more that 5 "common" instructions.
But in you case there will be little improvement in your code because you just change I/O and run same PAUSE.
PBasic wants to have the variable assigned before you call the subroutine.
I would suggest looking into LOOKUP , but do it after you figure out subroutine.
Comments
Cheers,
But in you case there will be little improvement in your code because you just change I/O and run same PAUSE.
PBasic wants to have the variable assigned before you call the subroutine.
I would suggest looking into LOOKUP , but do it after you figure out subroutine.
Start with putting PAUSE as subroutine
Delay VAR Byte
MyPause:
PAUSE Delay
RETURN
To call MyPause
...
Delay = 150
GOSUB MyPause
....
....
Delay = 100
GOSUB MyPause
...
Cheers Vaclav