π
<-
Chat plein-écran
[^]

ICE Compiler

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

Re: ICE Compiler

Message non lude Ti64CLi++ » 03 Déc 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
Avatar de l’utilisateur
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 32.3%
 
Messages: 3441
Images: 75
Inscription: 04 Juil 2014, 14:40
Localisation: Clermont-Ferrand 63
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: ENS Rennes
GitHub: Ti64CLi

Re: ICE Compiler

Message non lude PT_ » 03 Déc 2016, 16:13

Ehm, did I it right?

Image
Age of CEmpires I - In progress!
40%
Avatar de l’utilisateur
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Prochain niv.: 57.2%
 
Messages: 259
Inscription: 09 Fév 2016, 23:06
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ICE Compiler

Message non lude STaa » 03 Déc 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
Avatar de l’utilisateur
STaaVIP++
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 41.7%
 
Messages: 31
Inscription: 02 Déc 2016, 21:56
Localisation: Paris 11
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ICE Compiler

Message non lude PT_ » 03 Déc 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%
Avatar de l’utilisateur
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Prochain niv.: 57.2%
 
Messages: 259
Inscription: 09 Fév 2016, 23:06
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ICE Compiler

Message non lude PT_ » 03 Déc 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%
Avatar de l’utilisateur
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Prochain niv.: 57.2%
 
Messages: 259
Inscription: 09 Fév 2016, 23:06
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ICE Compiler

Message non lude STaa » 03 Déc 2016, 20:10

Ok, fine, thabks for taking your time trying to fix this weird bug :)
Image
Avatar de l’utilisateur
STaaVIP++
Niveau 11: LV (Légende Vivante)
Niveau 11: LV (Légende Vivante)
Prochain niv.: 41.7%
 
Messages: 31
Inscription: 02 Déc 2016, 21:56
Localisation: Paris 11
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ICE Compiler

Message non lude PT_ » 03 Déc 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%
Avatar de l’utilisateur
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Prochain niv.: 57.2%
 
Messages: 259
Inscription: 09 Fév 2016, 23:06
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ICE Compiler

Message non lude Ti64CLi++ » 05 Déc 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
Avatar de l’utilisateur
Ti64CLi++Modo
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 32.3%
 
Messages: 3441
Images: 75
Inscription: 04 Juil 2014, 14:40
Localisation: Clermont-Ferrand 63
Genre: Homme
Calculatrice(s):
MyCalcs profile
Classe: ENS Rennes
GitHub: Ti64CLi

Re: ICE Compiler

Message non lude PT_ » 06 Déc 2016, 00:24

Ti64CLi++ a écrit: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%
Avatar de l’utilisateur
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Prochain niv.: 57.2%
 
Messages: 259
Inscription: 09 Fév 2016, 23:06
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: ICE Compiler

Message non lude PT_ » 07 Déc 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%
Avatar de l’utilisateur
PT_Programmeur
Niveau 13: CU (Calculateur Universel)
Niveau 13: CU (Calculateur Universel)
Prochain niv.: 57.2%
 
Messages: 259
Inscription: 09 Fév 2016, 23:06
Genre: Homme
Calculatrice(s):
MyCalcs profile

PrécédenteSuivante

Retourner vers Langages alternatifs

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 8 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
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
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1224 utilisateurs:
>1196 invités
>23 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)