]> git.sur5r.net Git - cc65/commitdiff
Added declarations for target-specific static drivers being part of the C library.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 7 Nov 2012 23:20:58 +0000 (23:20 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 7 Nov 2012 23:20:58 +0000 (23:20 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5925 b7a2c559-68d2-44c3-8de9-860c34a00d81

14 files changed:
doc/funcref.sgml
include/apple2.h
include/atari.h
include/atmos.h
include/c128.h
include/c16.h
include/c64.h
include/cbm510.h
include/cbm610.h
include/lynx.h
include/nes.h
include/pet.h
include/plus4.h
include/vic20.h

index 55ec7d08b16cec44db0415014eb74166020d38f6..05e2b66b8dc2fbfcd09bfa043f3f50ad6d94e616 100644 (file)
@@ -5113,8 +5113,6 @@ be used in presence of a prototype.
 <verb>
 #include <serial.h>
 
-extern void lynx_comlynx[];
-
 static void initialize(){
   struct ser_params params = {
     SER_BAUD_9600,
@@ -5179,9 +5177,7 @@ used in presence of a prototype.
 <ref id="ser_uninstall" name="ser_uninstall">,
 <ref id="ser_unload" name="ser_unload">
 <tag/Example/<verb>
-extern void lynx_comlynx[]; //Include the driver statically instead of loading it.
-
-ser_install(lynx_comlynx);
+ser_install(lynx_comlynx); //Include the driver statically instead of loading it.
 </verb>
 </descrip>
 </quote>
@@ -5246,8 +5242,6 @@ be used in presence of a prototype.
 <verb>
 #include <serial.h>
 
-extern void lynx_comlynx[];
-
 static void initialize(){
   struct ser_params params = {
     SER_BAUD_9600,
index b81e6bedd3b93de35bdf62d9fed46fc0cd732640..89bee060ac5a514b186d9d969916cec3863f39c9 100644 (file)
@@ -141,6 +141,14 @@ extern unsigned char _dos_type;
 extern unsigned char _filetype;  /* Default 6 */
 extern unsigned int  _auxtype;   /* Default 0 */
 
+/* The addresses of the static drivers */
+extern void apple2_auxmem[];
+extern void apple2_stdjoy[];     /* Referred to by joy_static_stddrv[]   */
+extern void apple2_stdmou[];     /* Referred to by mouse_static_stddrv[] */
+extern void apple2_ssc[];
+extern void apple2_280_192_8[];  /* Referred to by tgi_static_stddrv[]   */
+extern void apple2_40_48_16[];
+
 
 
 /*****************************************************************************/
index f22479095b5649dc42b213747204347fd8f31895..c4c048f2930955f67e254ed462dcc8dd14bed53c 100644 (file)
@@ -151,6 +151,24 @@ extern char *_getdefdev(void);          /* get default floppy device */
 
 /* global variables */
 extern unsigned char _dos_type;        /* the DOS flavour */
+extern void atari_130xe[];
+extern void atari_stdjoy[];            /* referred to by joy_static_stddrv[] */
+extern void atari_multijoy[];
+extern void atari_10[];
+extern void atari_10p2[];
+extern void atari_11[];
+extern void atari_14[];
+extern void atari_15[];
+extern void atari_15p2[];
+extern void atari_3[];
+extern void atari_4[];
+extern void atari_5[];
+extern void atari_6[];
+extern void atari_7[];
+extern void atari_8[];                 /* referred to by tgi_static_stddrv[] */
+extern void atari_8p2[];
+extern void atari_9[];
+extern void atari_9p2[];
 
 /* provide old names for backwards compatibility */
 #ifdef ATARI_COMPAT_PRE_2_11
index 90bc17f8657441eb19fd96d1627a4137598947b7..13427bd88824ccbfef9107c0968414e2e3794338 100644 (file)
 
 
 
+/* The addresses of the static drivers */
+extern void atmos_pase[];      /* Referred to by joy_static_stddrv[] */
+extern void atmos_acia[];
+extern void atmos_240_200_2[]; /* Referred to by tgi_static_stddrv[] */
+
+
+
 void __fastcall__ atmos_load(const char* name);
 /* Load Atmos tape. */
 
index 973a04ceba517de0c60d7cded635e81555f9d216..4d4cb9769c50a65fdad1bd318b7430efd61325db 100644 (file)
 
 
 
+/* The addresses of the static drivers */
+extern void c128_georam[];
+extern void c128_ram[];
+extern void c128_ram2[];
+extern void c128_ramcart[];
+extern void c128_reu[];
+extern void c128_vdc[];
+extern void c128_ptvjoy[];
+extern void c128_stdjoy[];     /* Referred to by joy_static_stddrv[] */
+extern void c128_1351[];       /* Referred to by mouse_static_stddrv[] */
+extern void c128_joymouse[];
+extern void c128_potmouse[];
+extern void c128_swlink[];
+extern void c128_640_200_2[];  /* Referred to by tgi_static_stddrv[] */
+extern void c128_640_480_2[];
+
+
+
 unsigned __fastcall__ videomode (unsigned Mode);
 /* Set the video mode, return the old mode. Call with one of the VIDEOMODE_xx
  * constants.
@@ -145,6 +163,3 @@ void slow (void);
 
 /* End of c128.h */
 #endif
-
-
-
index eb33c8929bc62c43ad46f8b581212485c1049795..7124d51ae39bc3a3dd8da44f7941d15889e90ddf 100644 (file)
 
 
 
-/* End of c16.h */
-#endif
+/* The addresses of the static drivers */
+extern void c16_ram[];
+extern void c16_stdjoy[];  /* Referred to by joy_static_stddrv[] */
 
 
 
+/* End of c16.h */
+#endif
index 655735618c04bab48cf15e9a06198578f67966d6..f976fab8f682cf419530bfed5f973220f1ce4239 100644 (file)
 #define C64_EU_OLD      0x00
 #define C64_DTV         0xFF            /* C64 DTV */
 
-                
+
+
+/*****************************************************************************/
+/*                                 Variables                                 */
+/*****************************************************************************/
+
+
+
+/* The addresses of the static drivers */
+extern void c64_c256k[];
+extern void c64_dqbb[];
+extern void c64_georam[];
+extern void c64_isepic[];
+extern void c64_ram[];
+extern void c64_ramcart[];
+extern void c64_reu[];
+extern void c64_vdc[];
+extern void dtv_himem[];
+extern void c64_hitjoy[];
+extern void c64_numpad[];
+extern void c64_ptvjoy[];
+extern void c64_stdjoy[];               /* Referred to by joy_static_stddrv[] */
+extern void c64_1351[];                 /* Referred to by mouse_static_stddrv[] */
+extern void c64_joymouse[];
+extern void c64_potmouse[];
+extern void c64_swlink[];
+extern void c64_320_200_2[];            /* Referred to by tgi_static_stddrv[] */
+
+
 
 /*****************************************************************************/
 /*                                  Code                                    */
@@ -136,6 +164,3 @@ unsigned char get_ostype (void);
 
 /* End of c64.h */
 #endif
-
-
-
index 4efd78b0648c560f1abe5940cf2a43a86487681f..1ced386b71b499ec8378574331e1009c732927b6 100644 (file)
 
 
 
+/*****************************************************************************/
+/*                                 Variables                                 */
+/*****************************************************************************/
+
+
+
+/* The addresses of the static drivers */
+extern void cbm510_ram[];
+extern void cbm510_stdjoy[];   /* Referred to by joy_static_stddrv[] */
+extern void cbm510_stdser[];
+
+
+
 /*****************************************************************************/
 /*                                   Code                                   */
 /*****************************************************************************/
index d523552097642cfd037b652b2baadb180419cb52..aa401c205e121f53ae52fab93bb55def2e9689fc 100644 (file)
 
 
 
+/*****************************************************************************/
+/*                                 Variables                                 */
+/*****************************************************************************/
+
+
+
+/* The addresses of the static drivers */
+extern void cbm610_ram[];
+extern void cbm610_stdser[];
+
+
+
 /*****************************************************************************/
 /*                                   Code                                   */
 /*****************************************************************************/
index a99971cc4990decdb7cad42c34de87e5df40e03f..e7f866fb41d495bc78d4c6eae0ba71900982cd0c 100644 (file)
 
 
 
+/*****************************************************************************/
+/*                                 Variables                                 */
+/*****************************************************************************/
+
+
+
+/* The addresses of the static drivers */
+extern void lynx_stdjoy[];        /* Referred to by joy_static_stddrv[] */
+extern void lynx_comlynx[];
+extern void lynx_160_102_16[];    /* Referred to by tgi_static_stddrv[] */
+
+
+
 /*****************************************************************************/
 /*                           Accessing the cart                              */
 /*****************************************************************************/
index 5e1853b2b030b6196f342b7b53ad40f6359618d4..4641610937c4066ed5dce29ba8fbde90207fe3fc 100644 (file)
 
 
 
+/* The addresses of the static drivers */
+extern void nes_stdjoy[];       /* Referred to by joy_static_stddrv[] */
+extern void nes_64_56_2[];      /* Referred to by tgi_static_stddrv[] */
+
+
+
 void waitvblank (void);
 /* Wait for the vertical blanking */
 
index 66a3c752bff5aa9df32d9422e5ca0995d2894e42..0b11efd435088899e61b932ea7719d31f0ba0697 100644 (file)
 
 
 
+/*****************************************************************************/
+/*                                 Variables                                 */
+/*****************************************************************************/
+
+
+
+/* The addresses of the static drivers */
+extern void pet_ptvjoy[];
+extern void pet_stdjoy[];       /* Referred to by joy_static_stddrv[] */
+
+
+
 /*****************************************************************************/
 /*                                   Code                                    */
 /*****************************************************************************/
 
 /* End of pet.h */
 #endif
-
-
-
index 0178d66afc4b798003987cbde4d21be2d261c7bc..03f3a3784da06e3e09684e06867e13335e26785c 100644 (file)
 
 
 
-/* End of plus4.h */
-#endif
+/* The addresses of the static drivers */
+extern void plus4_stdjoy[];   /* Referred to by joy_static_stddrv[] */
+extern void plus4_stdser[];
 
 
 
+/* End of plus4.h */
+#endif
index 904278b4f2b319dca329b4d86f9160dbd03b3fed..01a025bb0a0b59c111de15b9117eb4c0d3c80d4e 100644 (file)
 
 
 
-/* End of vic20.h */
-#endif
+/* The addresses of the static drivers */
+extern void vic20_ptvjoy[];
+extern void vic20_stdjoy[];    /* Referred to by joy_static_stddrv[] */
 
 
 
+/* End of vic20.h */
+#endif