home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 348_01 / dis48.h < prev    next >
Text File  |  1991-05-02  |  1KB  |  46 lines

  1. /*
  2. **    header for 8048 disassembler
  3. **    Copyright (c) 1990, Michael G. Panas
  4. */
  5.  
  6. /* #define    MSC    /* Microsoft C complier flag */
  7.  
  8. /*
  9. **    table entry for each opcode
  10. */
  11. struct table {
  12.     char    type;        /* opcode type */
  13.     char    len;        /* opcode length */
  14.     char    width;        /* second tab zone field width */
  15.     char    fill;
  16.     char    *text;        /* text to insert */
  17. };
  18.  
  19. /*
  20. **    type field defines
  21. */
  22. #define    NOP    0        /* no operation on text */
  23. #define    IMM    1        /* immediate data on this opcode */
  24. #define    CAL    2        /* call instuction */
  25. #define    BRA    3        /* short (8 bit ) branch */
  26. #define    JMP    4        /* long jump */
  27. #define    RET    5        /* unconditional return */
  28. #define    DBC    6        /* byte constant */
  29.  
  30. /*
  31. **    symbol table entry structure
  32. */
  33. struct symbol {
  34.     char    flags;        /* symbol table flags */
  35.     char    fill[3];
  36.     int    address;    /* address of this symbol */
  37. };
  38.  
  39. /*
  40. **    defines for flag field
  41. */
  42. #define    USED    1        /* entry used flag */
  43. #define    PRINT    2        /* label printed */
  44.  
  45. #define    SYMS    600        /* number of symbols (max) in table */
  46.