π
<-
Chat plein-écran
[^]

Assembly code on nSpire

C, C++, ASM...

Assembly code on nSpire

Unread postby SlyVTT » 04 May 2021, 08:48

Hello,

as the GUI Toolkit progresses well (and will soon reach the end), I am thinking of my next project (both will be certainly running in parallel during some weeks/months, and why not merging them both later).

So my plan would be to start working on a 3D Engine on the nSpire. Of course the hardware is powerful but a very common limitation for this kind of program will be the speed of the rasterization process (i.e. drawing the triangles on the screen) than consumes a lot of resources of the CPU. I haven't tested the actual speed of the CPU so far (except in the GUI Toolkit, so I think it can manage quite a lot of stuff thanks to its high clock frequency), but when many operations will be required (for exemple when texture will be applied and lights calculations will be performed on a triangle), it may be tough to get something running smoothly.

So now the questions :

- what is needed to code in assembly on the nSpire ? I do not plan to do everything in assembly, but just embed some portions of the engine that may be on the critical path. The rest would still be in C/C++. Is Ndless able to handle assembly code (it is said to be able to in the Ndless website, but cannot find any example of actually using that feature).

- where can we find some (good) examples of using assembly on nSpire ? Found nothing right now.

- where can we find the references of instructions for the nSpire CPU ? Directly on ARM website ?

In other words, this is for me like starting from scratch on that topic. And I am a bit afraid of a (very) limited community (not to say inexistant) working with assembly on nSpire.

My plan would be to :
- first have something running with correct visuals and coded in C/C++, whatever its speed.
- second, try to optimise the heavy operations with ASM to speed up the code.

Any help for the second part would be very appreciated.

Of course, on the long run, and as for the GUI Toolkit, I will try to make it open enough to be used by the community for other projects.

Ciao

Sly
Developing the GUI Toolkit for nSpire
see current revision here : https://github.com/SlyVTT/Widget-for-TI-NSpire
Image Image Image Image
User avatar
SlyVTTProgrammeur
Niveau 8: ER (Espèce Rare: nerd)
Niveau 8: ER (Espèce Rare: nerd)
Level up: 39.5%
 
Posts: 96
Images: 0
Joined: 19 Jan 2021, 09:41
Gender: Male
Calculator(s):

Return to Native: Ndless, Linux, ...

Who is online

Users browsing this forum: No registered users and 5 guests

-
Search
-
Social
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Découvre les nouvelles fonctionnalités en Python de l'OS 5.2 pour les Nspire CX II
Découvre les nouvelles fonctionnalités en Python de l'OS 5.5 pour la 83PCE/84+C-T Python Edition
Omega, le fork étendant les capacités de ta NumWorks, même en mode examen !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
528 utilisateurs:
>519 invités
>3 membres
>6 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)

-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)