Pourquoi la lecture des touches x y z et t est plus rapide que les autres touches avec la foctions _rowread?
Comment la changer pour la rendre identique aux autre touches?
#define USE_TI89
#include <tigcclib.h>
void _main(void)
{
void tempo(void);
clrscr();
//Sauve auto int + désactivation
INT_HANDLER save_int_1;
save_int_1=GetIntVec(AUTO_INT_1);
SetIntVec(AUTO_INT_1,DUMMY_HANDLER);
//Déclaration des variables
char c=0,exit=0,chaine[24],k=0;
for(k=0;k<24;k++)chaine[k]=0;
k=0;
//Boucle de lecture des touches
do
{
if(_rowread(0x5F)&0x10)c='a';
if(_rowread(0x6F)&0x10)c='b';
if(_rowread(0x77)&0x10)c='c';
if(_rowread(0x7B)&0x10)c='d';
if(_rowread(0x7D)&0x10)c='e';
if(_rowread(0x5F)&0x08)c='f';
if(_rowread(0x6F)&0x08)c='g';
if(_rowread(0x77)&0x08)c='h';
if(_rowread(0x7B)&0x08)c='i';
if(_rowread(0x7D)&0x08)c='j';
if(_rowread(0x5F)&0x04)c='k';
if(_rowread(0x6F)&0x04)c='l';
if(_rowread(0x77)&0x04)c='m';
if(_rowread(0x7B)&0x04)c='n';
if(_rowread(0x7D)&0x04)c='o';
if(_rowread(0x5F)&0x02)c='p';
if(_rowread(0x6F)&0x02)c='q';
if(_rowread(0x77)&0x02)c='r';
if(_rowread(0x7B)&0x02)c='s';
if(_rowread(0x7D)&0x02)c='u';
if(_rowread(0x6F)&0x01)c='v';
if(_rowread(0x77)&0x01)c='w';
if(_rowread(0x7B)&0x01)c=' ';
if(_rowread(0x5F)&0x20)c='x';
if(_rowread(0x6F)&0x20)c='y';
if(_rowread(0x77)&0x20)c='z';
if(_rowread(0x7B)&0x20)c='t';
if((_rowread(0x7B)&0x40)&&k>0)//backspace
{
k--;chaine[k]=0;
clrscr();
printf("%s",chaine);
tempo();
}
if(_rowread(0x7D)&0x40)//Clear
{
for(k=0;k<24;k++)chaine[k]=0;
k=0;
clrscr();
}
if(c!=0 && k<24)//affichage caractère
{
chaine[k]=c;
clrscr();
printf("%s",chaine);
tempo();
c=0;
k++;
}
if(_rowread(0x3F)&0x1)exit=1;
}while(exit==0);
SetIntVec(AUTO_INT_1,save_int_1);
}
void tempo()
{
long a;
for(a=0;a<40000;a++);
}
)