quel est la valeur pour OSSetSR() pour reactiver juste l'int5 ???, ou alors celle qui les desactive toutes sauf la 5eme ?
je cherche un moyen plus rapide que de toutes les rediriger sauf la 5eme
asm(" move.w #400,d0 TRAP #1 ")
INT_HANDLER oldint7 = NULL; INT_HANDLER oldint6 = NULL; INT_HANDLER oldint5 = NULL; volatile int mseconds50 =0; volatile short count; DEFINE_INT_HANDLER (myint5handler) { mseconds50--;} DEFINE_INT_HANDLER (myint7handler) { } DEFINE_INT_HANDLER (myint6handler) { } void bench() { unsigned long k=0; //INITIALISATION// clrscr(); ////////////////// DrawStr(0,90,"Bench GO!",A_NORMAL); oldint5 = GetIntVec(AUTO_INT_5); SetIntVec(AUTO_INT_5, myint5handler); oldint6 = GetIntVec(AUTO_INT_6); SetIntVec(AUTO_INT_6, myint6handler); oldint7 = GetIntVec(AUTO_INT_7); SetIntVec(AUTO_INT_7, myint7handler); asm(" movem.l %d0,-(%a7) move.w #400,%d0 TRAP #1 movem.l (%a7)+,%d0 ") k=0; mseconds50 =20; while (mseconds50) { //RUOTINE 1// Sprite_16_MASK3(); ///////////// k++; } printf_xy(0,0,"Ptite r: %ld /s",k); k=0; mseconds50=20; while (mseconds50) { //ROUTINE 2// pxl_noir(); ///////////// k++; } printf_xy(0,10,"Must?: %ld Sp",k); SetIntVec(AUTO_INT_5, oldint5); SetIntVec(AUTO_INT_6, oldint6); SetIntVec(AUTO_INT_7, oldint7); asm(" movem.l %d0,-(%a7) clr.w %d0 TRAP #1 movem.l (%a7)+,%d0 ") ngetchx(); }