π
<-
Chat plein-écran
[^]

ICE Compiler

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

Re: ICE Compiler

Unread postby PT_ » 14 Oct 2016, 20:42

I just want to say that Sprite() is finished, but I'm now busy with huge optimization in it! The sprite command looks like Sprite(x,y,width,height,data) where data is in the same form as ExecHex(, so it compiles every 2 bytes to a byte (color). I'm currently busy with HUGE optimization in the routine, because I could optimize it a lot when for example y is a constant, or the width etc, so I need a different routine for that. ;)
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_ » 17 Oct 2016, 21:36

Mateo (and I) discussed another (better) way to handle custom tokens, instead of replacements of existing tokens, just use something like det(0) or det(43), for *every* C graphic function. I would like to hear other thoughts about this? Personally I like it, because the custom tokens are pretty limited, and this looks like xLIBCE, which looks like BASIC. What do you think?
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_ » 22 Oct 2016, 18:18

Time for some new important updates!

  • I've added in 54 C functions (all the functions from the graphics lib, without the ones that used pointers or so), so that's going pretty well.
  • ICE now displays a "#" in front of the name if the program is archived.
  • Added If:Else:End, I was trying to make ElseIf too, but that didn't succeed yet.
  • Multiplication with a number <= 20 is now a better routine, instead of the normal "ld bc, * \ call __imulu"
  • As some of you may know, I've added a screen that asks whether to compile with C libs or not. The C functions are not compatible without the C lib, and I think I won't even add them. If you select "Yes" but you don't use any C function, it won't assume you compile with the C libs.
  • Fixed a bug with strings, that if you close a string without a " but an enter, it crashes.
  • I'm thinking about a new way to insert the custom tokens in the program editor. Instead of showing an OS menu when pressing [TRACE], I want to clear the screen, display ALL the C functions (size += 1000) , and that the user selects one and then the data will be inserted. I had the idea from Epharius' PHASM, and since that's open-source with a nice license, I can take a look over there ;)
  • Maybe I gonna implement the FILEIO and KEYPAD libs too, with another token like real(5 etc.


I'm busy with a real game, so yet no screenshots :)
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 Adriweb » 22 Oct 2016, 18:27

That's... a lot of functions... :o
Image

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...)
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 80.3%
 
Posts: 14617
Images: 1218
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: ICE Compiler

Unread postby Lionel Debroux » 22 Oct 2016, 19:43

Indeed, keep doing good work :)
Membre de la TI-Chess Team.
Co-mainteneur de GCC4TI (documentation en ligne de GCC4TI), TIEmu et TILP.
User avatar
Lionel DebrouxSuper Modo
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 11.2%
 
Posts: 6859
Joined: 23 Dec 2009, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Class: -
GitHub: debrouxl

Re: ICE Compiler

Unread postby Ti64CLi++ » 23 Oct 2016, 13:22

Good job PT_ :bj:
Image
User avatar
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 32.3%
 
Posts: 3441
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 Epharius » 23 Oct 2016, 18:32

I had the idea from Epharius' PHASM, and since that's open-source with a nice license, I can take a look over there

I will be happy to help you if you have any issue or if you want to know how it works (maybe the code is a bit weird and scaring) ;)
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
User avatar
EphariusPremium
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 7.1%
 
Posts: 1110
Images: 4
Joined: 08 Dec 2014, 17:38
Gender: Not specified
Calculator(s):
MyCalcs profile
Class: Ensimag
GitHub: MathisLav

Re: ICE Compiler

Unread postby PT_ » 31 Oct 2016, 13:46

Nope, I'm not done yet, but I made this:

Image

108 vs 381 bytes.

(Source: http://tibasicdev.wikidot.com/sierpinski-triangle )
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 grosged » 31 Oct 2016, 14:57

Hey PT_, if you need help for optimising (eg sprite function...) , just ask me ;)
User avatar
grosgedVIP++
Niveau 14: CI (Calculateur de l'Infini)
Niveau 14: CI (Calculateur de l'Infini)
Level up: 30.2%
 
Posts: 770
Images: 75
Joined: 14 Sep 2011, 12:29
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: ICE Compiler

Unread postby PT_ » 01 Nov 2016, 13:41

grosged wrote:Hey PT_, if you need help for optimising (eg sprite function...) , just ask me ;)

If I need help, I will ask you :)

Tada!

Image
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: No registered users and 44 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
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.
1312 utilisateurs:
>1285 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)