TI Conditionals & Spaghetti Code
|
05-26-2024, 08:37 AM
Post: #22
|
|||
|
|||
RE: TI Conditionals & Spaghetti Code
Sometimes it can be useful to optimize the execution time of a somewhat long program to use direct addressing.
But it is not imperative and we should not make it an obsession. The step count must also be considered. ----------Example #1 ---------- Code:
----------Example #2 ---------- Code:
Equivalent response time because label analysis starts at step 001 You can also write : ----------Example #3 ---------- Code:
RST is even faster than GTO Works on TI-58/58C/59 But be careful on some calculators, RST returns to step 000 and execution stops. http://ti58c.phweb.me http://clones.phweb.me http://www.instagram.com/ti58c "No! Do or Do not. There is no try!" [Master Yoda] |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)