home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / CROSSASM / 68ASMSIM.ZIP / simsrc / var.h < prev   
Encoding:
C/C++ Source or Header  |  1989-04-09  |  1.2 KB  |  47 lines

  1.  
  2. /***************************** 68000 SIMULATOR ****************************
  3.  
  4. File Name: VAR.H
  5. Version: 1.0
  6.  
  7. This file contains all global variable definitions for the simulator 
  8. program.  It is included in the module "sim.c" which contains main().
  9.  
  10.  
  11.  
  12.         BE CAREFUL TO KEEP THESE DECLARATIONS IDENTICAL TO THE GLOBAL
  13.         VARIABLE DECLARATIONS IN "EXTERN.H"
  14.  
  15.  
  16. ***************************************************************************/
  17.  
  18.  
  19. #include "def.h"                   /* include file for constants & types */
  20. #include "proto.h"        /* function prototypes */
  21.  
  22.  
  23. long     D[D_REGS], OLD_D[D_REGS], A[A_REGS], OLD_A[A_REGS];
  24. long     PC, OLD_PC;
  25. short    SR, OLD_SR;
  26. int    cycles, old_cycles;
  27. int     trace, sstep, old_trace, old_sstep, exceptions;
  28.  
  29. char    memory[MEMSIZE];                                /* array for memory */
  30. char    buffer[40], lbuf[82], *wordptr[20];     /* command buffers */
  31. char    bpoints = 0;
  32. int     brkpt[100], wcount;
  33. int     errflg;
  34. int     inst;
  35.  
  36. long    *EA1, *EA2;
  37. long    EV1, EV2;
  38.  
  39. long    source, dest, result;
  40.  
  41. long    global_temp;        /* to hold an immediate data operand */
  42.  
  43. /* port structure is :{control,trans data,status,recieve data} */
  44. unsigned int port1[4] = {0x00,0,0x82,0};    /* simulated 6850 port */
  45. char     p1dif = 0;
  46.  
  47.