root/include/word.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef YACASL2_WORD_H_INCLUDED
   2 #define YACASL2_WORD_H_INCLUDED
   3 
   4 #include <stdbool.h>
   5 
   6 /**
   7  * @brief 16ビットの数値を表すデータ型
   8  */
   9 typedef unsigned short WORD;
  10 
  11 /**
  12  * @brief wordデータ型についてのエラーをエラーリストに追加する
  13  *
  14  */
  15 void addcerrlist_word();
  16 
  17 /**
  18  * @brief 10進数または16進数の文字列をWORD値に変換する
  19  *
  20  * @return WORD値
  21  *
  22  * @param *str 10進数または16進数の文字列
  23  */
  24 WORD nh2word(const char *str);
  25 
  26 /**
  27  * @brief WORD値を10進数値を表す文字列に変換する
  28  *
  29  * @return 10進数値を表す文字列
  30  *
  31  * @param *word WORD値
  32  */
  33 char *word2n(WORD word);
  34 
  35 /**
  36  * @brief WORD値を2進数の文字列に変換する
  37  *
  38  * @return 2進数値を表す文字列
  39  *
  40  * @param word WORD値
  41  */
  42 char *word2bit(const WORD word);
  43 
  44 /**
  45  * @brief WORD値を解析して表示する
  46  *
  47  * @param word WORD値
  48  * @param logicalmode 論理演算の場合はtrue、算術演算の場合はfalse
  49  */
  50 void print_dumpword(WORD word, bool logicalmode);
  51 
  52 #endif

/* [<][>][^][v][top][bottom][index][help] */