BillRobinson
Member
Anybody know the pro's/con's of using programs vs routines?
For example, say the "Main Task" is a continuous task and we either have 1) a single program with a main routine that JSR's to other routines or 2) multiple programs each with a single main routine.
1)
Main Task
-{Do Everything Program}
---[Start Everything Routine]
---[JSR This Routine]
---[JSR That Routine]
---[JSR Whatever Routine]
or
2)
Main Task
-{Do This Program}
---[Start This Routine]
-{Do That Program}
---[Start That Routine]
-{Do Whatever Program}
---[Start Whatever Routine]
For example, say the "Main Task" is a continuous task and we either have 1) a single program with a main routine that JSR's to other routines or 2) multiple programs each with a single main routine.
1)
Main Task
-{Do Everything Program}
---[Start Everything Routine]
---[JSR This Routine]
---[JSR That Routine]
---[JSR Whatever Routine]
or
2)
Main Task
-{Do This Program}
---[Start This Routine]
-{Do That Program}
---[Start That Routine]
-{Do Whatever Program}
---[Start Whatever Routine]