π
<-

ICE Compiler

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

Re: ICE Compiler

Unread postby Ti64CLi++ » 03 Dec 2016, 16:07

I have re-download ICE, and I send it into my calculator, and I compile Pong, it works, thank you very much :)
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_ » 03 Dec 2016, 16:13

Ehm, did I it right?

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

Re: ICE Compiler

Unread postby STaa » 03 Dec 2016, 16:19

Nope, you have to compile it another time. I'll try to reproduce it when I'll be home and send a video
Image
User avatar
STaaVIP++
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 41.7%
 
Posts: 31
Joined: 02 Dec 2016, 21:56
Location: Paris 11
Gender: Male
Calculator(s):
MyCalcs profile

Re: ICE Compiler

Unread postby PT_ » 03 Dec 2016, 16:59

Okay, I've figured out why they won't work together. PHASM uses a hook to run something before ICE starts, and loads the byte 1 into (pixelShadow2). Then ICE runs, but whatever program you have, after ICE is ready with compiling, it clears pixelShadow, pixelShadow2 and some more RAM areas, which means the 1 disappears. Then the OS switches back to PHASM, and PHASM checks if (pixelShadow) is equal to 1, and if not, it displays a *random* error. So either PHASM need to save the byte somewhere else (use a bit maybe), or I need less cleanup :troll: . For now, I can fix it, and I will fix this in the new version I'm currently working on, ICE v1.5 :) Many many thanks for seeing this ;)

EDIT: no, this is not the bug. I'm still trying to figure out what goes wrong :)
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 Dec 2016, 18:42

Heh, it seems I kind of know what the bug is. It's not the fault of PHASM, nor ICE, and maybe the OS :troll:
When the OS wants to execute an ASM program, it shifts X bytes X places up from UserMem, where X is the ASM program size, just to make place for the ASM program. There is nothing wrong with it, because after execution, these bytes are shifted back. But it can happen that the ASM program also shifts these bytes, and then you get an error! To explain it simple: what you entered at the homescreen, is pointed by some pointers, called curPC and endPC. When the OS moves the bytes forward AND back, these pointers points to the right equation, which was entered at the homescreen. But if the ASM program (ICE) also moves the bytes a bit, then the pointers don't point to the homescreen equation anymore, but instead to *random* stuff, which will very likely generate an error. I'm not sure who needs to solve it, but the OS can't. I will think about it, but for now, don't run "prgmICE", but "Asm(prgmICE" :)

(See also http://pastebin.com/K8mvTjU2 for my talk with TheMachine02 :) )
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 STaa » 03 Dec 2016, 20:10

Ok, fine, thabks for taking your time trying to fix this weird bug :)
Image
User avatar
STaaVIP++
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Level up: 41.7%
 
Posts: 31
Joined: 02 Dec 2016, 21:56
Location: Paris 11
Gender: Male
Calculator(s):
MyCalcs profile

Re: ICE Compiler

Unread postby PT_ » 03 Dec 2016, 23:24

New update, ICE v1.5. I've added direct key inputting, so very fast checking if a key is pressed, small For loops, which are independant of a variable, and much faster, and CompilePrgm( which compiles a subprogram. Additionally, the graphics library version 3 is supported. Maybe more, but I can't remember :P

Image Download ICE Compiler
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++ » 05 Dec 2016, 17:54

Thank you for this update.
I have an unknown error, on the line remainder(L1(theta),16). ICE don't accept most than one character in the first option of remainder ^^
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 Dec 2016, 00:24

Ti64CLi++ wrote:Thank you for this update.
I have an unknown error, on the line remainder(L1(theta),16). ICE don't accept most than one character in the first option of remainder ^^

Found, fixed, updated, thanks :)
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_ » 07 Dec 2016, 20:25

Guess what?

Image

Took me about 6 hours, and the solution was very simple :P
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: Bobb, ClaudeBot [spider] and 3 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.
Reprise de ton ancienne fx-92 Collège ou Graph 25/35/90 à 3€ peu importe son état. Même non fonctionnelle et donc invendable, même ancienne Graph 35 non conforme aux programmes (pas de Python), même ancienne Graph 25/35 inutilisable aux examens (pas de mode examen) et donc invendable. Etiquette de retour fournie, pas de frais de port à payer.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
12345
-
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.
1132 utilisateurs:
>1087 invités
>37 membres
>8 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)