/*************************************************************************************************************************************/ /* */ /* E D I T I O N H E X A - D E C I M A L E D ' U N N O M B R E F L O T T A N T : */ /* */ /* */ /* Nota : */ /* */ /* Cette commande a ete introduite */ /* afin de permettre d'editer exhaustivement */ /* tous les bits (en hexa-decimal) d'une */ /* valeur flottante, par exemple, apres son */ /* introduction par 'GET_ARGUMENT_F(...)', ce */ /* qui permet de voir si plusieurs machines */ /* differentes utilisent bien les memes valeurs */ /* initiales (jusqu'au bit le moins significatif). */ /* */ /* De plus, le 20100217094256, cette commande */ /* pourra etre "pipee" vers : */ /* */ /* $SE -f $xo/HexaDecimal_Binaire$sed */ /* */ /* qui editera alors du binaire... */ /* */ /* */ /* Author of '$xcg/print_F_hexa$K' : */ /* */ /* Jean-Francois COLONNA (LACTAMME, 1996??????????). */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* I N T E R F A C E ' listG ' : */ /* */ /* */ /* :Debut_listG: */ /* :Fin_listG: */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* D I R E C T I V E S S P E C I F I Q U E S D E C O M P I L A T I O N : */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* F I C H I E R S D ' I N C L U D E S : */ /* */ /*************************************************************************************************************************************/ #include INCLUDES_MINI /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* P A R A M E T R E S : */ /* */ /*************************************************************************************************************************************/ #define NOMBRE_FLOTTANT \ FU \ /* Nombre flottant a editer... */ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* M A C R O S U T I L E S : */ /* */ /*************************************************************************************************************************************/ /*===================================================================================================================================*/ /*************************************************************************************************************************************/ /* */ /* E D I T I O N H E X A - D E C I M A L E D ' U N N O M B R E F L O T T A N T : */ /* */ /*************************************************************************************************************************************/ BCommande(nombre_d_arguments,arguments) /*-----------------------------------------------------------------------------------------------------------------------------------*/ Bblock DEFV(Float,INIT(nombre_flottant,NOMBRE_FLOTTANT)); /* Nombre flottant a editer... */ /*..............................................................................................................................*/ GET_ARGUMENTS_(nombre_d_arguments ,BLOC(GET_ARGUMENT_F("x=""nombre=",nombre_flottant); ) ); CALS(Fsortie_Float(nombre_flottant)); /* Conversion hexa-decimale, */ CAL2(Prin1("%s\n",ASD2(zone_de_conversion,binaire_equivalent,chaine_alpha_numerique))); /* Et edition... */ RETU_Commande; Eblock ECommande