

Je veux gere tout seul le passage a ma fonction asm comme cela:
#define Sprite16x16_MASK(x,y,sprite) ({ asm ("movem.l %d0-%d4/%a0-%a3,-(%a7)") asm ("move.w %0,%%d0" :: "d"(x)); asm ("move.w %0,%%d1" :: "d"(y)); asm ("move.l %0,%%a0" :: "g"(sprite)); asm ("bsr Sprite_16_MASK") })
Cela devrai marcher theoriquement tout les registres sont sauve etc.. mais malheureusement ca marche pas.... puis a chaque fois il me met implicite declaration de ma fct asm... ca me gave un peu.. alors si qqn pouvais me donner une solution rapide et simple ca eviterait que je m'arrache les tripes

merci

NB: je restaure les registre dans la fonction graphique, pour eviter une perte trop importante d'octet

[edit]Edité par TiMad le 30-10-2001 à 00:20:15[/edit]