1

Tiens, en testant KryptonII sur pedrom 0.80, j'ai trouvé un bug dans le rom call WinCharXY
(dans RomCalls.txt, tu dis que ce ROM_CALL est implémenté, mais pas débuggué ; je ne sais pas si ça signifie que tu sais qu'il y a un bug non encore résolu, ou si ça signifie que tu ne sais pas s'il y a un bug... si tu es au courant qu'il y a un bug, désolé pour le report inutile)

Sinon, pour le bug que j'avais en lançant KII, je n'arrive pas à le reproduire, mais j'ai maintenant une Address Error (ou protected memory, ça dépend des fois) au moment de quitter...
Je cherche d'où ça vient (savoir si moi qui ait fait une connerie, ou si ça vient de PedRom), et je te fais un rapport si je pense que ça vient de pedRom :-)
(probablement pas avant ce soir : il va falloir que j'aille en cours dans pas longtemps)

Cet exemple fonctionne sous AMS2.05, et affiche deux fois "Hello World !"
Sous PedRom, il n'affiche "Hello World !" que la première fois, et n'importe quoi la seconde (en fait, j'ai l'impression qu'il affiche le caractère de valeur 0 dans la table ASCII autant de fois qu'il y a de caractères dans "Hello World !").
// Main Function
void _main(void)
{
	const char *text = "Hello World !";
	
	{
		WINDOW win;
	    short x=1, y=1;
	    WinOpen (&win, MakeWinRect (10, 20, 230, 100), WF_SAVE_SCR | WF_TTY);
	    WinActivate (&win);
	    WinFont(&win, F_6x8);
	    WinStrXY(&win, x, y, text);  // Le message "Hello World !" est affiché correctement
	    ngetchx();
	    WinClose (&win);
	}
	
    {
    	WINDOW win;
	    short x=1, y=1, i=0;
	    WinOpen (&win, MakeWinRect (10, 20, 230, 100), WF_SAVE_SCR | WF_TTY);
	    WinActivate (&win);
	    while(text[i])
	    {
	        WinCharXY(&win, x, y, text[i++], 1);   // On n'affiche que des caractères indéterminés (du moins, pas "Hello World !")
	        x+=6;
	        if(x>=220-8 || text[i]=='\n') {x=2; y+=8;}
	        if(text[i]=='\n') i++;
	    }   
	    ngetchx();
	    WinClose (&win);
	}  
}


Qui plus est, une fois l'exécution du programme terminée, il y a deux espaces avant le prompt
(en appuyant sur enter, le prompt revient à gauche de l'écran, de façon normale ; juste un petit bug graphique, je suppose :-))
en gros, une fois le programme fini, on a comme prompt :
" :>" au lieu de ":>"
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

2

Merci. Je vais voir cela. J'ai une petite idee de l'origine du probleme.

3

Merci

de rien, c tout naturel smile
(en fait, j'ai trouvé ça en cherchant l'origine du problème dont je te parlais dans privé... j'utilise pour débugguer une macro qui utilise wincharxy,et qd j'ai vu que ça marchait pas, je me suis dit "autant faire un report" smile)
Je vais voir cela. J'ai une petite idee de l'origine du probleme

ok
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

4

Bug corrige.
Comme d'hab c'est un probleme bete:
j'avais oublie que si en C on ecrit (short, short, char)
en asm, c'est pas:
move.b d0,-(a7)
move.w d1,-(a7)
move.w d3,-(a7)

5

erf, ok smile
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall