Subversion Repositories pentevo

Rev

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

  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,
  22.   eSymbolSizeFloat64Bit = 6,
  23.   eSymbolSizeFloat96Bit = 7,
  24.   eSymbolSize24Bit = 8,
  25.   eSymbolSizeFloatDec96Bit = 9,
  26.   eSymbolSizeFloat16Bit = 10,
  27.   eSymbolSize12Bit = 11,
  28.   eSymbolSize48Bit = 12,
  29.   eSymbolSizeFloat48Bit = 13,
  30.   eSymbolSize128Bit = 14
  31. } tSymbolSize;
  32.  
  33. #ifdef __cplusplus
  34. #include "cppops.h"
  35. DefCPPOps_Enum(tSymbolSize)
  36. #endif
  37.  
  38. extern const char *GetSymbolSizeName(tSymbolSize Size);
  39.  
  40. extern unsigned GetSymbolSizeBytes(tSymbolSize Size);
  41.  
  42. #endif /* _SYMBOLSIZE_H */
  43.