Added some stuff and fixed many bugs... the main change is that you don't need an index with DefineSprite(), it will now automatically insert that. To 'compensate' this, you can now display sprites with a variable index, like A+3 or even getKey, but be sure that sprite IS defined, otherwise you will get weird stuff
Download: archives_voir.php?id=587211
ICE Compiler
Re: ICE Compiler
Age of CEmpires I - In progress!
-
PT_Programmeur
Niveau 13: CU (Calculateur Universel)- Posts: 259
- Joined: 09 Feb 2016, 23:06
- Gender:
- Calculator(s):→ MyCalcs profile
Re: ICE Compiler
I've uploaded a new version, which adds ReturnIf <exp>, which could be useful, along with many bugfixes nobody knows of. Also I will try to give you some examples about optimization of ICE code:
2+(2*A) can be (A+1)*2
If A=1 can be If not(A-1
For loops where the variable is not used, can maybe be optimized to a 'small For loop', like For(39
Repeat K:getKey->K:End can be Repeat getKey->K:End
66+(32*(B/4)) can be B/4*32+66
Download:
https://www.cemetech.net/programs/index ... mpiler.zip
archives_voir.php?id=587211
2+(2*A) can be (A+1)*2
If A=1 can be If not(A-1
For loops where the variable is not used, can maybe be optimized to a 'small For loop', like For(39
Repeat K:getKey->K:End can be Repeat getKey->K:End
66+(32*(B/4)) can be B/4*32+66
Download:
https://www.cemetech.net/programs/index ... mpiler.zip
archives_voir.php?id=587211
Age of CEmpires I - In progress!
-
PT_Programmeur
Niveau 13: CU (Calculateur Universel)- Posts: 259
- Joined: 09 Feb 2016, 23:06
- Gender:
- Calculator(s):→ MyCalcs profile
Re: ICE Compiler
In the meantime, I started 2 new programs for the Cemetech Contest 18:
- Ready
- In progress
Downloads are not available yet, as these are for a contest
- Ready
- In progress
Downloads are not available yet, as these are for a contest
Age of CEmpires I - In progress!
-
PT_Programmeur
Niveau 13: CU (Calculateur Universel)- Posts: 259
- Joined: 09 Feb 2016, 23:06
- Gender:
- Calculator(s):→ MyCalcs profile
Re: ICE Compiler
Looks pretty fun
MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)My calculator programs
Mes programmes pour calculatrices
-
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 14727
- Images: 1119
- Joined: 01 Jun 2007, 00:00
- Location: France
- Gender:
- Calculator(s):→ MyCalcs profile
- Twitter: adriweb
- GitHub: adriweb
Re: ICE Compiler
With the last version of ICE, after I have compile FLOODSRC, when I launch FLOODIT, and when I press Enter, the calculator reset
-
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 3446
- Images: 75
- Joined: 04 Jul 2014, 14:40
- Location: Clermont-Ferrand 63
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: ENS Rennes
- GitHub: Ti64CLi
Re: ICE Compiler
Ti64CLi++ wrote:With the last version of ICE, after I have compile FLOODSRC, when I launch FLOODIT, and when I press Enter, the calculator reset
Fixed, ICE generated an opcode trap
I've fixed another weird bug too
Age of CEmpires I - In progress!
-
PT_Programmeur
Niveau 13: CU (Calculateur Universel)- Posts: 259
- Joined: 09 Feb 2016, 23:06
- Gender:
- Calculator(s):→ MyCalcs profile
Re: ICE Compiler
I updated ICE, the size went from 18kB to 10kB using Mateo's program compressor
Download:
https://www.cemetech.net/programs/index ... mpiler.zip
archives_voir.php?id=587211
Also, if you still didn't know, I made a new game in ICE, Snowball Struggle
Download: https://www.cemetech.net/programs/index ... ruggle.zip
archives_voir.php?id=810889
Download:
https://www.cemetech.net/programs/index ... mpiler.zip
archives_voir.php?id=587211
Also, if you still didn't know, I made a new game in ICE, Snowball Struggle
Download: https://www.cemetech.net/programs/index ... ruggle.zip
archives_voir.php?id=810889
Age of CEmpires I - In progress!
-
PT_Programmeur
Niveau 13: CU (Calculateur Universel)- Posts: 259
- Joined: 09 Feb 2016, 23:06
- Gender:
- Calculator(s):→ MyCalcs profile
-
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)- Posts: 3446
- Images: 75
- Joined: 04 Jul 2014, 14:40
- Location: Clermont-Ferrand 63
- Gender:
- Calculator(s):→ MyCalcs profile
- Class: ENS Rennes
- GitHub: Ti64CLi
Re: ICE Compiler
Ti64CLi++ wrote:What is the changelog?
That is the changelog I'm supposed to update with every version, where you can see what I added/changed
Age of CEmpires I - In progress!
-
PT_Programmeur
Niveau 13: CU (Calculateur Universel)- Posts: 259
- Joined: 09 Feb 2016, 23:06
- Gender:
- Calculator(s):→ MyCalcs profile
Re: ICE Compiler
Output( and running a BASIC subprogram now works!
Note: I don't do any error-checking, so please be sure your BASIC program works fine, I can't guarentee what would happen if you have an error in it
Download:
archives_voir.php?id=587211
Note: I don't do any error-checking, so please be sure your BASIC program works fine, I can't guarentee what would happen if you have an error in it
Download:
archives_voir.php?id=587211
Age of CEmpires I - In progress!
-
PT_Programmeur
Niveau 13: CU (Calculateur Universel)- Posts: 259
- Joined: 09 Feb 2016, 23:06
- Gender:
- Calculator(s):→ MyCalcs profile
Return to Langages alternatifs
Who is online
Users browsing this forum: Bobb, ClaudeBot [spider] and 4 guests