π
<-

ProgramViewer CE

Assembleur, Axe, C/C++, ICE...

ProgramViewer CE

Message non lude PT_ » 27 Fév 2016, 19:32

Today I've been busy with my new program, an *advanced* program viewer for the CE in pure ASM. It takes the program name as a string in Ans, and it displays the whole program, but instead of the usual 9 lines, you can see about 28 lines of code, and I'm going to add indentation as well. This is a hard project, because I'm not really experienced with ASM, but no one cares :P
I've used Mateo's _PrintString routine for displaying the whole program, which has a nice font, and is pretty small.
How the basic program works:
Code: Tout sélectionner
Read Ans as a string
Convert it to a program name in OP1
Check if program exists, and if not, return
Setup the graphics
For each token of the data of the program:
  Get the token in ASCII characters with _Get_Tok_Strng
  Display all the characters, if not offscreen
  If (newline) is entered, move the cursor to the newline
  If end of program reached, stop
End
Possibility to move up or down and eventually left or right
Pause
Return

I'm now at the stage for displaying the characters. This is what I got so far:
Image
Image
(That last characters looks awesome but is not intended :P)

In a later version, I will maybe add editing as well, now I'm okay with this :D

I know, this could be MUCH easier with the C libraries, but with C it is very hard to convert the number to a string, so I made this in pure ASM.

If you have any suggestions or questions, please post :)
Age of CEmpires I - In progress!
40%
Avatar de l’utilisateur
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Prochain niv.: 57.2%
 
Messages: 259
Inscription: 09 Fév 2016, 23:06
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ProgramViewer CE

Message non lude critor » 27 Fév 2016, 20:15

Very interesting! :)

Keep up the good work.
Image
Avatar de l’utilisateur
critorAdmin
Niveau 19: CU (Créateur Universel)
Niveau 19: CU (Créateur Universel)
Prochain niv.: 53.4%
 
Messages: 42394
Images: 17112
Inscription: 25 Oct 2008, 00:00
Localisation: Montpellier
Genre: Homme
Calculatrice(s):
MyCalcs profile
YouTube: critor3000
Twitter/X: critor2000
GitHub: critor

Re: ProgramViewer CE

Message non lude Epharius » 27 Fév 2016, 20:48

Much more practical than the program editor, but of course, very hard to program ;)
Maybe you could add syntaxic coloration if you have the time? I think it would be nice, and useful. For example, while/For/Repeat are blue etc...

Good luck and keep us informed!
Le projet Geometry Dash est terminé ! N'hésitez pas à aller jeter un coup d’œil au topic du projet ! Vous pouvez le télécharger ici.

Unis par la flèche sacrée de cupidon :favorite:
Image
Avatar de l’utilisateur
EphariusPremium
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 8.9%
 
Messages: 1182
Images: 4
Inscription: 08 Déc 2014, 17:38
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile
Classe: Ensimag
GitHub: MathisLav

Re: ProgramViewer CE

Message non lude PT_ » 27 Fév 2016, 21:47

critor a écrit:Very interesting! :)

Keep up the good work.

Thanks :)
Epharius a écrit:Much more practical than the program editor, but of course, very hard to program ;)
Maybe you could add syntaxic coloration if you have the time? I think it would be nice, and useful. For example, while/For/Repeat are blue etc...

Good luck and keep us informed!

Yea, that sounds really hard, but it is a good idea ;)
Age of CEmpires I - In progress!
40%
Avatar de l’utilisateur
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Prochain niv.: 57.2%
 
Messages: 259
Inscription: 09 Fév 2016, 23:06
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ProgramViewer CE

Message non lude Dream of Omni » 28 Fév 2016, 05:15

Seems like a cool project. I hope you can pull it off as it could become handy to many people. Will it feature the ability to jump to the next label, counting Ends and checking if there are too many and such stuff?
ImageImageImageImageImage
Avatar de l’utilisateur
Dream of OmniPremium
Niveau 12: CP (Calculatrice sur Pattes)
Niveau 12: CP (Calculatrice sur Pattes)
Prochain niv.: 28.4%
 
Messages: 720
Images: 51
Inscription: 21 Fév 2012, 12:04
Localisation: Quebec, Canada
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: 11eme annee scolaire termine
YouTube: dreamofomni
Facebook: dreamofomnimaga.page

Re: ProgramViewer CE

Message non lude PT_ » 29 Fév 2016, 10:38

DJ Omnimaga a écrit:Seems like a cool project. I hope you can pull it off as it could become handy to many people. Will it feature the ability to jump to the next label, counting Ends and checking if there are too many and such stuff?

I will give it a try of the Lbl-jump, with the help of Epharius (I believe he already did such thing).
What is counting Ends useful for?
But anyway, I've holidays this week, so hopefully enough time to work on it! :)
Age of CEmpires I - In progress!
40%
Avatar de l’utilisateur
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Prochain niv.: 57.2%
 
Messages: 259
Inscription: 09 Fév 2016, 23:06
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ProgramViewer CE

Message non lude Bisam » 29 Fév 2016, 14:14

Counting "Ends" is useful to check the syntax of the program while typing instead of checking it at execution.

As for the feature requests, maybe an automatic indentation of the code could be a good idea (and counting the "Ends" would have a second interest :p )
Avatar de l’utilisateur
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Prochain niv.: 69.6%
 
Messages: 5670
Inscription: 11 Mar 2008, 00:00
Localisation: Lyon
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ProgramViewer CE

Message non lude PT_ » 29 Fév 2016, 15:02

Bisam a écrit:Counting "Ends" is useful to check the syntax of the program while typing instead of checking it at execution.

As for the feature requests, maybe an automatic indentation of the code could be a good idea (and counting the "Ends" would have a second interest :p )

Ah thanks!
PT_ a écrit:...and I'm going to add indentation as well...

:troll:
Age of CEmpires I - In progress!
40%
Avatar de l’utilisateur
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Prochain niv.: 57.2%
 
Messages: 259
Inscription: 09 Fév 2016, 23:06
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ProgramViewer CE

Message non lude Bisam » 29 Fév 2016, 15:15

I knew I had read that somewhere... but I couldn't find it.
It seems that I'm not used to fast read english...
Avatar de l’utilisateur
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Prochain niv.: 69.6%
 
Messages: 5670
Inscription: 11 Mar 2008, 00:00
Localisation: Lyon
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ProgramViewer CE

Message non lude PT_ » 29 Fév 2016, 15:50

Bisam a écrit:I knew I had read that somewhere... but I couldn't find it.
It seems that I'm not used to fast read english...

Don't mind ;)

I've implemented the new-line-routine, with some struggles, but it seems to work!

Image

EDIT: I've added the : for each new line!

Image
Age of CEmpires I - In progress!
40%
Avatar de l’utilisateur
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Prochain niv.: 57.2%
 
Messages: 259
Inscription: 09 Fév 2016, 23:06
Genre: Homme
Calculatrice(s):
MyCalcs profile

Suivante

Retourner vers Langages alternatifs

Qui est en ligne

Utilisateurs parcourant ce forum: ClaudeBot [spider] et 7 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1836 utilisateurs:
>1799 invités
>30 membres
>7 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)