π
<-

ICE Compiler

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

Re: ICE Compiler

Unread postby MMBC » 27 Sep 2017, 13:47

nICE the ICE language green thing on the A prog :D
ImageImage
Image
User avatar
MMBCModo
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 66.7%
 
Posts: 107
Images: 1
Joined: 16 May 2017, 19:20
Gender: Female
Calculator(s):
MyCalcs profile
Class: Ex prof
YouTube: Eyone
Facebook: Emma Cadet

Re: ICE Compiler

Unread postby PT_ » 27 Sep 2017, 14:02

MMBC_Chris wrote:nICE the ICE language green thing on the A prog :D

That is a Cesium feature ;)
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 PT_ » 29 Sep 2017, 20:47

I'm finally done with bugtesting, at least all my test programs work fine (during testing I solved another bug or 2), so it's time to share it with you guys. Feel free to download this ICE, please test all the edgy cases, and if there's an ICE ERROR: Please report it, please send me your source code, then I can try it as well :)

Things I still want to fix but that are not really important:
- Max label/variable name length
- More syntax errors at impossible cases
- All the remaining bugs lol

https://www.dropbox.com/s/ehk81xwu4foeil8/ICE.zip?dl=0

There is an .exe in the folder, it works exactly the same as the C version. Just run it with ice <input program>, i.e. ice SUM.8xp, and it will compile your program and output the program in the main directory. I know, I still need to rewrite the entire commands.html and documentation.pdf, but will do that later, so you guys have to do it without documentation ;)
Let me explain the most important changes, some others should be straightforward:
- Pointers. *{ } for 1-byte dereference, **{ } for 2-byte dereference and ***{ } or just { } for 3-byte dereference. The amount of nested { } is the level, so {{A}} gets the word at address at word at address A.
- Copy( copies arg3 bytes from arg1 to arg2. If there are 4 arguments, the first argument will be ignored, but the copy will be reversed (lddr instead of ldir)
- Data( returns a pointer to the data section in the program data. First argument should be the size of the next elements (1 = 8-bits, 2 = 16-bits, 3 = 24-bits). All the remaining elements will be inserted in the program data and it returns a pointer to this.
- L1-L6 are now pointers, so accessing the first element of L1 will be ***{L1+0} instead of L1(0).
- Alloc( allocated some memory, for example for rotating or enlarging sprites. Returns a pointer to the data.
- sum(... all the same as det(, but sum( is used for the FILEIOC lib. Sorry, won't show all the arguments needed, but you can select the right function in the program editor by pressing [TRACE].
- sin( cos(, range is [0, 255] (so 256 = 2*pi)
- String concatenation, storing, displaying
- [i] for displaying a new line

And much more which I can't tell now. But have fun exploring ICE, and hopefully I can make it an official release soon! :D
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 PT_ » 03 Oct 2017, 12:59

Updated version:
- Fixed strings. Now 'w' or 'r' is actually a 'w' or 'r', and not the BASIC token. This means, however, that all BASIC tokens are converted to the characters, which means that "sin(" is now 4 bytes instead of 1 byte.
- Fixed the main bug reported by KryptonicDragon

https://www.dropbox.com/s/7a3qiexqgc2r0 ... 3.zip?dl=0
Commands: http://htmlpreview.github.io/?https://g ... mands.html
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 sautax » 05 Oct 2017, 19:39

OMG this version is so goood i'll do my projects with that but....
is there a on calc compiler for C version ?
Mes projets :
-Environnement numworks sur PC
-TILIB
-AGAME
User avatar
sautaxProgrammeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 21.6%
 
Posts: 65
Joined: 21 Sep 2016, 14:31
Location: Quelque part dans le sud
Gender: Male
Calculator(s):
MyCalcs profile
Class: Terminale S-SI
YouTube: sautax

Re: ICE Compiler

Unread postby PT_ » 05 Oct 2017, 20:28

Of course :P
Download always the latest release here, because I fix many, many, important bugs
https://github.com/PeterTillema/ICE/releases
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 sautax » 05 Oct 2017, 20:30

ok cool thanks
Mes projets :
-Environnement numworks sur PC
-TILIB
-AGAME
User avatar
sautaxProgrammeur
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 21.6%
 
Posts: 65
Joined: 21 Sep 2016, 14:31
Location: Quelque part dans le sud
Gender: Male
Calculator(s):
MyCalcs profile
Class: Terminale S-SI
YouTube: sautax

Re: ICE Compiler

Unread postby Ti64CLi++ » 06 Oct 2017, 00:18

Wow, a really good update :bj:
A good feature may be appvars file managment, like Axiom in Axe, to add some functions ;)
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_ » 06 Oct 2017, 13:38

Ti64CLi++ wrote:Wow, a really good update :bj:
A good feature may be appvars file managment, like Axiom in Axe, to add some functions ;)

You clearly need to read the commands.html, and what I all added :P
http://htmlpreview.github.io/?https://g ... mands.html
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++ » 06 Oct 2017, 17:13

I wanted to say appvars file management, but an appvars that add some functions like Axiom in Axe. Not reading/wrinting in an appvars ;)
Sorry, I am so bad to explain, my English is very bad :?
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

PreviousNext

Return to Langages alternatifs

Who is online

Users browsing this forum: ClaudeBot [spider] and 4 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.
1195 utilisateurs:
>1157 invités
>32 membres
>6 robots
Record simultané (sur 6 mois):
7582 utilisateurs (le 25/06/2025)
-
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)