30

g peut etre compris mais faut que je verifie smile
En préretraitre

31

ben non en fait sad
En préretraitre

32

dommage
:D

33

#courage# je finirai par trouver grin
En préretraitre

34

apres une bataille acharnée, je vais pouvoir me replonger dans ce bug grin
En préretraitre

35

ouarf grin
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

36

picoltsssmournsickbang
tsssmournsickbangpicol
mournsickbangpicoltsss
sickbangpicoltsssmourn
bangpicoltsssmournsick

g touvé mon bug mais je ne vous le dirais pas grin
[edit]Edité par gugusg le 27-12-2001 à 17:16:52[/edit]
En préretraitre

37

bah tan mieu grin
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

38

vaudrai mieux pour moi picol
En préretraitre

39

euh, tan mieu ke tu l'ai trouvé je voulais dire wink
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

40

on avait tous compris grin
En préretraitre

41

optimise ton algo!
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

42

c ce que je fait rotfl
En préretraitre

43

bon, g essayé d'optimiser du mieux que j'ai put sad
j'ai remplacé ma routine dans la page precedente donc si qqn voit des ameliorations possibles, qu'il me fasse signe smile
En préretraitre

44

merci à sBibi pour les amélioration qu'il a apporté smile
En préretraitre

45

bah, 2ri1 smile
pkoi tu la mets pas sur la nvelle page ta routine? ce serait mieu kan même grin
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

46

bon smile

demandez moi si vous la voulez smile
[edit]Edité par gugusg le 29-12-2001 à 23:12:15[/edit]
En préretraitre

47

ba vala, c + pratik kan même grin
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

48

C'est en rapport, la fonction de recopie de plans que tu m'a demandé ?
avatar
Un site complet sur lequel vous trouverez des programmes et des jeux pour votre calculatrice TI 89 / Titanium / 92+ / Voyage 200 : www.ti-fr.com.
Quelques idées personnelles ici.

49

non non, c juste pour optimiser mon prog
je vois pas comment on peut faire plus rapide que je t'ai montré confus:
screenswap:
        move.l  graphlib::plane0,a0
        move.l  graphlib::plane1,a2
        lea     virt_screen1,a1
        lea     virt_screen2,a3
        move.w  #958,d0
swplane:
        move.l  (a1)+,(a0)+
        move.l  (a3)+,(a2)+
        dbf     d0,swplane
        move.l  (a1)+,(a0)
        move.l  (a3)+,(a2)
        rts
En préretraitre

50

Moi aussi je ne voyais pas jusqu'à ce que PpHd m'explique un jour wink
Ca commence à devenir une habitude, mais bon voici donc un extrait de la bibliothèque Azur grin
Cette fois-ci c'est graph.azr :
GX_CopyBuffer:
 movem.l d3-d7/a2-a7,GXSvgReg
 move.l  4(a7),a6
 move.l  8(a7),a7
 moveq   #11,d7
CB_loop:
 movem.l (a7)+,d0-d6/a0-a5
 movem.l d0-d6/a0-a5,(a6)
 movem.l (a7)+,d0-d6/a0-a5
 movem.l d0-d6/a0-a5,52(a6)
 movem.l (a7)+,d0-d6/a0-a5
 movem.l d0-d6/a0-a5,104(a6)
 movem.l (a7)+,d0-d6/a0-a5
 movem.l d0-d6/a0-a5,156(a6)
 movem.l (a7)+,d0-d6/a0-a5
 movem.l d0-d6/a0-a5,208(a6)
 movem.l (a7)+,d0-d6/a0-a5
 movem.l d0-d6/a0-a5,260(a6)
 lea     312(a6),a6
 dbf     d7,CB_loop
 movem.l (a7)+,d0-d6/a0-a5
 movem.l d0-d6/a0-a5,(a6)
 movem.l (a7),d0-d6/a0-a3
 movem.l d0-d6/a0-a3,52(a6)
 movem.l GXSvgReg(pc),d3-d7/a2-a7
 rts


GXSvgReg:
 ds.l    16


Je te file le prototype pour que tu saches comment l'utiliser : void GX_CopyBuffer (void *PlaneDest, void*PlaneSrc);
avatar
Un site complet sur lequel vous trouverez des programmes et des jeux pour votre calculatrice TI 89 / Titanium / 92+ / Voyage 200 : www.ti-fr.com.
Quelques idées personnelles ici.

51

confus
tu les mets ou tes planes
tu pourrait aussi (si tu as le temps smile) m'expliquer comment marche cette routine
smile merci d'avance
En préretraitre

52

1ère question : le prototype te répond !!
1- Tu pousses d'abord sur a7 l'adresse du buffer source, puis l'adresse du plane où copier.
2- Tu appelles. Attention, conformément à la convention C, a0/a1/d0/d1/d2 sont détruits !
3- Tu dépiles.

2ème qst : Bah tu lis c'est facile à comprendre roll
avatar
Un site complet sur lequel vous trouverez des programmes et des jeux pour votre calculatrice TI 89 / Titanium / 92+ / Voyage 200 : www.ti-fr.com.
Quelques idées personnelles ici.

53

c pas du C confus
et je ne connait pas le C de toute facon sad
En préretraitre

54

C'est une fonction prévue pour être appelée par un code écrit en Azur... donc en C attention

T'as pas besoin de connaître le C, j'ai tout expliqué roll
avatar
Un site complet sur lequel vous trouverez des programmes et des jeux pour votre calculatrice TI 89 / Titanium / 92+ / Voyage 200 : www.ti-fr.com.
Quelques idées personnelles ici.

55

oui, mais apres
la première fois je ne pouvais pas comprendre qu'il fallait empiler les plane dans a7 sans connaitre le C grin
En préretraitre

56

bah apres...
tu as le pointeur vers ton screen buffer dans a7, tu fé un movem, ça recopie un bout dans d0-d6/a0-a5 (dc 13*4*8 pixels)
et ça refait un movem de tout ça dans a6, où il y a le pointeur vers l'addr de la mem écran smile

move.l 4(a7),a6 ça te mets l'addr de l'écran dans a6 et pareil pour le vbuffer dans a7
move.l 8(a7),a7

4 pke il y a eu un bsr avant pour accéder à cette routine...
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

57

enfin, tu as tjrs la méthode bourrin grin

Recopie_screen:
lea saved_sp(pc),a0
move.l sp,(a0)
move.l a1,a7
copy_screen:
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*2
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*3
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*4
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*5
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*6
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*7
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*8
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*9
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*10
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*11
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*12
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*13
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*14
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*15
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*16
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*17
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*18
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*19
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*20
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*21
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*22
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*23
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*24
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*25
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*26
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*27
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*28
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*29
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*30
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*31
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*32
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*33
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*34
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*35
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*36
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*37
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*38
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*39
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*40
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*41
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*42
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*43
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*44
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*45
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*46
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*47
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*48
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*49
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*50
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*51
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*52
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*53
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*54
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*55
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*56
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*57
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*58
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*59
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*60
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*61
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*62
movem.l (a7)+,d0-d7/a0-a6
movem.l d0-d7/a0-a6,$4c00+15*4*63
movea.l saved_ssp(pc),a7
movem.l (sp),d0-d7/a0-a6
rts
saved_sp dc.l 0
grin
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

58

rotflrotflrotflrotflrotflrotflrotfl
(tu veux pas essayer avec des move.l et sans aucun movem.l ?????)
Y a deux fesses qui sont sur la plage et l'une dit à l'autre :
"Qu'est ce qu'on fait maintenant ?"
Et l'autre lui répond :
"Ben PROUT !!!"

59

tien ba puisk'on est dans les movem, tu dois pouvoir accélérer un pe+ ça:

 move.w  #6,d1 ;8
 moveq.l #0,d5;4
boucle1:
 move.l  d5,(a2)+;12
 move.l  d5,(a3)+;12
 dbf     d1,boucle1;10+4 pour la dernière interprétation de dbf
 move.l  d5,(a2);12
 move.l  d5,(a3);12
;244 cycles

et même en déroulant la boucle, ça te fera au mieux dans les 180 cycles...

après, de tte façons, t'efface d4,d5,d6 et d7
et ossi a0,a1,a4 et a5

ce qui fé 8 regs de dispo, et il t'en faut 7

dc tu pe faire:

moveq.l #0,d4;4
move.l d4,d5;4
move.l d4,d6;4
move.l d4,d7;4
move.l d4,a0;4
move.l d4,a1;4
move.l d4,a4;4
movem.l d4-d7/a0/a1/a4,(a2);12+28
movem.l d4-d7/a0/a1/a4,(a3);12+28
;108 cycles

[edit]Edité par sBibi le 30-12-2001 à 23:58:16[/edit]
In many respects the Yoshi is like a beautiful woman. A man can come so enamoured that he bestows on her all his time, his energy and his fortune.
- Fred whipple, 1960

*** Ne sous-estimez pas la puissance de la Marmotte ***
© Marmotte Team : LaMarmotte, sBibi, Vark & Sabrina

60

attention Vos movem planteront sur HW1 si la source est en mémoire archive (à cause de leur protection anti-exécution mal faite qui traîte toutes 3 lectures consécutives comme l'exécution d'instructions).
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité