home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / CROSSASM / 68ASMSIM.ZIP / asmsrc / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-14  |  1.3 KB  |  50 lines

  1. /***********************************************************************
  2.  *
  3.  *        GLOBALS.C
  4.  *        Global Variable Declarations for 68000 Assembler
  5.  *
  6.  *      Author: Paul McKee
  7.  *        ECE492    North Carolina State University
  8.  *
  9.  *        Date:    12/13/86
  10.  *
  11.  ************************************************************************/
  12.  
  13.  
  14. #include <stdio.h>
  15. #include "asm.h"
  16.  
  17.  
  18. /* General */
  19.  
  20. long    loc;        /* The assembler's location counter */
  21. char    pass2;        /* Flag telling whether or not it's the second pass */
  22. char    endFlag;        /* Flag set when the END directive is encountered */
  23.  
  24.  
  25. /* File pointers */
  26.  
  27. FILE *inFile;        /* Input file */
  28. FILE *listFile;        /* Listing file */
  29. FILE *objFile;        /* Object file */
  30.  
  31.  
  32. /* Listing information */
  33.  
  34. char line[256];        /* Source line */
  35. int lineNum;        /* Source line number */
  36. char *listPtr;        /* Pointer to buffer where a listing line is assembled */
  37. char continuation;    /* TRUE if the listing line is a continuation */
  38.  
  39.  
  40. /* Option flags with default values */
  41.  
  42. char listFlag = FALSE;    /* True if a listing is desired */
  43. char objFlag = TRUE;    /* True if an object code file is desired */
  44. char xrefFlag = FALSE;    /* True if a cross-reference is desired */
  45. char cexFlag = FALSE;    /* True is Constants are to be EXpanded */
  46.  
  47.  
  48. int errorCount, warningCount;    /* Number of errors and warnings */
  49.  
  50.