- Running BasicBuilder Apps at 15MHz ?
- 19 May 2013 05:17:38 am
- Last edited by critor on 19 May 2013 06:37:17 am; edited 1 time in total
Hi,
Thanks to Basic Builder, I've packaged more than 20KB of my math TI-Basic programs into a single 16KB app for TI-83+/84.
But I've noticed a problem by running simultaneously:
- the programs on a TI-82 Stats (= TI-83)
- the programs on a TI-84+
- the app on a TI-84+
On the TI-84+, the app is much slower than the programs...
The app takes a time similar to the TI-82 Stats programs...
Which make me think that:
- TI-Basic programs run at 15Mhz on TI-84+
- Apps run at 6MHz on TI-84+
How can I fix this?
On an old United-TI topic, I found back that there is a flag in the app header which indicates the speed it is meant to be run at.
http://www.cemetech.net/projects/uti/viewtopic.php?t=9183&start=0
But KermM and Brandon wrote yesterday on the chat that the flag is ignored by the OS because of a bug.
Another way mentionned in the same topic is to write 1 to port 20h.
I made a small assembly program to do that:
AsmPrgm
3E01 ld a,1
D320 out (20h),a
C9 ret
I then modified my Basic Builder project and made that assembly program the 1st thing called from the main TI-Basic program.
But once tested on calc, it didn't run faster...
Did I made a mistake? Is the speed automatically reset upon C9?...
Thanks.
Thanks to Basic Builder, I've packaged more than 20KB of my math TI-Basic programs into a single 16KB app for TI-83+/84.
But I've noticed a problem by running simultaneously:
- the programs on a TI-82 Stats (= TI-83)
- the programs on a TI-84+
- the app on a TI-84+
On the TI-84+, the app is much slower than the programs...
The app takes a time similar to the TI-82 Stats programs...
Which make me think that:
- TI-Basic programs run at 15Mhz on TI-84+
- Apps run at 6MHz on TI-84+
How can I fix this?
On an old United-TI topic, I found back that there is a flag in the app header which indicates the speed it is meant to be run at.
http://www.cemetech.net/projects/uti/viewtopic.php?t=9183&start=0
But KermM and Brandon wrote yesterday on the chat that the flag is ignored by the OS because of a bug.
Another way mentionned in the same topic is to write 1 to port 20h.
I made a small assembly program to do that:
AsmPrgm
3E01 ld a,1
D320 out (20h),a
C9 ret
I then modified my Basic Builder project and made that assembly program the 1st thing called from the main TI-Basic program.
But once tested on calc, it didn't run faster...
Did I made a mistake? Is the speed automatically reset upon C9?...
Thanks.