295Fermer297
geogeoLe 04/11/2003 à 21:08
Voici la nouvelle fonction:
;C prototype: void DrawScreen2 (void *sprt, void *dest);
;
;void DrawScreen2 (register long *sprt asm("%a0"),
;		 register void *dest asm("%a1"));


	section ".data"
	xdef DrawScreen2

DrawScreen2:
	lea	322(a1),a1
	moveq.l	#5,d2

\rep:
	moveq.l	#31,d0

;Sprite totale	
\b0:	
;Gris clair
	move.l	(a0)+,d1
	move.l	d1,(a1)+
	move.l	d1,(a1)+
	move.l	d1,(a1)+
	move.l	d1,(a1)+
	move.l	d1,(a1)+
	move.l	d1,(a1)+
	
	;16 pixels
	move.b	-4(a0),(a1)
	
	lea 	8000-24(a1),a1
		
;Gris foncé
	move.l 	(a0)+,d1
	move.l	d1,(a1)+
	move.l	d1,(a1)+
	move.l	d1,(a1)+
	move.l	d1,(a1)+
	move.l	d1,(a1)+
	move.l	d1,(a1)+
	
	;16 pixels
	move.b	-4(a0),(a1)
	
	lea 	16-8000(a1),a1
	dbf	d0,\b0
	
	lea 	-32*8(a0),a0 
	dbf	d2,\rep
	rts


Alors là je suis eek depuis le dernier test de fps, j'arrive à 60 fps, ce que je voulais, de plus je suis motivé pour bosser sur les autres fonctions. smile