Subversion Repositories pentevo

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #ifndef _SYMBOLSIZE_H
  2. #define _SYMBOLSIZE_H
  3. /* symbolsize.h */
  4. /*****************************************************************************/
  5. /* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only                     */
  6. /*                                                                           */
  7. /* Macro Assembler AS                                                        */
  8. /*                                                                           */
  9. /* Definition of a symbol's/instruction's operand type & size                */
  10. /*                                                                           */
  11. /*****************************************************************************/
  12.  
  13. typedef enum
  14. {
  15.   eSymbolSizeUnknown = -1,
  16.   eSymbolSize8Bit = 0,
  17.   eSymbolSize16Bit = 1,
  18.   eSymbolSize32Bit = 2,
  19.   eSymbolSize64Bit = 3,
  20.   eSymbolSize80Bit = 4, /* Intel 80 Bit extended float */
  21.   eSymbolSizeFloat32Bit = 5, /* IEEE Single Precision, DEC F, IBM Single Precision */
  22.   eSymbolSizeFloat64Bit = 6, /* IEEE Double Precision, DEC D, IBM Double Precision */
  23.   eSymbolSizeFloat96Bit = 7, /* Motorola Extended Precision */
  24.   eSymbolSize24Bit = 8,
  25.   eSymbolSizeFloatDec96Bit = 9,
  26.   eSymbolSizeFloat16Bit = 10,
  27.   eSymbolSize12Bit = 11,
  28.   eSymbolSize48Bit = 12,
  29.   eSymbolSizeFloat48Bit = 13,
  30.   eSymbolSize128Bit = 14,
  31.   eSymbolSizeFloat128Bit = 15, /* DEC H Floating Point */
  32.   eSymbolSizeFloat64Bit_G = 16 /* DEC G Floating Point */
  33. } tSymbolSize;
  34.  
  35. #ifdef __cplusplus
  36. #include "cppops.h"
  37. DefCPPOps_Enum(tSymbolSize)
  38. #endif
  39.  
  40. extern const char *GetSymbolSizeName(tSymbolSize Size);
  41.  
  42. extern unsigned GetSymbolSizeBytes(tSymbolSize Size);
  43.  
  44. #endif /* _SYMBOLSIZE_H */
  45.