Ignore:
Timestamp:
Nov 25, 1999, 2:56:34 PM (26 years ago)
Author:
ansari
Message:

archediab 28 vol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Poubelle/archediab.old/archediab.sources/c/tache_archeops_bit2.c

    r645 r649  
    1212
    1313
     14#include "simulmission.h"
    1415
    1516
     
    4243tt->vi.b=0;
    4344tt->vi.c=0;
    44 //init_lit_bit();
    4545}
    4646
     
    4848#define max_fifo  4000
    4949
    50 
    51 //              un bit pour 8 bit en parallele dans la fifo             
    52 /*
    53 char    un_bit(void)
    54 {
    55 static int i;
    56 static unsigned long RR;
    57 i++;
    58 if( (i<0) ou (i>7) )
    59         {
    60         lit_carte;      if(rien_a_lire)         return(bit_vide);       //  fifo vide  ->  retour  ->  sort du while
    61         i=0;
    62         }
    63 if( (RR>>i) & 1 )       return(bit_un);
    64         else            return(bit_zero);
    65 }
    66 
    67 */
    6850
    6951//              un bit pour  fifo avec un seul bit (bit0) et la valeur de la periode en bit 1..6  (37 ou 38)           
     
    10183//tt->nb_lec_fofo_ext=M;
    10284
    103 
    104        
    105 //if( RR & 1 )          return(bit_un);
    106 //else          return(bit_zero);
    107 if( RR & 1 )    return(bit_zero);
     85#ifdef signe_inverse
     86
     87if( RR & 1 )  return(bit_zero);
    10888else            return(bit_un);
    10989
     90#else
     91       
     92if( RR & 1 )    return(bit_un);
     93else            return(bit_zero);
     94
     95#endif
    11096}
    11197
     
    154140                }
    155141        }
    156 
    157 else    while(1)
     142else if (tt->PCI_actif==3)      // simulation donnees mission
     143        {
     144                // EA + JD
     145                // Lecture d'un block depuis le simulateur
     146               
     147                if (SimulMissionBloc(tt)) {
     148               
     149                  // Sauvegarde du bloc dans la file d'attente
     150                  sauve_un_block(tt);
     151                }
     152        }
     153else    while(1)                //  case 1 et 4
    158154        {
    159155        i=lit_bit(&tt->vi.btt);
     
    165161        }
    166162if(lec_fifo > tt->nb_lec_fofo_int)      tt->nb_lec_fofo_int=lec_fifo;
    167 //if(!tt->nb_lec_fofo_ext)              {tt->nb_lec_fofo_ext=tt->nb_lec_fofo_int;tt->nb_lec_fofo_int=0;}
     163if(!tt->val_con_fifo)           {tt->val_con_fifo=tt->nb_lec_fofo_int;tt->nb_lec_fofo_int=0;}
    168164
    169165}
Note: See TracChangeset for help on using the changeset viewer.