1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15:29:37 +00:00

Added declarations for target-specific static drivers being part of the C library.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5925 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2012-11-07 23:20:58 +00:00
parent 3ba33a0205
commit fa6dae8fa9
14 changed files with 155 additions and 26 deletions

View 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,

View 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[];
/*****************************************************************************/

View 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

View File

@ -105,6 +105,13 @@
/* 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. */

View File

@ -120,6 +120,24 @@
/* 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

View File

@ -53,8 +53,11 @@
/* 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

View File

@ -121,7 +121,35 @@
#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

View File

@ -111,6 +111,19 @@
/*****************************************************************************/
/* 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 */
/*****************************************************************************/

View File

@ -96,6 +96,18 @@
/*****************************************************************************/
/* Variables */
/*****************************************************************************/
/* The addresses of the static drivers */
extern void cbm610_ram[];
extern void cbm610_stdser[];
/*****************************************************************************/
/* Code */
/*****************************************************************************/

View File

@ -92,6 +92,19 @@
/*****************************************************************************/
/* 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 */
/*****************************************************************************/

View File

@ -92,6 +92,12 @@
/* 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 */

View File

@ -73,6 +73,18 @@
/*****************************************************************************/
/* Variables */
/*****************************************************************************/
/* The addresses of the static drivers */
extern void pet_ptvjoy[];
extern void pet_stdjoy[]; /* Referred to by joy_static_stddrv[] */
/*****************************************************************************/
/* Code */
/*****************************************************************************/
@ -91,6 +103,3 @@
/* End of pet.h */
#endif

View File

@ -57,8 +57,11 @@
/* 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

View File

@ -92,8 +92,11 @@
/* 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