"Fossies" - the Fresh Open Source Software Archive

Member "alec64-1.13/src/config.h" (27 Sep 1996, 7935 Bytes) of package /linux/misc/old/alec64-1.13.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2 **  The C64 emulator
    3 **
    4 **  Copyright 1996 by ALE.
    5 **  written by Lutz Sammer.
    6 **
    7 **  Configuration header file.
    8 **
    9 **-----------------------------------------------------------------------------
   10 ** $Id: config.h,v 1.4 1996/07/03 23:42:19 ari Exp root $
   11 ** $Log: config.h,v $
   12 ** Revision 1.4  1996/07/03 23:42:19  ari
   13 ** New defines for 1541. DSP and GO32 check removed.
   14 **
   15 ** Revision 1.3  1996/06/13 00:08:27  ari
   16 ** Moved PCSOLARIS autodetection to here.
   17 **
   18 ** Revision 1.2  1996/06/09 19:58:22  johns
   19 ** Release 1.12 configuration.
   20 **
   21 ** Revision 1.1  1996/05/12 20:50:23  johns
   22 ** Initial revision
   23 **
   24 **-----------------------------------------------------------------------------
   25 */
   26 
   27 #ifndef __CONFIG_H__    /* { */
   28 #define __CONFIG_H__
   29 
   30 /******************************************************************************
   31  *  Features config
   32  *****************************************************************************/
   33 
   34 #undef  DEBUG               /* If want debugging */
   35 
   36 #define MONITOR             /* Include monitor */
   37 
   38 #define ALE_RAM             /* ALE ram at D200-D3FF D600-D7FF */
   39 
   40 #define PAL             /* Emulate PAL C64 */
   41 
   42 #ifndef PAL
   43 #define NTSC                /* Emulate NTSC C64 (never checked) */
   44 #endif
   45 
   46 /******************************************************************************
   47  *  Machine config
   48  *****************************************************************************/
   49 
   50 /*
   51 **  Video driver.
   52 **      Choose one of the listed.
   53 */
   54 #define noX11               /* X11 display */
   55 #define noSVGALIB           /* linux svga library */
   56 
   57 #ifdef __GO32__             /* AUTO DETECTION */
   58 #undef X11              /* go32 vga library */
   59 #undef SVGALIB
   60 #endif
   61 
   62 /******************************************************************************
   63  *  Speed config
   64  *****************************************************************************/
   65 
   66 /*
   67 **  Define this to pass arguments in registers for selected functions.
   68 */
   69 #define USE_REGPARM         /* parse args to config as registers */
   70 
   71 /*
   72 **  Define this to pass arguments in globals for selected functions.
   73 */
   74 #undef  GLOBAL_ARGS         /* parse args to config as globals */
   75 
   76 /*
   77 **  Define this to test the alternative memory interface.
   78 **      (FIXME: currently not full implemented).
   79 */
   80 #define noNEW_MEMORY
   81 
   82 /******************************************************************************
   83  *  VIC config
   84  *****************************************************************************/
   85 
   86 /*
   87 **  Define VIDEOSYNC to include syncronise code.
   88 */
   89 #define VIDEOSYNC
   90 
   91 /*
   92 **  Define OVERSCAN to emulate overscan area.
   93 */
   94 #define noOVERSCAN
   95 
   96 /*
   97 **  Controls the default time needed for vic emulation.
   98 **      1   Emulate/Refresh each frame.
   99 **      n   Emulate/Refresh 1/n frame.
  100 */
  101 #define VIC_EMULATE_RATE    2   /* recalulation rate */
  102 #define VIC_REFRESH_RATE    1   /* refresh rate */
  103 
  104 /*
  105 **  Control the vic fetch position default.
  106 */
  107 #define VIC_FETCH_DEFAULT   13  /* position irq before fetch */
  108 #define VIC_FETCH_ADD_DEFAULT   2   /* increment line before irq */
  109 
  110 /*.............................................................................
  111  *  VIC X11 sub-config
  112  *...........................................................................*/
  113 
  114 /*
  115 **  How to get the colors for window.
  116 **
  117 **      COLORMAP0   Allocate 16 colors from default colormap.
  118 **              Slowest, but looks better.
  119 **      COLORMAP16  Allocate 16 continuous colors from colormap.
  120 **              Middle, but can fail to alloc colors.
  121 **      COLORMAP256 Allocate 256 colors with own colormap.
  122 **              Fastest, but ugly colormap switches.
  123 **      COLORMAP16bpp   Colormap support for 16bpp X11 server.
  124 */
  125 #define noCOLORMAP0         /* use colors get from X11 */
  126 #define noCOLORMAP16            /* use 16 continuous colors */
  127 #define noCOLORMAP256           /* use full colormap */
  128 #define noCOLORMAP16bpp         /* 16bpp X11 server */
  129 
  130 /*
  131 **  Sync with X11.
  132 **      Wait until X11 has redrawn window.
  133 **      For slow computers this gives a better X11 handling.
  134 **      For fast computers this cost speed, X11 and C64 emulator
  135 **      aren't running parallel.
  136 */
  137 #define XSYNC               /* use XSync call */
  138 
  139 /*
  140 **  We need no autorepeat for the emulator.
  141 **  Defines this to turn autorepeat off in c64 window.
  142 */
  143 #define XREPEATOFF          /* turn of auto repeat */
  144 
  145 /*
  146 **  Don't know how to get the setting of the switch ServerNumLock
  147 **  from /etc/XF86Config from the client side.
  148 **  Set this same as in the XFree86 config file.
  149 **  -or-
  150 **  X11 Servers of other machines (SOLARIS 2.4 i86) need this set.
  151 */
  152 #undef  XSERVER_NUM_LOCK        /* different num-lock handling */
  153 
  154 /******************************************************************************
  155  *  SID config
  156  *****************************************************************************/
  157 
  158 /*
  159 **  Supported sid emulations.
  160 **      Choose one of the listed.
  161 */
  162 #define noSID_NONE          /* NO SOUND SUPPORT */
  163 #define noSID_SPEAKER           /* Use speaker for sid emulation */
  164 #define noSID_DSP_SPEAKER       /* Use digital speaker for sid emu */
  165 #define noSID_SPEAKER           /* Use speaker for sid emulation */
  166 #define noSID_DSP           /* Use dsp for sid emulation */
  167 #define noSID_OPL3          /* Use synth chip for sid emulation */
  168 #define noSID_AUTO          /* not supported: future feature */
  169 
  170 /******************************************************************************
  171  *  JOYSTICK config
  172  *****************************************************************************/
  173 
  174 /*
  175 **  Choose one of the below.
  176 */
  177 #define noGAMEPORT_JOY          /* C64 joystick conn. to game-port */
  178 #define noLP_JOY            /* C64 joystick conn. to lp-port */
  179 #define noPC_ANALOG_JOY         /* PC Analog joystick */
  180 
  181 /******************************************************************************
  182  *  1541 config
  183  *****************************************************************************/
  184 
  185 /*
  186 **  1541 emulation configuration:
  187 **      Enable/Disable features.
  188 */
  189 
  190 #define noDIRFILE           /* 1541 dirfile support (obsolete) */
  191 
  192 #define ALWAYS_SAVE_P00         /* 1541 write x00 format */
  193 
  194 #define PRINTER_SUPPORT         /* Support iec printer emulation */
  195 
  196 /*----------------------------------------
  197 **  Real 1541 emulation configuration:
  198 */
  199 #define REAL1541            /* Emulate the real 1541 */
  200 
  201 /*
  202 **  Serial timeout:
  203 **      in 1/50s (50 is 1s)
  204 **      This time the 1541 and c64 are hold cycle syncron.
  205 */
  206 #define SERIAL_TIMEOUT  "50"        /* serial timeout */
  207 
  208 /*---------------------------------------------------------------------------*/
  209 
  210 /*
  211 **  Names of used files.
  212 */
  213 #ifndef C64DEFAULT          /* Path to the default settings */
  214 #   define C64DEFAULT   "/etc/default/c64"
  215 #endif
  216 
  217 #ifndef C64IMAGE            /* Path to the rom images */
  218 #   define C64IMAGE "romimage.c64"
  219 #endif
  220 
  221 #ifndef C64EXROM            /* Path to the external rom image */
  222 #   define C64EXROM "external.c64"
  223 #endif
  224 
  225 #ifndef C64AUTOLOAD         /* File to load at startup */
  226 #   define C64AUTOLOAD  "autoload.c64"
  227 #endif
  228 
  229 #ifndef C64LIB              /* Program library database */
  230 #   define C64LIB   "lib.c64"
  231 #endif
  232 
  233 #ifndef C64SNAPSHOT         /* File to save snapshot */
  234 #   define C64SNAPSHOT  "snapshot.c64"
  235 #endif
  236 
  237 #ifndef R1541IMAGE          /* Path to the 1541 rom images */
  238 #define R1541IMAGE  "1541roms.c64"
  239 #endif
  240 
  241 /*---------------------------------------------------------------------------*/
  242 
  243 /*
  244 **  Some automatic detections.
  245 */
  246 #if defined(sun) && defined(i386)
  247 #define PCSOLARIS
  248 #define __USES_AS__         /* automatic detection */
  249 #define XSERVER_NUM_LOCK        /* different num-lock handling */
  250 #endif
  251 
  252 #ifdef __GO32__
  253 #undef PRINTER_SUPPORT
  254 #undef X11              /* go32 vga library */
  255 #undef SVGALIB
  256 #endif
  257 
  258 /*---------------------------------------------------------------------------*/
  259 
  260 /*
  261 **  Test config combinations.
  262 */
  263 #if defined(VIDEOSYNC) && defined(SID_DSP)
  264 // That's not realy true, you only get bad sound.
  265 // #warning "Can't use videosync combined with sid dsp driver"
  266 #endif
  267 
  268 #if !defined(__GO32__) && (defined(SID_DSP_SPEAKER))
  269 #warning "DSP SPEAKER not supported on this machine"
  270 #endif
  271 
  272 #if !defined(noSID_NONE) && !defined(noSID_SPEAKER) &&          \
  273     !defined(noSID_DSP_SPEAKER) && !defined(noSID_SPEAKER) &&       \
  274     !defined(noSID_DSP) && !defined(noSID_OPL3) && !defined(noSID_AUTO)
  275 #warning "One SID driver must be specified!"
  276 #endif
  277 #endif /* } !__CONFIG_H__ */