π
<-

ICE Compiler

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

Re: ICE Compiler

Unread postby PT_ » 24 Mar 2018, 23:06

In case you wasn't aware yet, I've started with developing ICE v3.0. This major update will include floats, matrices and much more! It also includes a more powerful prescanner (i.e. more optimized code) and more auto-optimization. I also hope to make it more stable, and maybe more options to auto-archive programs when compiling etc. Follow the Github repo for all the things I added. Stay tuned! :)
Age of CEmpires I - In progress!
40%
User avatar
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Level up: 57.2%
 
Posts: 259
Joined: 09 Feb 2016, 23:06
Gender: Male
Calculator(s):
MyCalcs profile

Re: ICE Compiler

Unread postby Ti64CLi++ » 25 Mar 2018, 14:33

I have a question : How can I open a string, with the OpenVar fonction?
I tried OpenVar("Str0",0,4), OpenVar("0",0,4), but they didn't work :(
Image
User avatar
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.5%
 
Posts: 3446
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
GitHub: Ti64CLi

Re: ICE Compiler

Unread postby PT_ » 25 Mar 2018, 22:17

Remove the quotes around Str0, since Str0 itself is already a pointer. That should hopefully work :)
Age of CEmpires I - In progress!
40%
User avatar
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Level up: 57.2%
 
Posts: 259
Joined: 09 Feb 2016, 23:06
Gender: Male
Calculator(s):
MyCalcs profile

Re: ICE Compiler

Unread postby Ti64CLi++ » 26 Mar 2018, 10:03

And, do I have to put the string name just like 'Str0' in Str0?
Image
User avatar
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.5%
 
Posts: 3446
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
GitHub: Ti64CLi

Re: ICE Compiler

Unread postby Ti64CLi++ » 26 Mar 2018, 10:09

If I put OpenVar(Str0,"w+",4) in my program, it does nothing.
But if I put OpenVar("Str0","w+",4), he creates a new string named 'S' :(
So, I still don't know how to open/create a string, which I can use on the main screen, in ICE :(
Image
User avatar
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.5%
 
Posts: 3446
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
GitHub: Ti64CLi

Re: ICE Compiler

Unread postby PT_ » 26 Mar 2018, 14:23

Note that OS strings != ICE OS strings. If you use something like
Code: Select all
"ABC→Str0
OpenVar(Str0,'w+',4

should hopefully work. Note that it's quite hard to edit the actual OS strings with ICE. Hope this helps :)
Last edited by PT_ on 27 Mar 2018, 09:33, edited 1 time in total.
Age of CEmpires I - In progress!
40%
User avatar
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Level up: 57.2%
 
Posts: 259
Joined: 09 Feb 2016, 23:06
Gender: Male
Calculator(s):
MyCalcs profile

Re: ICE Compiler

Unread postby Ti64CLi++ » 26 Mar 2018, 20:12

Yes that helps.
But my goal is to store a string, in an OS string, which can be used after quitting the program.
Image
User avatar
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.5%
 
Posts: 3446
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
GitHub: Ti64CLi

Re: ICE Compiler

Unread postby PT_ » 26 Mar 2018, 22:42

Then you need to find it with something like this:
Code: Select all
|EAA->*{Str0}
9->*{Str0+1}
0->*{Str0+2}
OpenVar(Str0,'r',4)

AA stands for a string token, and 9 is the token for Str0 (Str1 = 0, upto Str9 = 8)
Age of CEmpires I - In progress!
40%
User avatar
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Level up: 57.2%
 
Posts: 259
Joined: 09 Feb 2016, 23:06
Gender: Male
Calculator(s):
MyCalcs profile

Re: ICE Compiler

Unread postby Ti64CLi++ » 28 Mar 2018, 11:13

Hum. That didn't work. My calc rebooted after I compiled my prog then I launched it.
Either I mistaked when I copied your example or I put a wrong function to create it.
This is my code:
Code: Select all
|EAA->*{Str0}
9->*{Str0+1}
0->*{Str0+2}
sum (2,Str0,"w+",4)->STR

Do you see a problem in my code?
Image
User avatar
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.5%
 
Posts: 3446
Images: 75
Joined: 04 Jul 2014, 14:40
Location: Clermont-Ferrand 63
Gender: Male
Calculator(s):
MyCalcs profile
Class: ENS Rennes
GitHub: Ti64CLi

Re: ICE Compiler

Unread postby PT_ » 28 Mar 2018, 13:26

Is the "|E" the scientific E? And what do you get when you do "Disp Str0"? It should be Úx (some weird x).
Age of CEmpires I - In progress!
40%
User avatar
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Level up: 57.2%
 
Posts: 259
Joined: 09 Feb 2016, 23:06
Gender: Male
Calculator(s):
MyCalcs profile

PreviousNext

Return to Langages alternatifs

Who is online

Users browsing this forum: ClaudeBot [spider] and 9 guests

-
Search
-
Social TI-Planet
-
Featured topics
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
-
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.
931 utilisateurs:
>904 invités
>22 membres
>5 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)