You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
419 B
Plaintext
30 lines
419 B
Plaintext
int L = N;
|
|
int O = @;
|
|
|
|
write(){
|
|
P(L);
|
|
tab[ilibre] = V;
|
|
ilibre++;
|
|
if(ilibre==N) iLibre = @;
|
|
|
|
V(O);
|
|
}
|
|
|
|
|
|
read(){
|
|
P(O);
|
|
V = tab[ioccupe];
|
|
ioccupe++;
|
|
if(ioccupe==N) ioccupe = @;
|
|
|
|
V(L);
|
|
}
|
|
|
|
// Problème d'indice en fonction de qui écrit en premier,
|
|
puis problème de si on fini de lire avant de finir d'écrire sur la bonne case
|
|
|
|
multREAD()
|
|
var j;
|
|
P(O);
|
|
P(COM3);
|
|
j = tabTransiOcc[j |