home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 363_01 / globals.c < prev    next >
C/C++ Source or Header  |  1991-12-17  |  2KB  |  51 lines

  1. /***********************************************************************
  2.  *
  3.  *      GLOBALS.C
  4.  *      Global Variable Declarations for 68020 Assembler
  5.  *
  6.  *      Author: Paul McKee
  7.  *      ECE492    North Carolina State University,  12/13/86
  8.  *
  9.  *      Modified A.E. Romer     16 March 1991
  10.  *      Version 1.0
  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. char    noOperand;      /* TRUE if the instruction has no operand.
  24.                          * Used by listLine. */
  25.  
  26. /* File pointers */
  27.  
  28. FILE *inFile;       /* Input file */
  29. FILE *listFile;     /* Listing file */
  30. FILE *objFile;      /* Object file */
  31.  
  32.  
  33. /* Listing information */
  34.  
  35. char line[LBUF_SIZE];                                 /* Source line buffer */
  36. int lineNum;                                          /* Source line number */
  37. char *listPtr;       /* Pointer to buffer where a listing line is assembled */
  38. char continuation;            /* TRUE if the listing line is a continuation */
  39.  
  40.  
  41. /* Option flags with default values */
  42.  
  43. char listFlag = FALSE;                      /* True if a listing is desired */
  44. char objFlag = TRUE;              /* True if an object code file is desired */
  45. char xrefFlag = FALSE;              /* True if a cross-reference is desired */
  46. char cexFlag = FALSE;               /* True is Constants are to be EXpanded */
  47.  
  48.  
  49. int errorCount, warningCount;              /* Number of errors and warnings */
  50.  
  51.