Previous 15994 Revisions Next

r2429 Tuesday 22nd April, 2008 at 11:23:50 UTC by Nathan Woods
Updated all snapshots and quickloads to the new device system
[src/mess]device.h messdrv.h
[src/mess/devices]snapquik.c snapquik.h z80bin.c z80bin.h
[src/mess/drivers]amstrad.c apple1.c atom.c c128.c c16.c c64.c c65.c cbmb.c coco.c exidy.c galaxy.c jaguar.c kc.c lviv.c lynx.c mbee.c microtan.c mtx.c nascom1.c pet.c primo.c psx.c spectrum.c super80.c ti85.c tmc600.c trs80.c vc20.c vc4000.c vip.c vtech1.c
[src/mess/includes]atom.h c16.h cbm.h vc20.h

src/mess/devices/snapquik.h
r2428r2429
66
77*********************************************************************/
88
9#ifndef SNAPQUIK_H
10#define SNAPQUIK_H
9#ifndef __SNAPQUIK_H__
10#define __SNAPQUIK_H__
1111
12#include "device.h"
1312#include "image.h"
1413
1514
15
16/***************************************************************************
17    CONSTANTS
18***************************************************************************/
19
1620enum
1721{
18   MESS_DEVINFO_PTR_SNAPSHOT_LOAD = MESS_DEVINFO_PTR_DEV_SPECIFIC,
19   MESS_DEVINFO_PTR_QUICKLOAD_LOAD = MESS_DEVINFO_PTR_DEV_SPECIFIC,
20
21   MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY = MESS_DEVINFO_FLOAT_DEV_SPECIFIC,
22   MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY = MESS_DEVINFO_FLOAT_DEV_SPECIFIC
22   DEVINFO_FCT_SNAPSHOT_QUICKLOAD_LOAD = DEVINFO_FCT_DEVICE_SPECIFIC
2323};
2424
25
26
27/***************************************************************************
28    MACROS
29***************************************************************************/
30
31#define SNAPSHOT   DEVICE_GET_INFO_NAME(snapshot)
32#define QUICKLOAD   DEVICE_GET_INFO_NAME(quickload)
33
34#define SNAPSHOT_LOAD_NAME(name)   snapshot_load_##name
35#define SNAPSHOT_LOAD(name)         int SNAPSHOT_LOAD_NAME(name)(const device_config *image, const char *file_type, int snapshot_size)
36
37#define QUICKLOAD_LOAD_NAME(name)   quickload_load_##name
38#define QUICKLOAD_LOAD(name)      int QUICKLOAD_LOAD_NAME(name)(const device_config *image, const char *file_type, int quickload_size)
39
40#define TAG_SNAPSHOT   "snapshot"
41#define TAG_QUICKLOAD   "quickload"
42
43
44
45/***************************************************************************
46    TYPE DEFINITIONS
47***************************************************************************/
48
2549typedef int (*snapquick_load_func)(const device_config *device, const char *file_type, int file_size);
2650
27#define SNAPSHOT_LOAD(name)      int snapshot_load_##name(const device_config *image, const char *file_type, int snapshot_size)
28#define QUICKLOAD_LOAD(name)   int quickload_load_##name(const device_config *image, const char *file_type, int quickload_size)
51typedef struct _snapquick_config snapquick_config;
52struct _snapquick_config
53{
54   snapquick_load_func   load;            /* loading function */
55   const char *      file_extensions;   /* file extensions */
56   seconds_t         delay_seconds;      /* loading delay (seconds) */
57   attoseconds_t      delay_attoseconds;   /* loading delay (attoseconds) */
58};
2959
30void snapshot_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info);
31void quickload_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info);
3260
3361
34#endif /* SNAPQUIK_H */
62/***************************************************************************
63    SNAPSHOT DEVICE CONFIGURATION MACROS
64***************************************************************************/
65
66#define MDRV_SNAPSHOT_ADD(_load, _file_extensions, _delay)   \
67   MDRV_DEVICE_ADD(TAG_SNAPSHOT, SNAPSHOT) \
68   MDRV_DEVICE_CONFIG_DATAPTR(snapquick_config, load, SNAPSHOT_LOAD_NAME(_load))   \
69   MDRV_DEVICE_CONFIG_DATAPTR(snapquick_config, file_extensions, _file_extensions) \
70   MDRV_DEVICE_CONFIG_DATA64(snapquick_config, delay_seconds, (seconds_t) (_delay)) \
71   MDRV_DEVICE_CONFIG_DATA64(snapquick_config, delay_attoseconds, (attoseconds_t) (((_delay) - (int)(_delay)) * ATTOSECONDS_PER_SECOND)) \
72
73
74
75/***************************************************************************
76    QUICKLOAD DEVICE CONFIGURATION MACROS
77***************************************************************************/
78
79#define MDRV_QUICKLOAD_ADD(_load, _file_extensions, _delay)   \
80   MDRV_DEVICE_ADD(TAG_QUICKLOAD, QUICKLOAD) \
81   MDRV_DEVICE_CONFIG_DATAPTR(snapquick_config, load, QUICKLOAD_LOAD_NAME(_load))   \
82   MDRV_DEVICE_CONFIG_DATAPTR(snapquick_config, file_extensions, _file_extensions) \
83   MDRV_DEVICE_CONFIG_DATA64(snapquick_config, delay_seconds, (seconds_t) (_delay)) \
84   MDRV_DEVICE_CONFIG_DATA64(snapquick_config, delay_attoseconds, (attoseconds_t) (((_delay) - (int)(_delay)) * ATTOSECONDS_PER_SECOND)) \
85
86#define MDRV_QUICKLOAD_REMOVE \
87   MDRV_DEVICE_REMOVE(TAG_QUICKLOAD, QUICKLOAD)
88
89
90
91/***************************************************************************
92    FUNCTION PROTOTYPES
93***************************************************************************/
94
95/* device getinfo function */
96DEVICE_GET_INFO(snapshot);
97
98/* device getinfo function */
99DEVICE_GET_INFO(quickload);
100
101
102
103#endif /* __SNAPQUIK_H__ */
src/mess/devices/z80bin.c
r2428r2429
55   A binary quickload format used by the Microbee, the Exidy Sorcerer
66   VZ200/300 and the Super 80
77
8   NOTE: INIT_FAIL == 1, INIT_PASS == 0, EOF == 0xffffffff
9
10   Return status: 0 = good data, 1 = corrupted quickload file.
11
128*********************************************************************/
139
1410#include "driver.h"
r2428r2429
1713#include "snapquik.h"
1814
1915
16
17/***************************************************************************
18    INLINE FUNCTIONS
19***************************************************************************/
20
21/***************************************************************************
22    IMPLEMENTATION
23***************************************************************************/
24
25/*-------------------------------------------------
26    z80bin_load_file - this is a public function
27   that really should be static
28-------------------------------------------------*/
29
2030int z80bin_load_file(const device_config *image, const char *file_type, UINT16 *exec_addr, UINT16 *start_addr, UINT16 *end_addr )
2131{
2232   int ch;
2333   UINT16 args[3];
2434   UINT16 i=0, j, size;
2535   UINT8 data;
26   char * pgmname;
27   pgmname = (char *) malloc(256);
36   char pgmname[256];
37   char message[256];
2838
2939   image_fseek(image, 7, SEEK_SET);
3040
r2428r2429
3242   {
3343      if (ch == EOF)
3444      {
35         ui_popup_time(10,"QUICKLOAD: Unexpected EOF while getting file name");   /* 10 seconds */
36         free(pgmname);
45         image_seterror(image, IMAGE_ERROR_INVALIDIMAGE, "Unexpected EOF while getting file name");
3746         return INIT_FAIL;
3847      }
3948
40      if (ch)
49      if (ch != '\0')
4150      {
51         if (i >= (ARRAY_LENGTH(pgmname) - 1))
52            return INIT_FAIL;
53
4254         pgmname[i] = ch;   /* build program name */
4355         i++;
4456      }
4557   }
4658
47   pgmname[i]=0;   /* terminate string with a null */
59   pgmname[i] = '\0';   /* terminate string with a null */
4860
4961   if (image_fread(image, args, sizeof(args)) != sizeof(args))
5062   {
51      ui_popup_time(10,"QUICKLOAD: %s\nUnexpected EOF while getting file size",pgmname);
52      free(pgmname);
63      image_seterror(image, IMAGE_ERROR_INVALIDIMAGE, "Unexpected EOF while getting file size");
5364      return INIT_FAIL;
5465   }
5566
56   exec_addr[0]   = LITTLE_ENDIANIZE_INT16(args[0]);
57   start_addr[0]   = LITTLE_ENDIANIZE_INT16(args[1]);
67   exec_addr[0] = LITTLE_ENDIANIZE_INT16(args[0]);
68   start_addr[0] = LITTLE_ENDIANIZE_INT16(args[1]);
5869   end_addr[0]   = LITTLE_ENDIANIZE_INT16(args[2]);
5970
6071   size = (end_addr[0] - start_addr[0] + 1) & 0xffff;
6172
62   popmessage("%s\nsize=%04X : start=%04X : end=%04X : exec=%04X",pgmname,size,start_addr[0],end_addr[0],exec_addr[0]);
73   logerror("%s\nsize=%04X : start=%04X : end=%04X : exec=%04X",pgmname,size,start_addr[0],end_addr[0],exec_addr[0]);
6374
6475   for (i = 0; i < size; i++)
6576   {
6677      j = (start_addr[0] + i) & 0xffff;
6778      if (image_fread(image, &data, 1) != 1)
6879      {
69         ui_popup_time(10,"QUICKLOAD: %s\nUnexpected EOF while writing byte to %04X",pgmname,j);
70         free(pgmname);
80         snprintf(message, ARRAY_LENGTH(message), "%s: Unexpected EOF while writing byte to %04X", pgmname, (unsigned) j);
81         image_seterror(image, IMAGE_ERROR_INVALIDIMAGE, message);
7182         return INIT_FAIL;
7283      }
7384      program_write_byte(j, data);
7485   }
7586
76   free(pgmname);
77
7887   return INIT_PASS;
7988}
8089
8190
91
92/*-------------------------------------------------
93    QUICKLOAD_LOAD( z80bin )
94-------------------------------------------------*/
95
8296static QUICKLOAD_LOAD( z80bin )
8397{
8498   UINT16 exec_addr, start_addr, end_addr;
r2428r2429
86100   if (z80bin_load_file( image, file_type, &exec_addr, &start_addr, &end_addr ) == INIT_FAIL)
87101      return INIT_FAIL;
88102
89   if (exec_addr == 0xffff) return INIT_PASS;         /* non-executable data file */
90   cpunum_set_reg(0, REG_PC, exec_addr);            /* start program */
103   if (exec_addr != 0xffff)   /* non-executable data file */
104      cpunum_set_reg(0, REG_PC, exec_addr);   /* start program */
105
91106   return INIT_PASS;
92107}
93108
94109
95void z80bin_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
110
111/*-------------------------------------------------
112    DEVICE_GET_INFO(z80bin)
113-------------------------------------------------*/
114
115DEVICE_GET_INFO(z80bin)
96116{
97117   /* quickload */
98118   switch(state)
99119   {
100120      /* --- the following bits of info are returned as NULL-terminated strings --- */
101      case MESS_DEVINFO_STR_DEV_FILE:                  strcpy(info->s = device_temp_str(), __FILE__); break;
102      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "bin"); break;
121      case DEVINFO_STR_SOURCE_FILE:               info->s = __FILE__; break;
122      case DEVINFO_STR_IMAGE_FILE_EXTENSIONS:         info->s = "bin"; break;
103123
104      /* --- the following bits of info are returned as pointers to data or functions --- */
105      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_z80bin; break;
124      /* --- the following bits of info are returned as pointers to functions --- */
125      case DEVINFO_FCT_SNAPSHOT_QUICKLOAD_LOAD:      info->f = (genf *) quickload_load_z80bin; break;
106126
107      default:                     quickload_device_getinfo(devclass, state, info); break;
127      default:   DEVICE_GET_INFO_CALL(quickload); break;
108128   }
109129}
110130
src/mess/devices/z80bin.h
r2428r2429
77
88*********************************************************************/
99
10#ifndef Z80BIN_H
11#define Z80BIN_H
10#ifndef __Z80BIN_H__
11#define __Z80BIN_H__
1212
13#include "device.h"
1413#include "image.h"
1514
1615
17void z80bin_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info);
16/***************************************************************************
17    MACROS
18***************************************************************************/
1819
20#define Z80BIN   DEVICE_GET_INFO_NAME(z80bin)
21
22
23
24/***************************************************************************
25    TYPE DEFINITIONS
26***************************************************************************/
27
28/* device getinfo function */
29DEVICE_GET_INFO(z80bin);
30
31/* please stop using this method - z80bin needs to be encapsulated into a proper device */
1932int z80bin_load_file(const device_config *image, const char *file_type, UINT16 *exec_addr, UINT16 *start_addr, UINT16 *end_addr );
2033
2134
22#endif /* Z80BIN_H */
35#endif /* __Z80BIN_H__ */
src/mess/devices/snapquik.c
r2428r2429
88
99#include "driver.h"
1010#include "snapquik.h"
11#include "z80bin.h"
1112
1213
13/* ----------------------------------------------------------------------- */
1414
15struct snapquick_info
15/***************************************************************************
16    TYPE DEFINITIONS
17***************************************************************************/
18
19typedef struct _snapquick_token snapquick_token;
20struct _snapquick_token
1621{
17   const device_config *img;
18   int file_size;
19   struct snapquick_info *next;
22   emu_timer *timer;
23   snapquick_load_func load;
2024};
2125
22static struct snapquick_info *snapquick_infolist;
2326
2427
28/***************************************************************************
29    INLINE FUNCTIONS
30***************************************************************************/
2531
26static TIMER_CALLBACK(snapquick_processsnapshot)
32/*-------------------------------------------------
33    assert_is_snapshot_or_quickload - asserts/confirms
34   that a given device is a snapshot or quickload
35-------------------------------------------------*/
36
37INLINE void assert_is_snapshot_or_quickload(const device_config *device)
2738{
28   struct snapquick_info *si = (struct snapquick_info *) ptr;
29   snapquick_load_func loadproc;
30   const char *file_type;
31   const struct IODevice *dev;
39   assert(device != NULL);
40   assert(device->inline_config != NULL);
41   assert((device->type == SNAPSHOT) || (device->type == QUICKLOAD)
42      || (device->type == Z80BIN));
43}
3244
33   dev = mess_device_from_core_device(si->img);
34   loadproc = (snapquick_load_func) mess_device_get_info_fct(&dev->devclass, MESS_DEVINFO_PTR_SNAPSHOT_LOAD);
35   file_type = image_filetype(si->img);
36   loadproc(si->img, file_type, si->file_size);
37   image_unload(si->img);
45
46
47/*-------------------------------------------------
48    get_token - safely gets the snapshot/quickload data
49-------------------------------------------------*/
50
51INLINE snapquick_token *get_token(const device_config *device)
52{
53   assert_is_snapshot_or_quickload(device);
54   return (snapquick_token *) device->token;
3855}
3956
4057
4158
42static DEVICE_IMAGE_LOAD( snapquick )
59/*-------------------------------------------------
60    get_config - safely gets the bitbanger config
61-------------------------------------------------*/
62
63INLINE const snapquick_config *get_config(const device_config *device)
4364{
44   const struct IODevice *dev;
45   struct snapquick_info *si;
46   double delay;
47   int file_size;
65   assert_is_snapshot_or_quickload(device);
66   return (const snapquick_config *) device->inline_config;
67}
4868
49   file_size = image_length(image);
50   if (file_size <= 0)
51      return INIT_FAIL;
5269
53   si = (struct snapquick_info *) image_malloc(image, sizeof(struct snapquick_info));
54   if (!si)
55      return INIT_FAIL;
5670
57   dev = mess_device_from_core_device(image);
58   assert(dev);
71/***************************************************************************
72    IMPLEMENTATION
73***************************************************************************/
5974
60   si->img = image;
61   si->file_size = file_size;
62   si->next = snapquick_infolist;
63   snapquick_infolist = si;
75/*-------------------------------------------------
76    TIMER_CALLBACK(process_snapshot_or_quickload)
77-------------------------------------------------*/
6478
65   delay = mess_device_get_info_double(&dev->devclass, MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY);
79static TIMER_CALLBACK(process_snapshot_or_quickload)
80{
81   const device_config *device = (const device_config *) ptr;
82   snapquick_token *token = get_token(device);
6683
67   timer_set(double_to_attotime(delay), si, 0, snapquick_processsnapshot);
68   return INIT_PASS;
84   /* invoke the load */
85   (*token->load)(device,
86      image_filetype(device),
87      image_length(device));
88
89   /* unload the device */
90   image_unload(device);
6991}
7092
7193
7294
73static DEVICE_IMAGE_UNLOAD( snapquick )
95/*-------------------------------------------------
96    DEVICE_START( snapquick )
97-------------------------------------------------*/
98
99static DEVICE_START( snapquick )
74100{
75   struct snapquick_info **si = &snapquick_infolist;
101   snapquick_token *token = get_token(device);
76102
77   while(*si && ((*si)->img != image))
78      si = &(*si)->next;
79   if (*si)
80      *si = (*si)->next;
103   /* allocate a timer */
104   token->timer = timer_alloc(process_snapshot_or_quickload, (void *) device);
105
106   /* locate the load function */
107   token->load = (snapquick_load_func) device_get_info_fct(device, DEVINFO_FCT_SNAPSHOT_QUICKLOAD_LOAD);
81108}
82109
83110
84111
85/* ----------------------------------------------------------------------- */
112/*-------------------------------------------------
113    DEVICE_IMAGE_LOAD( snapquick )
114-------------------------------------------------*/
86115
87static void snapquick_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
116static DEVICE_IMAGE_LOAD( snapquick )
88117{
118   const snapquick_config *config = get_config(image);
119   snapquick_token *token = get_token(image);
120
121   /* adjust the timer */
122   timer_adjust_oneshot(
123      token->timer,
124      attotime_make(config->delay_seconds, config->delay_attoseconds),
125      0);
126
127   return INIT_PASS;
128}
129
130
131
132/*-------------------------------------------------
133    DEVICE_GET_INFO(snapquick) - device getinfo
134   function
135-------------------------------------------------*/
136
137static DEVICE_GET_INFO(snapquick)
138{
89139   switch(state)
90140   {
91141      /* --- the following bits of info are returned as 64-bit signed integers --- */
92      case MESS_DEVINFO_INT_COUNT:                  info->i = 1; break;
93      case MESS_DEVINFO_INT_READABLE:               info->i = 1; break;
94      case MESS_DEVINFO_INT_WRITEABLE:               info->i = 0; break;
95      case MESS_DEVINFO_INT_CREATABLE:               info->i = 0; break;
142      case DEVINFO_INT_TOKEN_BYTES:               info->i = sizeof(snapquick_token); break;
143      case DEVINFO_INT_INLINE_CONFIG_BYTES:         info->i = sizeof(snapquick_config); break;
144      case DEVINFO_INT_CLASS:                     info->i = DEVICE_CLASS_PERIPHERAL; break;
145      case DEVINFO_INT_IMAGE_READABLE:            info->i = 1; break;
146      case DEVINFO_INT_IMAGE_WRITEABLE:            info->i = 0; break;
147      case DEVINFO_INT_IMAGE_CREATABLE:            info->i = 0; break;
96148
97      /* --- the following bits of info are returned as pointers to data or functions --- */
98      case MESS_DEVINFO_PTR_LOAD:                  info->load = DEVICE_IMAGE_LOAD_NAME(snapquick); break;
99      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = DEVICE_IMAGE_UNLOAD_NAME(snapquick); break;
149      /* --- the following bits of info are returned as pointers to functions --- */
150      case DEVINFO_FCT_START:                     info->start = DEVICE_START_NAME(snapquick); break;
151      case DEVINFO_FCT_IMAGE_LOAD:               info->f = (genf *) DEVICE_IMAGE_LOAD_NAME(snapquick); break;
152      case DEVINFO_FCT_SNAPSHOT_QUICKLOAD_LOAD:      info->f = (genf *) get_config(device)->load; break;
100153
101154      /* --- the following bits of info are returned as NULL-terminated strings --- */
102      case MESS_DEVINFO_STR_DEV_FILE:               strcpy(info->s = device_temp_str(), __FILE__); break;
155      case DEVINFO_STR_SOURCE_FILE:               info->s = __FILE__; break;
156      case DEVINFO_STR_IMAGE_FILE_EXTENSIONS:         info->s = get_config(device)->file_extensions; break;
103157   }
104158}
105159
106160
107161
108void snapshot_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
162/*-------------------------------------------------
163    DEVICE_GET_INFO(snapshot) - device getinfo
164   function
165-------------------------------------------------*/
166
167DEVICE_GET_INFO(snapshot)
109168{
110169   switch(state)
111170   {
112171      /* --- the following bits of info are returned as 64-bit signed integers --- */
113      case MESS_DEVINFO_INT_TYPE:                  info->i = IO_SNAPSHOT; break;
172      case DEVINFO_INT_IMAGE_TYPE:               info->i = IO_SNAPSHOT; break;
114173
115      /* --- the following bits of info are returned as doubles --- */
116      case MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY:         info->d = 0.0; break;
174      /* --- the following bits of info are returned as NULL-terminated strings --- */
175      case DEVINFO_STR_NAME:                     info->s = "Snapshot"; break;
176      case DEVINFO_STR_FAMILY:                  info->s = "Snapshot"; break;
117177
118      default: snapquick_device_getinfo(devclass, state, info);
178      default: DEVICE_GET_INFO_CALL(snapquick); break;
119179   }
120180}
121181
122182
123183
124void quickload_device_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
184/*-------------------------------------------------
185    DEVICE_GET_INFO(quickload) - device getinfo
186   function
187-------------------------------------------------*/
188
189DEVICE_GET_INFO(quickload)
125190{
126191   switch(state)
127192   {
128193      /* --- the following bits of info are returned as 64-bit signed integers --- */
129      case MESS_DEVINFO_INT_TYPE:                  info->i = IO_QUICKLOAD; break;
194      case DEVINFO_INT_IMAGE_TYPE:               info->i = IO_QUICKLOAD; break;
130195
131      /* --- the following bits of info are returned as doubles --- */
132      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:         info->d = 0.0; break;
196      /* --- the following bits of info are returned as NULL-terminated strings --- */
197      case DEVINFO_STR_NAME:                     info->s = "Quickload"; break;
198      case DEVINFO_STR_FAMILY:                  info->s = "Quickload"; break;
133199
134      default: snapquick_device_getinfo(devclass, state, info);
200      default: DEVICE_GET_INFO_CALL(snapquick); break;
135201   }
136202}
137
src/mess/includes/cbm.h
r2428r2429
6666QUICKLOAD_LOAD( cbm500 );
6767QUICKLOAD_LOAD( cbm_c65 );
6868
69#define CBM_QUICKLOAD_DELAY 3.0
69#define CBM_QUICKLOAD_DELAY_SECONDS 3
7070
7171typedef struct {
7272#define CBM_ROM_ADDR_UNKNOWN 0
src/mess/includes/c16.h
r2428r2429
2929#define DATASSETTE_RECORD   ( input_port_read(Machine, "CFG0") & 0x02 )
3030#define DATASSETTE_STOP      ( input_port_read(Machine, "CFG0") & 0x01 )
3131
32#define QUICKLOAD         ( input_port_read(Machine, "CFG0") & 0x08 )
3332
34
3533#define DATASSETTE         ( input_port_read(Machine, "CFG0") & 0x20 )
3634#define DATASSETTE_TONE      ( input_port_read(Machine, "CFG0") & 0x10 )
3735
src/mess/includes/atom.h
r2428r2429
1717
1818MACHINE_RESET( atom );
1919QUICKLOAD_LOAD( atom );
20 READ8_HANDLER (atom_8255_porta_r);
21 READ8_HANDLER (atom_8255_portb_r);
22 READ8_HANDLER (atom_8255_portc_r);
20READ8_HANDLER (atom_8255_porta_r);
21READ8_HANDLER (atom_8255_portb_r);
22READ8_HANDLER (atom_8255_portc_r);
2323WRITE8_HANDLER (atom_8255_porta_w );
2424WRITE8_HANDLER (atom_8255_portb_w );
2525WRITE8_HANDLER (atom_8255_portc_w );
src/mess/includes/vc20.h
r2428r2429
5959#define DATASSETTE (input_port_read(machine,  TAG_DEVICES )&0x8)
6060#define DATASSETTE_TONE (input_port_read(machine,  TAG_DEVICES )&4)
6161
62#define QUICKLOAD      (input_port_read(machine,  TAG_CASSETTE )&8)
63
6462#define DATASSETTE_PLAY      (input_port_read(machine,  TAG_CASSETTE )&4)
6563#define DATASSETTE_RECORD   (input_port_read(machine,  TAG_CASSETTE )&2)
6664#define DATASSETTE_STOP      (input_port_read(machine,  TAG_CASSETTE )&1)
src/mess/messdrv.h
r2428r2429
7171      cfg->device_position++;                              \
7272   }                                                \
7373
74#define construct_sysconfig_0   NULL
75
7476/******************************************************************************
7577 * MESS' version of the GAME() macros of MAME
7678 * CONS is for consoles
src/mess/device.h
r2428r2429
8282   MESS_DEVINFO_STR_DESCRIPTION = MESS_DEVINFO_STR_SHORT_NAME + MAX_DEV_INSTANCES,
8383
8484   MESS_DEVINFO_STR_DEV_SPECIFIC = 0x28000,               /* R/W: Device-specific values start here */
85
86   /* --- the following bits of info are returned as doubles --- */
87   MESS_DEVINFO_FLOAT_FIRST = 0x30000,
88
89   MESS_DEVINFO_FLOAT_DEV_SPECIFIC = 0x38000            /* R/W: Device-specific values start here */
9085};
9186
9287
r2428r2429
172167   return info.s;
173168}
174169
175INLINE double mess_device_get_info_double(const mess_device_class *devclass, UINT32 state)
176{
177   union devinfo info;
178   info.d = 0.0;
179   devclass->get_info(devclass, state, &info);
180   return info.d;
181}
182
183170INLINE char *device_temp_str(void)
184171{
185172   extern char *cpuintrf_temp_str(void);
src/mess/drivers/vip.c
r2428r2429
2121#include "sound/beep.h"
2222#include "video/cdp1861.h"
2323
24static QUICKLOAD_LOAD(vip);
25
2426#define XTAL XTAL_3_52128MHz
2527
2628#define SCREEN_TAG "main"
r2428r2429
247249   MDRV_SPEAKER_STANDARD_MONO("mono")
248250   MDRV_SOUND_ADD(BEEP, 0)
249251   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
252
253   /* devices */
254   MDRV_QUICKLOAD_ADD(vip, "cos", 0)
250255MACHINE_DRIVER_END
251256
252257/* ROMs */
r2428r2429
273278   return INIT_PASS;
274279}
275280
276static void vip_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
277{
278   /* quickload */
279   switch(state)
280   {
281      /* --- the following bits of info are returned as NULL-terminated strings --- */
282      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "cos"); break;
283
284      /* --- the following bits of info are returned as pointers to data or functions --- */
285      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_vip; break;
286
287      default:                              quickload_device_getinfo(devclass, state, info); break;
288   }
289}
290
291281static void vip_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
292282{
293283   /* cassette */
r2428r2429
305295   CONFIG_RAM         ( 4 * 1024)
306296   CONFIG_RAM         (32 * 1024)
307297   CONFIG_DEVICE(vip_cassette_getinfo)
308   CONFIG_DEVICE(vip_quickload_getinfo)
309298SYSTEM_CONFIG_END
310299
311300/* Driver Initialization */
src/mess/drivers/jaguar.c
r2428r2429
5353#define R3000_CLOCK         XTAL_40MHz
5454#define M68K_CLOCK         XTAL_50MHz
5555
56static QUICKLOAD_LOAD( jaguar );
57
5658/*************************************
5759 *
5860 *  Global variables
r2428r2429
474476
475477   /* sound hardware */
476478   MDRV_SPEAKER_STANDARD_STEREO("left", "right")
477
478479   MDRV_SOUND_ADD(DAC, 0)
479480   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 1.0)
480
481481   MDRV_SOUND_ADD(DAC, 0)
482482   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 1.0)
483
484   /* quickload */
485   MDRV_QUICKLOAD_ADD(jaguar, "bin", 0)
483486MACHINE_DRIVER_END
484487
485488
r2428r2429
522525   return INIT_PASS;
523526}
524527
525static void jaguar_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
526{
527   /* quickload */
528   switch(state)
529   {
530      /* --- the following bits of info are returned as NULL-terminated strings --- */
531      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "bin"); break;
532
533      /* --- the following bits of info are returned as pointers to data or functions --- */
534      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_jaguar; break;
535
536      default:                              quickload_device_getinfo(devclass, state, info); break;
537   }
538}
539
540528SYSTEM_CONFIG_START(jaguar)
541529   CONFIG_DEVICE(cartslot_device_getinfo)
542   CONFIG_DEVICE(jaguar_quickload_getinfo)
543530SYSTEM_CONFIG_END
544531
545532
src/mess/drivers/c65.c
r2428r2429
290290   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "right", 0.50)
291291   MDRV_SOUND_ADD_TAG("sid_l", SID8580, 985248)
292292   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.50)
293
294   /* devices */
295   MDRV_QUICKLOAD_ADD(cbm_c65, "p00,prg", CBM_QUICKLOAD_DELAY_SECONDS)
293296MACHINE_DRIVER_END
294297
295298static MACHINE_DRIVER_START( c65pal )
r2428r2429
304307   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "left", 0.50)
305308MACHINE_DRIVER_END
306309
307static void c65_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
308{
309   switch(state)
310   {
311      /* --- the following bits of info are returned as NULL-terminated strings --- */
312      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "p00,prg"); break;
313
314      /* --- the following bits of info are returned as pointers to data or functions --- */
315      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_cbm_c65; break;
316
317      /* --- the following bits of info are returned as doubles --- */
318      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:            info->d = CBM_QUICKLOAD_DELAY; break;
319
320      default:                              quickload_device_getinfo(devclass, state, info); break;
321   }
322}
323
324310SYSTEM_CONFIG_START(c65)
325311   CONFIG_DEVICE(cbmfloppy_device_getinfo)
326   CONFIG_DEVICE(c65_quickload_getinfo)
327312   CONFIG_RAM_DEFAULT(128 * 1024)
328313   CONFIG_RAM((128 + 512) * 1024)
329314   CONFIG_RAM((128 + 4096) * 1024)
src/mess/drivers/cbmb.c
r2428r2429
658658   MDRV_SPEAKER_STANDARD_MONO("mono")
659659   MDRV_SOUND_ADD(SID6581, 1000000)
660660   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
661
662   /* devices */
663   MDRV_QUICKLOAD_ADD(cbmb, "p00,prg", CBM_QUICKLOAD_DELAY_SECONDS)
661664MACHINE_DRIVER_END
662665
663666
r2428r2429
701704   MDRV_SPEAKER_STANDARD_MONO("mono")
702705   MDRV_SOUND_ADD(SID6581, 1000000)
703706   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
707
708   /* devices */
709   MDRV_QUICKLOAD_ADD(cbm500, "p00,prg", CBM_QUICKLOAD_DELAY_SECONDS)
704710MACHINE_DRIVER_END
705711
706712static void cbmb_cbmcartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
r2428r2429
714720   }
715721}
716722
717static void cbmb_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
718{
719   switch(state)
720   {
721      /* --- the following bits of info are returned as NULL-terminated strings --- */
722      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "p00,prg"); break;
723723
724      /* --- the following bits of info are returned as pointers to data or functions --- */
725      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_cbmb; break;
726
727      /* --- the following bits of info are returned as doubles --- */
728      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:            info->d = CBM_QUICKLOAD_DELAY; break;
729
730      default:                              quickload_device_getinfo(devclass, state, info); break;
731   }
732}
733
734724SYSTEM_CONFIG_START(cbmb)
735725   CONFIG_DEVICE(cbmb_cbmcartslot_getinfo)
736   CONFIG_DEVICE(cbmb_quickload_getinfo)
737726SYSTEM_CONFIG_END
738727
739static void cbm500_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
740{
741   switch(state)
742   {
743      /* --- the following bits of info are returned as NULL-terminated strings --- */
744      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "p00,prg"); break;
745
746      /* --- the following bits of info are returned as pointers to data or functions --- */
747      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_cbm500; break;
748
749      /* --- the following bits of info are returned as doubles --- */
750      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:            info->d = CBM_QUICKLOAD_DELAY; break;
751
752      default:                              quickload_device_getinfo(devclass, state, info); break;
753   }
754}
755
756728SYSTEM_CONFIG_START(cbm500)
757729   CONFIG_DEVICE(cbmb_cbmcartslot_getinfo)
758   CONFIG_DEVICE(cbm500_quickload_getinfo)
759730SYSTEM_CONFIG_END
760731
761732/*     YEAR     NAME      PARENT    COMPAT  MACHINE     INPUT       INIT        CONFIG  COMPANY                             FULLNAME */
src/mess/drivers/mbee.c
r2428r2429
5757#include "devices/cassette.h"
5858#include "devices/z80bin.h"
5959
60static SNAPSHOT_LOAD( mbee );
61static QUICKLOAD_LOAD( mbee );
62
6063static size_t mbee_size;
6164
6265static ADDRESS_MAP_START(mbee_mem, ADDRESS_SPACE_PROGRAM, 8)
r2428r2429
307310   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
308311   MDRV_SOUND_ADD(SPEAKER, 0)
309312   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
313
314   /* devices */
315   MDRV_SNAPSHOT_ADD(mbee, "mwb", 0.5)
316   MDRV_QUICKLOAD_ADD(mbee, "bin", 0)
310317MACHINE_DRIVER_END
311318
312319
r2428r2429
340347   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
341348   MDRV_SOUND_ADD(SPEAKER, 0)
342349   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
350
351   /* devices */
352   MDRV_SNAPSHOT_ADD(mbee, "mwb", 0.5)
353   MDRV_QUICKLOAD_ADD(mbee, "bin", 0)
343354MACHINE_DRIVER_END
344355
345356
r2428r2429
459470   return INIT_PASS;
460471}
461472
462static void mbee_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
463{
464   /* quickload */
465   switch(state)
466   {
467      /* --- the following bits of info are returned as NULL-terminated strings --- */
468      case MESS_DEVINFO_STR_DEV_FILE:      strcpy(info->s = device_temp_str(), __FILE__); break;
469      case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy(info->s = device_temp_str(), "bin"); break;
470
471      /* --- the following bits of info are returned as pointers to data or functions --- */
472      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:   info->f = (genf *) quickload_load_mbee; break;
473
474      default:            quickload_device_getinfo(devclass, state, info); break;
475   }
476}
477
478473static SNAPSHOT_LOAD( mbee )
479474{
480475   UINT16 i, j;
r2428r2429
500495   return INIT_PASS;
501496}
502497
503static void mbee_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
504{
505   /* snapshot */
506   switch(state)
507   {
508      /* --- the following bits of info are returned as NULL-terminated strings --- */
509      case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy(info->s = device_temp_str(), "mwb"); break;
510
511      /* --- the following bits of info are returned as pointers to data or functions --- */
512      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:   info->f = (genf *) snapshot_load_mbee; break;
513
514      /* --- the following bits of info are returned as doubles --- */
515      case MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY:   info->d = 0.5; break;
516
517      default:            snapshot_device_getinfo(devclass, state, info); break;
518   }
519}
520
521498static void mbee_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
522499{
523500   /* cassette */
r2428r2429
570547SYSTEM_CONFIG_START(mbee)
571548   CONFIG_DEVICE(mbee_cassette_getinfo)
572549   CONFIG_DEVICE(mbee_cartslot_getinfo)
573   CONFIG_DEVICE(mbee_quickload_getinfo)
574   CONFIG_DEVICE(mbee_snapshot_getinfo)
575550SYSTEM_CONFIG_END
576551
577552SYSTEM_CONFIG_START(mbeeic)
578553   CONFIG_DEVICE(mbee_cassette_getinfo)
579554   CONFIG_DEVICE(mbee_cartslot_getinfo)
580555   CONFIG_DEVICE(mbee_floppy_getinfo)
581   CONFIG_DEVICE(mbee_quickload_getinfo)
582   CONFIG_DEVICE(mbee_snapshot_getinfo)
583556SYSTEM_CONFIG_END
584557
585558
src/mess/drivers/coco.c
r2428r2429
654654
655655   /* printer */
656656   MDRV_DEVICE_ADD("printer", PRINTER)
657
658   /* snapshot/quickload */
659   MDRV_SNAPSHOT_ADD(coco_pak, "pak", 0)
657660MACHINE_DRIVER_END
658661
659662static MACHINE_DRIVER_START( dragon64 )
r2428r2429
677680
678681   /* printer */
679682   MDRV_DEVICE_ADD("printer", PRINTER)
683
684   /* snapshot/quickload */
685   MDRV_SNAPSHOT_ADD(coco_pak, "pak", 0)
680686MACHINE_DRIVER_END
681687
682688static MACHINE_DRIVER_START( d64plus )
r2428r2429
700706
701707   /* printer */
702708   MDRV_DEVICE_ADD("printer", PRINTER)
709
710   /* snapshot/quickload */
711   MDRV_SNAPSHOT_ADD(coco_pak, "pak", 0)
703712MACHINE_DRIVER_END
704713
705714static MACHINE_DRIVER_START( dgnalpha )
r2428r2429
726735
727736   /* printer */
728737   MDRV_DEVICE_ADD("printer", PRINTER)
738
739   /* snapshot/quickload */
740   MDRV_SNAPSHOT_ADD(coco_pak, "pak", 0)
729741MACHINE_DRIVER_END
730742
731743static MACHINE_DRIVER_START( tanodr64 )
r2428r2429
749761
750762   /* printer */
751763   MDRV_DEVICE_ADD("printer", PRINTER)
764
765   /* snapshot/quickload */
766   MDRV_SNAPSHOT_ADD(coco_pak, "pak", 0)
752767MACHINE_DRIVER_END
753768
754769static MACHINE_DRIVER_START( coco )
r2428r2429
772787
773788   /* bitbanger/printer */
774789   MDRV_IMPORT_FROM( coco_bitbanger )
790
791   /* snapshot/quickload */
792   MDRV_SNAPSHOT_ADD(coco_pak, "pak", 0)
793   MDRV_QUICKLOAD_ADD(coco, "bin", 0.5)
775794MACHINE_DRIVER_END
776795
777796static MACHINE_DRIVER_START( coco2 )
r2428r2429
795814
796815   /* bitbanger/printer */
797816   MDRV_IMPORT_FROM( coco_bitbanger )
817
818   /* snapshot/quickload */
819   MDRV_SNAPSHOT_ADD(coco_pak, "pak", 0)
820   MDRV_QUICKLOAD_ADD(coco, "bin", 0.5)
798821MACHINE_DRIVER_END
799822
800823static MACHINE_DRIVER_START( coco2b )
r2428r2429
818841
819842   /* bitbanger/printer */
820843   MDRV_IMPORT_FROM( coco_bitbanger )
844
845   /* snapshot/quickload */
846   MDRV_SNAPSHOT_ADD(coco_pak, "pak", 0)
847   MDRV_QUICKLOAD_ADD(coco, "bin", 0.5)
821848MACHINE_DRIVER_END
822849
823850static MACHINE_DRIVER_START( coco3 )
r2428r2429
851878   /* bitbanger/printer */
852879   MDRV_IMPORT_FROM( coco_bitbanger )
853880
881   /* snapshot/quickload */
882   MDRV_SNAPSHOT_ADD(coco3_pak, "pak", 0)
883   MDRV_QUICKLOAD_ADD(coco, "bin", 0.5)
884
854885   /* devices */
855886   MDRV_DEVICE_ADD("vhd", COCO_VHD)
856887MACHINE_DRIVER_END
r2428r2429
10161047
10171048
10181049
1019static void coco_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
1020{
1021   /* quickload */
1022   switch(state)
1023   {
1024      /* --- the following bits of info are returned as NULL-terminated strings --- */
1025      case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy(info->s = device_temp_str(), "bin"); break;
1026
1027      /* --- the following bits of info are returned as pointers to data or functions --- */
1028      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:   info->f = (genf *) quickload_load_coco; break;
1029
1030      /* --- the following bits of info are returned as doubles --- */
1031      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:         info->d = 0.5; break;
1032
1033      default:            quickload_device_getinfo(devclass, state, info); break;
1034   }
1035}
1036
1037
1038
10391050static void coco_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
10401051{
10411052   switch(state)
r2428r2429
10761087
10771088
10781089
1079static void coco_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
1080{
1081   switch(state)
1082   {
1083      /* --- the following bits of info are returned as NULL-terminated strings --- */
1084      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "pak"); break;
1085
1086      /* --- the following bits of info are returned as pointers to data or functions --- */
1087      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_coco_pak; break;
1088
1089      default:                              snapshot_device_getinfo(devclass, state, info); break;
1090   }
1091}
1092
1093
1094
1095static void coco3_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
1096{
1097   switch(state)
1098   {
1099      /* --- the following bits of info are returned as NULL-terminated strings --- */
1100      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "pak"); break;
1101
1102      /* --- the following bits of info are returned as pointers to data or functions --- */
1103      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_coco3_pak; break;
1104
1105      default:                              snapshot_device_getinfo(devclass, state, info); break;
1106   }
1107}
1108
11091090/*************************************
11101091 *
11111092 *  CoCo sysconfig structures
r2428r2429
11161097SYSTEM_CONFIG_START( generic_coco )
11171098   CONFIG_DEVICE( coco_cassette_getinfo )
11181099   CONFIG_DEVICE( coco_floppy_getinfo )
1119   CONFIG_DEVICE( coco_quickload_getinfo )
11201100SYSTEM_CONFIG_END
11211101
11221102SYSTEM_CONFIG_START( generic_coco12 )
11231103   CONFIG_IMPORT_FROM( generic_coco )
11241104   CONFIG_DEVICE( coco_cartslot_getinfo )
1125   CONFIG_DEVICE( coco_snapshot_getinfo )
11261105SYSTEM_CONFIG_END
11271106
11281107/* These have to be split up, as the CoCo has a bitbanger */
r2428r2429
11311110   CONFIG_DEVICE( coco_cassette_getinfo )
11321111   CONFIG_DEVICE( coco_floppy_getinfo )
11331112   CONFIG_DEVICE( coco_cartslot_getinfo )
1134   CONFIG_DEVICE( coco_snapshot_getinfo )
11351113SYSTEM_CONFIG_END
11361114
11371115
r2428r2429
11661144SYSTEM_CONFIG_START(coco3)
11671145   CONFIG_IMPORT_FROM   ( generic_coco )
11681146   CONFIG_DEVICE( coco3_cartslot_getinfo )
1169   CONFIG_DEVICE( coco3_snapshot_getinfo )
11701147   CONFIG_RAM         (128 * 1024)
11711148   CONFIG_RAM_DEFAULT   (512 * 1024)
11721149   CONFIG_RAM         (2048 * 1024)
src/mess/drivers/tmc600.c
r2428r2429
9292
9393#define CDP1869_TAG   "cdp1869"
9494
95static QUICKLOAD_LOAD( tmc600 );
96
9597/* Read/Write Handlers */
9698
9799static int keylatch;
r2428r2429
322324
323325   /* printer */
324326   MDRV_DEVICE_ADD("printer", PRINTER)
327
328   /* quickload */
329   MDRV_QUICKLOAD_ADD(tmc600, "sbp", 0)
325330MACHINE_DRIVER_END
326331
327332/* ROMs */
r2428r2429
389394   }
390395}
391396
392static void tmc600_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
393{
394   /* quickload */
395   switch(state)
396   {
397      /* --- the following bits of info are returned as NULL-terminated strings --- */
398      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "sbp"); break;
399
400      /* --- the following bits of info are returned as pointers to data or functions --- */
401      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_tmc600; break;
402
403      default:                              quickload_device_getinfo(devclass, state, info); break;
404   }
405}
406
407397SYSTEM_CONFIG_START( tmc600 )
408398   CONFIG_RAM_DEFAULT   ( 8 * 1024)
409399   CONFIG_RAM         (16 * 1024)
410400   CONFIG_RAM         (24 * 1024)
411401   CONFIG_DEVICE(tmc600_cassette_getinfo)
412402   CONFIG_DEVICE(tmc600_floppy_getinfo)
413   CONFIG_DEVICE(tmc600_quickload_getinfo)
414403SYSTEM_CONFIG_END
415404
416405/* System Drivers */
src/mess/drivers/lynx.c
r2428r2429
1313#include "includes/lynx.h"
1414#include "hash.h"
1515
16static QUICKLOAD_LOAD( lynx );
17
1618static int rotate=0;
1719int lynx_rotate;
1820static int lynx_line_y;
r2428r2429
237239        MDRV_SOUND_ADD_TAG("lynx", CUSTOM, 0)
238240   MDRV_SOUND_CONFIG(lynx_sound_interface)
239241   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
242
243   /* devices */
244   MDRV_QUICKLOAD_ADD(lynx, "o", 0)
240245MACHINE_DRIVER_END
241246
242247
r2428r2429
407412   }
408413}
409414
410static void lynx_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
411{
412   /* quickload */
413   switch(state)
414   {
415      /* --- the following bits of info are returned as NULL-terminated strings --- */
416      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "o"); break;
417
418      /* --- the following bits of info are returned as pointers to data or functions --- */
419      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_lynx; break;
420
421      default:                              quickload_device_getinfo(devclass, state, info); break;
422   }
423}
424
425415SYSTEM_CONFIG_START(lynx)
426416   CONFIG_DEVICE(lynx_cartslot_getinfo)
427   CONFIG_DEVICE(lynx_quickload_getinfo)
428417SYSTEM_CONFIG_END
429418
430419/***************************************************************************
src/mess/drivers/spectrum.c
r2428r2429
19981998   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
19991999   MDRV_SOUND_ADD(SPEAKER, 0)
20002000   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
2001
2002   /* devices */
2003   MDRV_SNAPSHOT_ADD(spectrum, "sna,z80,sp", 0)
2004   MDRV_QUICKLOAD_ADD(spectrum, "scr", 0)
20012005MACHINE_DRIVER_END
20022006
20032007
r2428r2429
22892293   }
22902294}
22912295
2292static void spectrum_common_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
2293{
2294   /* snapshot */
2295   switch(state)
2296   {
2297      /* --- the following bits of info are returned as NULL-terminated strings --- */
2298      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "sna,z80,sp"); break;
2299
2300      /* --- the following bits of info are returned as pointers to data or functions --- */
2301      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_spectrum; break;
2302
2303      default:                              snapshot_device_getinfo(devclass, state, info); break;
2304   }
2305}
2306
2307static void spectrum_common_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
2308{
2309   /* quickload */
2310   switch(state)
2311   {
2312      /* --- the following bits of info are returned as NULL-terminated strings --- */
2313      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "scr"); break;
2314
2315      /* --- the following bits of info are returned as pointers to data or functions --- */
2316      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_spectrum; break;
2317
2318      default:                              quickload_device_getinfo(devclass, state, info); break;
2319   }
2320}
2321
23222296SYSTEM_CONFIG_START(spectrum_common)
23232297   CONFIG_DEVICE(spectrum_common_cassette_getinfo)
2324   CONFIG_DEVICE(spectrum_common_snapshot_getinfo)
2325   CONFIG_DEVICE(spectrum_common_quickload_getinfo)
23262298SYSTEM_CONFIG_END
23272299
23282300SYSTEM_CONFIG_START(spectrum)
src/mess/drivers/super80.c
r2428r2429
1010#include "sound/speaker.h"
1111#include "deprecat.h"      /* "Machine" needed for z80pio interrupt */
1212
13static QUICKLOAD_LOAD( super80 );
14
1315static UINT8 super80_mhz=2;   /* state of bit 2 of port F0 */
1416static UINT16 vidpg=0xfe00;   /* Home position of video page being displayed */
1517static UINT8 int_sw;      /* internal 1 mhz flipflop */
r2428r2429
814816   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
815817   MDRV_SOUND_ADD(SPEAKER, 0)
816818   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
819
820   /* quickload */
821   MDRV_QUICKLOAD_ADD(super80, "bin", 0)
817822MACHINE_DRIVER_END
818823
819824static MACHINE_DRIVER_START( super80d )
r2428r2429
860865   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
861866   MDRV_SOUND_ADD(SPEAKER, 0)
862867   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
868
869   /* quickload */
870   MDRV_QUICKLOAD_ADD(super80, "bin", 0)
863871MACHINE_DRIVER_END
864872
865873static void driver_init_common( void )
r2428r2429
963971   return INIT_PASS;
964972}
965973
966static void super80_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
967{
968   /* quickload */
969   switch(state)
970   {
971      /* --- the following bits of info are returned as NULL-terminated strings --- */
972      case MESS_DEVINFO_STR_DEV_FILE:      strcpy(info->s = device_temp_str(), __FILE__); break;
973      case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy(info->s = device_temp_str(), "bin"); break;
974
975      /* --- the following bits of info are returned as pointers to data or functions --- */
976      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:   info->f = (genf *) quickload_load_super80; break;
977
978      default:            quickload_device_getinfo(devclass, state, info); break;
979   }
980}
981
982974static DEVICE_IMAGE_LOAD( super80_cart )
983975{
984976/*   int size = mame_fsize(fp);
r2428r2429
10271019      default:            cassette_device_getinfo(devclass, state, info); break;
10281020   }
10291021}
1030INPUT_PORTS_START(0)
1031INPUT_PORTS_END
10321022
10331023SYSTEM_CONFIG_START(super80)
10341024   CONFIG_DEVICE(super80_cassette_getinfo)
10351025   CONFIG_DEVICE(super80_cartslot_getinfo)
1036   CONFIG_DEVICE(super80_quickload_getinfo)
10371026SYSTEM_CONFIG_END
10381027
10391028/*    YEAR  NAME      PARENT COMPAT MACHINE INPUT     INIT       CONFIG   COMPANY       FULLNAME */
src/mess/drivers/c128.c
r2428r2429
995995   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
996996   MDRV_SOUND_ADD_TAG("dac", DAC, 0)
997997   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
998
999   /* devices */
1000   MDRV_QUICKLOAD_ADD(cbm_c64, "p00,prg", CBM_QUICKLOAD_DELAY_SECONDS)
9981001MACHINE_DRIVER_END
9991002
10001003
r2428r2429
10271030   }
10281031}
10291032
1030static void c64_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
1031{
1032   switch(state)
1033   {
1034      /* --- the following bits of info are returned as NULL-terminated strings --- */
1035      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "p00,prg"); break;
1036
1037      /* --- the following bits of info are returned as pointers to data or functions --- */
1038      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_cbm_c64; break;
1039
1040      /* --- the following bits of info are returned as doubles --- */
1041      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:            info->d = CBM_QUICKLOAD_DELAY; break;
1042
1043      default:                              quickload_device_getinfo(devclass, state, info); break;
1044   }
1045}
1046
10471033SYSTEM_CONFIG_START(c128)
10481034   CONFIG_DEVICE(c128_cbmcartslot_getinfo)
10491035   CONFIG_DEVICE(cbmfloppy_device_getinfo)
1050   CONFIG_DEVICE(c64_quickload_getinfo)
1051#if 0
1052   CONFIG_DEVICE(vc20tape_device_getinfo)   /* needs 2 megahertz in c128 mode! */
1053#endif
10541036SYSTEM_CONFIG_END
10551037
10561038SYSTEM_CONFIG_START(c128d)
1057   CONFIG_DEVICE(c64_quickload_getinfo)
10581039   CONFIG_DEVICE(c1571_device_getinfo)
10591040SYSTEM_CONFIG_END
10601041
src/mess/drivers/lviv.c
r2428r2429
453453   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
454454   MDRV_SOUND_ADD(SPEAKER, 0)
455455   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
456
457   /* snapshot */
458   MDRV_SNAPSHOT_ADD(lviv, "sav", 0)
456459MACHINE_DRIVER_END
457460
458461
r2428r2429
474477   }
475478}
476479
477static void lviv_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
478{
479   /* snapshot */
480   switch(state)
481   {
482      /* --- the following bits of info are returned as NULL-terminated strings --- */
483      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "sav"); break;
484
485      /* --- the following bits of info are returned as pointers to data or functions --- */
486      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_lviv; break;
487
488      default:                              snapshot_device_getinfo(devclass, state, info); break;
489   }
490}
491
492480ROM_START(lviv)
493481   ROM_REGION(0x14000,REGION_CPU1,0)
494482   ROM_SYSTEM_BIOS( 0, "lviv", "Lviv/L'vov" )
r2428r2429
503491   CONFIG_RAM_DEFAULT(64 * 1024)
504492   /* 9-Oct-2003 - Changed to lvt because lv? is an invalid file extension */
505493   CONFIG_DEVICE(lviv_cassette_getinfo)
506   CONFIG_DEVICE(lviv_snapshot_getinfo)
507494SYSTEM_CONFIG_END
508495
509496
src/mess/drivers/exidy.c
r2428r2429
9696#include "sound/speaker.h"
9797
9898
99static QUICKLOAD_LOAD( exidy );
100
99101static DEVICE_IMAGE_LOAD( exidy_floppy )
100102{
101103   if (device_load_basicdsk_floppy(image)==INIT_PASS)
r2428r2429
751753
752754   /* printer */
753755   MDRV_DEVICE_ADD("printer", PRINTER)
756
757   /* quickload */
758   MDRV_QUICKLOAD_ADD(exidy, "bin", 0)
754759MACHINE_DRIVER_END
755760
756761static MACHINE_DRIVER_START( exidyd )
r2428r2429
841846   return INIT_PASS;
842847}
843848
844static void exidy_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
845{
846   /* quickload */
847   switch(state)
848   {
849      /* --- the following bits of info are returned as NULL-terminated strings --- */
850      case MESS_DEVINFO_STR_DEV_FILE:      strcpy(info->s = device_temp_str(), __FILE__); break;
851      case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy(info->s = device_temp_str(), "bin"); break;
852
853      /* --- the following bits of info are returned as pointers to data or functions --- */
854      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:   info->f = (genf *) quickload_load_exidy; break;
855
856      default:            quickload_device_getinfo(devclass, state, info); break;
857   }
858}
859
860849static void exidy_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
861850{
862851   /* floppy */
r2428r2429
891880   CONFIG_DEVICE(exidy_floppy_getinfo)
892881   CONFIG_DEVICE(cartslot_device_getinfo)
893882   CONFIG_DEVICE(exidy_cassette_getinfo)      // use of cassette causes a hang
894   CONFIG_DEVICE(exidy_quickload_getinfo)
895883SYSTEM_CONFIG_END
896884
897885SYSTEM_CONFIG_START(exidyd)
898886   CONFIG_DEVICE(cartslot_device_getinfo)
899887   CONFIG_DEVICE(exidy_cassette_getinfo)      // use of cassette causes a hang
900   CONFIG_DEVICE(exidy_quickload_getinfo)
901888SYSTEM_CONFIG_END
902889
903890
src/mess/drivers/pet.c
r2428r2429
821821    ROM_LOAD ("324878-02.bin", 0x?000, 0x2000, CRC(5e00476d))
822822#endif
823823
824static MACHINE_DRIVER_START( pet )
824static MACHINE_DRIVER_START( pet_general )
825825   /* basic machine hardware */
826826   MDRV_CPU_ADD_TAG("main", M6502, 7833600)        /* 7.8336 Mhz */
827827   MDRV_CPU_PROGRAM_MAP(pet_mem, 0)
r2428r2429
845845MACHINE_DRIVER_END
846846
847847
848static MACHINE_DRIVER_START( pet )
849   MDRV_IMPORT_FROM( pet_general )
850   MDRV_QUICKLOAD_ADD(cbm_pet, "p00,prg", CBM_QUICKLOAD_DELAY_SECONDS)
851MACHINE_DRIVER_END
852
853
854static MACHINE_DRIVER_START( pet1 )
855   MDRV_IMPORT_FROM( pet_general )
856   MDRV_QUICKLOAD_ADD(cbm_pet1, "p00,prg", CBM_QUICKLOAD_DELAY_SECONDS)
857MACHINE_DRIVER_END
858
859
848860static MACHINE_DRIVER_START( pet40 )
849861   MDRV_IMPORT_FROM( pet )
850862   MDRV_CPU_MODIFY( "main" )
r2428r2429
928940   }
929941}
930942
931static void pet_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
932{
933   switch(state)
934   {
935      /* --- the following bits of info are returned as NULL-terminated strings --- */
936      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "p00,prg"); break;
937
938      /* --- the following bits of info are returned as pointers to data or functions --- */
939      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_cbm_pet; break;
940
941      /* --- the following bits of info are returned as doubles --- */
942      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:            info->d = CBM_QUICKLOAD_DELAY; break;
943
944      default:                              quickload_device_getinfo(devclass, state, info); break;
945   }
946}
947
948static void pet1_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
949{
950   switch(state)
951   {
952      /* --- the following bits of info are returned as NULL-terminated strings --- */
953      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "p00,prg"); break;
954
955      /* --- the following bits of info are returned as pointers to data or functions --- */
956      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_cbm_pet1; break;
957
958      /* --- the following bits of info are returned as doubles --- */
959      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:            info->d = CBM_QUICKLOAD_DELAY; break;
960
961      default:                              quickload_device_getinfo(devclass, state, info); break;
962   }
963}
964
965943SYSTEM_CONFIG_START(pet)
966944   CONFIG_DEVICE(pet_cbmcartslot_getinfo)
967945   CONFIG_DEVICE(cbmfloppy_device_getinfo)
968   CONFIG_DEVICE(pet1_quickload_getinfo)
969946   CONFIG_RAM(4 * 1024)
970947   CONFIG_RAM(8 * 1024)
971948   CONFIG_RAM(16 * 1024)
r2428r2429
975952SYSTEM_CONFIG_START(pet2)
976953   CONFIG_DEVICE(pet_cbmcartslot_getinfo)
977954   CONFIG_DEVICE(cbmfloppy_device_getinfo)
978   CONFIG_DEVICE(pet_quickload_getinfo)
979955   CONFIG_RAM(4 * 1024)
980956   CONFIG_RAM(8 * 1024)
981957   CONFIG_RAM(16 * 1024)
r2428r2429
996972SYSTEM_CONFIG_START(pet4)
997973   CONFIG_DEVICE(pet4_cbmcartslot_getinfo)
998974   CONFIG_DEVICE(cbmfloppy_device_getinfo)
999   CONFIG_DEVICE(pet_quickload_getinfo)
1000975   CONFIG_RAM(4 * 1024)
1001976   CONFIG_RAM(8 * 1024)
1002977   CONFIG_RAM(16 * 1024)
r2428r2429
1006981SYSTEM_CONFIG_START(pet4_32)
1007982   CONFIG_DEVICE(pet4_cbmcartslot_getinfo)
1008983   CONFIG_DEVICE(cbmfloppy_device_getinfo)
1009   CONFIG_DEVICE(pet_quickload_getinfo)
1010984   CONFIG_RAM_DEFAULT(32 * 1024)
1011985SYSTEM_CONFIG_END
1012986
1013987/*    YEAR  NAME        COMPAT  PARENT  MACHINE     INPUT    INIT     CONFIG    COMPANY                           FULLNAME */
1014COMP (1977,   pet,      0,      0,      pet,      pet,    pet1,     pet,      "Commodore Business Machines Co.",  "PET2001/CBM20xx Series (Basic 1)",            GAME_NO_SOUND)
988COMP (1977,   pet,      0,      0,      pet1,      pet,    pet1,     pet,      "Commodore Business Machines Co.",  "PET2001/CBM20xx Series (Basic 1)",            GAME_NO_SOUND)
1015989COMP (1979,   cbm30,      0,      pet,   pet,      pet,    pet,     pet2,      "Commodore Business Machines Co.",  "Commodore 30xx (Basic 2)",                    GAME_NO_SOUND)
1016990COMP (1979,   cbm30b,    0,      pet,   pet,      petb,    petb,     pet2,      "Commodore Business Machines Co.",  "Commodore 30xx (Basic 2) (business keyboard)",GAME_NO_SOUND)
1017991COMP (1982,   cbm40,      0,      pet,   pet40,      pet,    pet40,   pet4,      "Commodore Business Machines Co.",  "Commodore 40xx FAT (CRTC) 60Hz",              GAME_NO_SOUND)
src/mess/drivers/c16.c
r2428r2429
719719   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
720720   MDRV_SOUND_ADD_TAG("sid", SID8580, TED7360PAL_CLOCK/4)
721721   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
722
723   /* devices */
724   MDRV_QUICKLOAD_ADD(cbm_c16, "p00,prg", CBM_QUICKLOAD_DELAY_SECONDS)
722725MACHINE_DRIVER_END
723726
724727
r2428r2429
820823   }
821824}
822825
823static void c16_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
824{
825   switch(state)
826   {
827      /* --- the following bits of info are returned as NULL-terminated strings --- */
828      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "p00,prg"); break;
829
830      /* --- the following bits of info are returned as pointers to data or functions --- */
831      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_cbm_c16; break;
832
833      /* --- the following bits of info are returned as doubles --- */
834      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:            info->d = CBM_QUICKLOAD_DELAY; break;
835
836      default:                              quickload_device_getinfo(devclass, state, info); break;
837   }
838}
839
840826SYSTEM_CONFIG_START(c16)
841827   CONFIG_DEVICE(c16cart_device_getinfo)
842828   CONFIG_DEVICE(cbmfloppy_device_getinfo)
843   CONFIG_DEVICE(c16_quickload_getinfo)
844829   CONFIG_DEVICE(vc20tape_device_getinfo)
845830   CONFIG_RAM(16 * 1024)
846831   CONFIG_RAM(32 * 1024)
r2428r2429
849834
850835SYSTEM_CONFIG_START(c16c)
851836   CONFIG_DEVICE(c16cart_device_getinfo)
852   CONFIG_DEVICE(c16_quickload_getinfo)
853837   CONFIG_DEVICE(vc20tape_device_getinfo)
854838   CONFIG_DEVICE(c1551_device_getinfo)
855839   CONFIG_RAM(16 * 1024)
r2428r2429
859843
860844SYSTEM_CONFIG_START(c16v)
861845   CONFIG_DEVICE(c16cart_device_getinfo)
862   CONFIG_DEVICE(c16_quickload_getinfo)
863846   CONFIG_DEVICE(vc20tape_device_getinfo)
864847   CONFIG_DEVICE(vc1541_device_getinfo)
865848   CONFIG_RAM(16 * 1024)
r2428r2429
870853SYSTEM_CONFIG_START(plus)
871854   CONFIG_DEVICE(c16cart_device_getinfo)
872855   CONFIG_DEVICE(cbmfloppy_device_getinfo)
873   CONFIG_DEVICE(c16_quickload_getinfo)
874856   CONFIG_DEVICE(vc20tape_device_getinfo)
875857   CONFIG_RAM_DEFAULT(64 * 1024)
876858SYSTEM_CONFIG_END
877859
878860SYSTEM_CONFIG_START(plusc)
879861   CONFIG_DEVICE(c16cart_device_getinfo)
880   CONFIG_DEVICE(c16_quickload_getinfo)
881862   CONFIG_DEVICE(vc20tape_device_getinfo)
882863   CONFIG_DEVICE(c1551_device_getinfo)
883864   CONFIG_RAM_DEFAULT(64 * 1024)
r2428r2429
885866
886867SYSTEM_CONFIG_START(plusv)
887868   CONFIG_DEVICE(c16cart_device_getinfo)
888   CONFIG_DEVICE(c16_quickload_getinfo)
889869   CONFIG_DEVICE(vc20tape_device_getinfo)
890870   CONFIG_DEVICE(vc1541_device_getinfo)
891871   CONFIG_RAM_DEFAULT(64 * 1024)
src/mess/drivers/atom.c
r2428r2429
278278
279279   /* printer */
280280   MDRV_DEVICE_ADD("printer", PRINTER)
281
282   /* quickload */
283   MDRV_QUICKLOAD_ADD(atom, "atm", 0)
281284MACHINE_DRIVER_END
282285
283286
r2428r2429
346349   }
347350}
348351
349static void atom_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
350{
351   /* quickload */
352   switch(state)
353   {
354      /* --- the following bits of info are returned as NULL-terminated strings --- */
355      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "atm"); break;
356
357      /* --- the following bits of info are returned as pointers to data or functions --- */
358      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_atom; break;
359
360      default:                              quickload_device_getinfo(devclass, state, info); break;
361   }
362}
363
364352SYSTEM_CONFIG_START(atom)
365353   CONFIG_DEVICE(atom_cassette_getinfo)
366354   CONFIG_DEVICE(atom_floppy_getinfo)
367   CONFIG_DEVICE(atom_quickload_getinfo)
368355SYSTEM_CONFIG_END
369356
370357/*    YEAR  NAME      PARENT    COMPAT  MACHINE   INPUT     INIT      CONFIG   COMPANY   FULLNAME */
src/mess/drivers/vc20.c
r2428r2429
733733   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
734734   MDRV_SOUND_ADD(DAC, 0)
735735   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
736
737   /* devices */
738   MDRV_QUICKLOAD_ADD(cbm_vc20, "p00,prg", CBM_QUICKLOAD_DELAY_SECONDS)
736739MACHINE_DRIVER_END
737740
738741
r2428r2429
802805   }
803806}
804807
805static void vc20_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
806{
807   switch(state)
808   {
809      /* --- the following bits of info are returned as NULL-terminated strings --- */
810      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "p00,prg"); break;
811
812      /* --- the following bits of info are returned as pointers to data or functions --- */
813      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_cbm_vc20; break;
814
815      /* --- the following bits of info are returned as doubles --- */
816      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:            info->d = CBM_QUICKLOAD_DELAY; break;
817
818      default:                              quickload_device_getinfo(devclass, state, info); break;
819   }
820}
821
822808SYSTEM_CONFIG_START(vc20)
823809   CONFIG_DEVICE(cbmvc20_cartslot_getinfo)
824810   CONFIG_DEVICE(cbmfloppy_device_getinfo)
825   CONFIG_DEVICE(vc20_quickload_getinfo)
826811   CONFIG_DEVICE(vc20tape_device_getinfo)
827812   CONFIG_RAM_DEFAULT(5 * 1024)
828813   CONFIG_RAM(8 * 1024)
r2428r2429
833818
834819SYSTEM_CONFIG_START(vc20v)
835820   CONFIG_DEVICE(cbmvc20_cartslot_getinfo)
836   CONFIG_DEVICE(vc20_quickload_getinfo)
837821   CONFIG_DEVICE(vc20tape_device_getinfo)
838822   CONFIG_DEVICE(vc1541_device_getinfo)
839823   CONFIG_RAM_DEFAULT(5 * 1024)
src/mess/drivers/apple1.c
r2428r2429
234234
235235   MDRV_VIDEO_START(apple1)
236236   MDRV_VIDEO_UPDATE(apple1)
237
238   /* snapshot */
239   MDRV_SNAPSHOT_ADD(apple1, "snp", 0)
237240MACHINE_DRIVER_END
238241
239242ROM_START(apple1)
r2428r2429
246249   ROM_LOAD("apple1.vid", 0x0000, 0x0200, CRC(a7e567fc) SHA1(b18aae0a2d4f92f5a7e22640719bbc4652f3f4ee))
247250ROM_END
248251
249static void apple1_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
250{
251   /* snapshot */
252   switch(state)
253   {
254      /* --- the following bits of info are returned as NULL-terminated strings --- */
255      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "snp"); break;
256
257      /* --- the following bits of info are returned as pointers to data or functions --- */
258      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_apple1; break;
259
260      default:                              snapshot_device_getinfo(devclass, state, info); break;
261   }
262}
263
264252static void apple1_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
265253{
266254   /* cassette */
r2428r2429
275263}
276264
277265SYSTEM_CONFIG_START(apple1)
278   CONFIG_DEVICE(apple1_snapshot_getinfo)
279266   CONFIG_DEVICE(apple1_cassette_getinfo)
280267   /* Note that because we always include 4K of RAM at $E000-$EFFF,
281268       the RAM amounts listed here will be 4K below the actual RAM
src/mess/drivers/nascom1.c
r2428r2429
266266   MDRV_PALETTE_INIT(black_and_white)
267267
268268   MDRV_VIDEO_UPDATE(nascom1)
269
270   /* devices */
271   MDRV_SNAPSHOT_ADD(nascom1, "nas", 0.5)
269272MACHINE_DRIVER_END
270273
271274
r2428r2429
348351}
349352
350353
351static void nascom1_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
352{
353   switch(state)
354   {
355      /* --- the following bits of info are returned as NULL-terminated strings --- */
356      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "nas"); break;
357
358      /* --- the following bits of info are returned as pointers to data or functions --- */
359      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_nascom1; break;
360
361      /* --- the following bits of info are returned as doubles --- */
362      case MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY:            info->d = 0.5; break;
363
364      default:                              snapshot_device_getinfo(devclass, state, info); break;
365   }
366}
367
368
369354static void nascom2_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
370355{
371356   /* floppy */
r2428r2429
391376   CONFIG_RAM(32 * 1024)
392377   CONFIG_RAM_DEFAULT(40 * 1024)
393378   CONFIG_DEVICE(nascom1_cassette_getinfo)
394   CONFIG_DEVICE(nascom1_snapshot_getinfo)
395379SYSTEM_CONFIG_END
396380
397381
src/mess/drivers/mtx.c
r2428r2429
252252
253253   /* printer */
254254   MDRV_DEVICE_ADD("printer", PRINTER)
255
256   /* snapshot */
257   MDRV_SNAPSHOT_ADD(mtx, "mtb", 0.5)
255258MACHINE_DRIVER_END
256259
257260
r2428r2429
289292 *
290293 *************************************/
291294
292static void mtx_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
293{
294   switch(state)
295   {
296      /* --- the following bits of info are returned as NULL-terminated strings --- */
297      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "mtb"); break;
298
299      /* --- the following bits of info are returned as pointers to data or functions --- */
300      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_mtx; break;
301
302      /* --- the following bits of info are returned as doubles --- */
303      case MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY:            info->d = 0.5; break;
304
305      default:                              snapshot_device_getinfo(devclass, state, info); break;
306   }
307}
308
309
310295SYSTEM_CONFIG_START( mtx_common )
311   CONFIG_DEVICE(mtx_snapshot_getinfo)
312296   CONFIG_RAM(160 * 1024)
313297   CONFIG_RAM(192 * 1024)
314298   CONFIG_RAM(224 * 1024)
src/mess/drivers/microtan.c
r2428r2429
243243   MDRV_SOUND_ADD(AY8910, 1000000)
244244   MDRV_SOUND_CONFIG(ay8910_interface)
245245   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
246
247   // snapshot/quickload
248   MDRV_SNAPSHOT_ADD(microtan, "m65", 0.5)
249   MDRV_QUICKLOAD_ADD(microtan_hexfile, "hex", 0.5)
246250MACHINE_DRIVER_END
247251
248252ROM_START( microtan )
r2428r2429
274278   }
275279}
276280
277static void microtan_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
278{
279   /* snapshot */
280   switch(state)
281   {
282      /* --- the following bits of info are returned as NULL-terminated strings --- */
283      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "m65"); break;
284
285      /* --- the following bits of info are returned as pointers to data or functions --- */
286      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_microtan; break;
287
288      /* --- the following bits of info are returned as doubles --- */
289      case MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY:            info->d = 0.5; break;
290
291      default:                              snapshot_device_getinfo(devclass, state, info); break;
292   }
293}
294
295static void microtan_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
296{
297   /* quickload */
298   switch(state)
299   {
300      /* --- the following bits of info are returned as NULL-terminated strings --- */
301      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "hex"); break;
302
303      /* --- the following bits of info are returned as pointers to data or functions --- */
304      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_microtan_hexfile; break;
305
306      /* --- the following bits of info are returned as doubles --- */
307      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:            info->d = 0.5; break;
308
309      default:                              quickload_device_getinfo(devclass, state, info); break;
310   }
311}
312
313281SYSTEM_CONFIG_START( microtan )
314282   CONFIG_DEVICE(microtan_cassette_getinfo)
315   CONFIG_DEVICE(microtan_snapshot_getinfo)
316   CONFIG_DEVICE(microtan_quickload_getinfo)
317283SYSTEM_CONFIG_END
318284
319285//    YEAR  NAME      PARENT    COMPAT  MACHINE   INPUT     INIT      CONFIG    COMPANY      FULLNAME
src/mess/drivers/vtech1.c
r2428r2429
115115#include "formats/vt_cas.h"
116116
117117
118static QUICKLOAD_LOAD(vtech1);
119
118120/******************************************************************************
119121 Address Maps
120122******************************************************************************/
r2428r2429
327329
328330   /* printer */
329331   MDRV_DEVICE_ADD("printer", PRINTER)
332
333   /* snapshot/quickload */
334   MDRV_SNAPSHOT_ADD(vtech1, "vz", 0.5)
335   MDRV_QUICKLOAD_ADD(vtech1, "bin", 0)
330336MACHINE_DRIVER_END
331337
332338static MACHINE_DRIVER_START(laser200)
r2428r2429
446452   return INIT_PASS;
447453}
448454
449static void vtech1_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
450{
451   /* quickload */
452   switch(state)
453   {
454      /* --- the following bits of info are returned as NULL-terminated strings --- */
455      case MESS_DEVINFO_STR_DEV_FILE:      strcpy(info->s = device_temp_str(), __FILE__); break;
456      case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy(info->s = device_temp_str(), "bin"); break;
457
458      /* --- the following bits of info are returned as pointers to data or functions --- */
459      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:   info->f = (genf *) quickload_load_vtech1; break;
460
461      default:            quickload_device_getinfo(devclass, state, info); break;
462   }
463}
464
465455static void vtech1_cassette_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
466456{
467457   /* cassette */
r2428r2429
477467   }
478468}
479469
480static void vtech1_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
481{
482   /* snapshot */
483   switch(state)
484   {
485      /* --- the following bits of info are returned as NULL-terminated strings --- */
486      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "vz"); break;
487
488      /* --- the following bits of info are returned as pointers to data or functions --- */
489      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_vtech1; break;
490
491      /* --- the following bits of info are returned as doubles --- */
492      case MESS_DEVINFO_FLOAT_SNAPSHOT_DELAY:            info->d = 0.5; break;
493
494      default:                              snapshot_device_getinfo(devclass, state, info); break;
495   }
496}
497
498470static void vtech1_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
499471{
500472   /* floppy */
r2428r2429
530502SYSTEM_CONFIG_START(vtech1)
531503    CONFIG_DEVICE(cartslot_device_getinfo)
532504    CONFIG_DEVICE(vtech1_cassette_getinfo)
533    CONFIG_DEVICE(vtech1_snapshot_getinfo)
534505    CONFIG_DEVICE(vtech1_floppy_getinfo)
535   CONFIG_DEVICE(vtech1_quickload_getinfo)
536506   CONFIG_RAM_DEFAULT (66 * 1024)   /* with 64K memory expansion */
537507   CONFIG_RAM         (4098 * 1024) /* with 4MB memory expansion */
538508SYSTEM_CONFIG_END
src/mess/drivers/amstrad.c
r2428r2429
29412941
29422942   /* printer */
29432943   MDRV_DEVICE_ADD("printer", PRINTER)
2944
2945   /* snapshot */
2946   MDRV_SNAPSHOT_ADD(amstrad, "sna", 0)
29442947MACHINE_DRIVER_END
29452948
29462949
r2428r2429
31583161}
31593162
31603163
3161static void cpcplus_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
3162{
3163   /* snapshot */
3164   switch(state)
3165   {
3166      /* --- the following bits of info are returned as NULL-terminated strings --- */
3167      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "sna"); break;
3168
3169      /* --- the following bits of info are returned as pointers to data or functions --- */
3170      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_amstrad; break;
3171
3172      default:                              snapshot_device_getinfo(devclass, state, info); break;
3173   }
3174}
3175
3176
31773164static void aleste_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
31783165{
31793166   /* floppy */
r2428r2429
31993186SYSTEM_CONFIG_START( cpcplus )
32003187   CONFIG_IMPORT_FROM(cpc6128)
32013188   CONFIG_DEVICE(cpcplus_cartslot_getinfo)
3202   CONFIG_DEVICE(cpcplus_snapshot_getinfo)
32033189SYSTEM_CONFIG_END
32043190
32053191
32063192SYSTEM_CONFIG_START( gx4000 )
32073193   CONFIG_RAM_DEFAULT(64 * 1024)  // has 64k RAM
32083194   CONFIG_DEVICE(cpcplus_cartslot_getinfo)
3209   CONFIG_DEVICE(cpcplus_snapshot_getinfo)
32103195SYSTEM_CONFIG_END
32113196
32123197
src/mess/drivers/psx.c
r2428r2429
802802   MDRV_SOUND_CONFIG( psxspu_interface )
803803   MDRV_SOUND_ROUTE( 0, "left", 1.00 )
804804   MDRV_SOUND_ROUTE( 1, "right", 1.00 )
805
806   /* quickload */
807   MDRV_QUICKLOAD_ADD(psx_exe_load, "exe,psx", 0)
805808MACHINE_DRIVER_END
806809
807810static MACHINE_DRIVER_START( psxpal )
r2428r2429
832835   MDRV_SOUND_CONFIG( psxspu_interface )
833836   MDRV_SOUND_ROUTE( 0, "left", 1.00 )
834837   MDRV_SOUND_ROUTE( 1, "right", 1.00 )
838
839   /* quickload */
840   MDRV_QUICKLOAD_ADD(psx_exe_load, "exe,psx", 0)
835841MACHINE_DRIVER_END
836842
837843ROM_START( psj )
r2428r2429
921927   ROMX_LOAD( "ps-41a.bin",    0x0000000, 0x080000, CRC(502224b6) SHA1(14df4f6c1e367ce097c11deae21566b4fe5647a9), ROM_BIOS(2) )
922928ROM_END
923929
924static void psx_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
925{
926   /* quickload */
927   switch(state)
928   {
929      /* --- the following bits of info are returned as NULL-terminated strings --- */
930      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "exe,psx"); break;
931
932      /* --- the following bits of info are returned as pointers to data or functions --- */
933      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_psx_exe_load; break;
934
935      default:                              quickload_device_getinfo(devclass, state, info); break;
936   }
937}
938
939SYSTEM_CONFIG_START( psx )
940   CONFIG_DEVICE(psx_quickload_getinfo)
941SYSTEM_CONFIG_END
942
943930/*
944931The version number & release date is stored in ascii text at the end of every bios, except for scph1000.
945932There is also a BCD encoded date at offset 0x100, but this is set to 22091994 for versions prior to 2.2
r2428r2429
975962*/
976963
977964/*    YEAR  NAME    PARENT  COMPAT  MACHINE     INPUT   INIT    CONFIG  COMPANY                             FULLNAME                            FLAGS */
978CONS( 1994, psj,    0,      0,      psxntsc,    psx,    psx,    psx,    "Sony Computer Entertainment Inc.", "Sony PlayStation (Japan)",         GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
979CONS( 1995, pse,    psj,    0,      psxpal,     psx,    psx,    psx,    "Sony Computer Entertainment Inc.", "Sony PlayStation (Europe)",        GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
980CONS( 1995, psu,    psj,    0,      psxntsc,    psx,    psx,    psx,    "Sony Computer Entertainment Inc.", "Sony PlayStation (USA)",           GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
981CONS( 1995, psa,    psj,    0,      psxntsc,    psx,    psx,    psx,    "Sony Computer Entertainment Inc.", "Sony PlayStation (Asia-Pacific)",  GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
965CONS( 1994, psj,    0,      0,      psxntsc,    psx,    psx,    0,      "Sony Computer Entertainment Inc.", "Sony PlayStation (Japan)",         GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
966CONS( 1995, pse,    psj,    0,      psxpal,     psx,    psx,    0,      "Sony Computer Entertainment Inc.", "Sony PlayStation (Europe)",        GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
967CONS( 1995, psu,    psj,    0,      psxntsc,    psx,    psx,    0,      "Sony Computer Entertainment Inc.", "Sony PlayStation (USA)",           GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
968CONS( 1995, psa,    psj,    0,      psxntsc,    psx,    psx,    0,      "Sony Computer Entertainment Inc.", "Sony PlayStation (Asia-Pacific)",  GAME_IMPERFECT_SOUND | GAME_IMPERFECT_GRAPHICS )
src/mess/drivers/trs80.c
r2428r2429
351351   MDRV_SOUND_ADD(SPEAKER, 0)
352352   MDRV_SOUND_CONFIG(speaker_interface)
353353   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
354
355   /* devices */
356   MDRV_QUICKLOAD_ADD(trs80_cmd, "cmd", 0.5)
354357MACHINE_DRIVER_END
355358
356359
r2428r2429
469472   }
470473}
471474
472static void trs80_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
473{
474   /* quickload */
475   switch(state)
476   {
477      /* --- the following bits of info are returned as NULL-terminated strings --- */
478      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "cmd"); break;
479
480      /* --- the following bits of info are returned as pointers to data or functions --- */
481      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_trs80_cmd; break;
482
483      /* --- the following bits of info are returned as doubles --- */
484      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:            info->d = 0.5; break;
485
486      default:                              quickload_device_getinfo(devclass, state, info); break;
487   }
488}
489
490475SYSTEM_CONFIG_START(trs80)
491   CONFIG_DEVICE(trs80_quickload_getinfo)
492476   CONFIG_DEVICE(trs80_cassette_getinfo)
493477SYSTEM_CONFIG_END
494478
r2428r2429
518502
519503
520504/*    YEAR  NAME      PARENT     COMPAT         MACHINE   INPUT  INIT  CONFIG   COMPANY  FULLNAME */
521COMP( 1977, trs80,    0,    0,      level1,   trs80, trs80,    trs80,   "Tandy Radio Shack",  "TRS-80 Model I (Level I Basic)" , 0)
505COMP( 1977, trs80,    0,        0,      level1,   trs80, trs80,    trs80,   "Tandy Radio Shack",  "TRS-80 Model I (Level I Basic)" , 0)
522506COMP( 1978, trs80l2,  trs80,    0,      model1,   trs80, trs80,    trs8012,   "Tandy Radio Shack",  "TRS-80 Model I (Radio Shack Level II Basic)" , 0)
523507COMP( 1978, trs80l2a, trs80,    0,      model1,   trs80, trs80,    trs8012,   "Tandy Radio Shack",  "TRS-80 Model I (R/S L2 Basic)" , 0)
524508COMP( 1980, sys80,    trs80,    0,      model1,   trs80, trs80,    trs8012,   "EACA Computers Ltd.","System-80" , 0)
src/mess/drivers/primo.c
r2428r2429
249249   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
250250   MDRV_SOUND_ADD(SPEAKER, 0)
251251   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
252
253   /* snapshot/quickload */
254   MDRV_SNAPSHOT_ADD(primo, "pss", 0)
255   MDRV_QUICKLOAD_ADD(primo, "pp", 0)
252256MACHINE_DRIVER_END
253257
254258static MACHINE_DRIVER_START( primoa48 )
r2428r2429
363367   }
364368}
365369
366static void primo_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
367{
368   /* snapshot */
369   switch(state)
370   {
371      /* --- the following bits of info are returned as NULL-terminated strings --- */
372      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "pss"); break;
373
374      /* --- the following bits of info are returned as pointers to data or functions --- */
375      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_primo; break;
376
377      default:                              snapshot_device_getinfo(devclass, state, info); break;
378   }
379}
380
381static void primo_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
382{
383   /* quickload */
384   switch(state)
385   {
386      /* --- the following bits of info are returned as NULL-terminated strings --- */
387      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "pp"); break;
388
389      /* --- the following bits of info are returned as pointers to data or functions --- */
390      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_primo; break;
391
392      default:                              quickload_device_getinfo(devclass, state, info); break;
393   }
394}
395
396370static void primo_cartslot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
397371{
398372   /* cartslot */
r2428r2429
408382   }
409383}
410384
411#ifdef UNUSED_FUNCTION
412static void primo_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
413{
414   /* snapshot */
415   switch(state)
416   {
417      default:                              cbmfloppy_device_getinfo(devclass, state, info); break;
418   }
419}
420#endif /* UNUSED_FUNCTION */
421
422385SYSTEM_CONFIG_START( primoa )
423386   CONFIG_DEVICE(primo_cassette_getinfo)
424   CONFIG_DEVICE(primo_snapshot_getinfo)
425   CONFIG_DEVICE(primo_quickload_getinfo)
426387   CONFIG_DEVICE(primo_cartslot_getinfo)
427388SYSTEM_CONFIG_END
428389
src/mess/drivers/ti85.c
r2428r2429
374374MACHINE_DRIVER_END
375375
376376
377static MACHINE_DRIVER_START( ti85d )
378   MDRV_IMPORT_FROM( ti85 )
379   MDRV_SNAPSHOT_ADD(ti8x, "sav", 0)
380MACHINE_DRIVER_END
381
382
377383static MACHINE_DRIVER_START( ti86 )
378384   MDRV_IMPORT_FROM( ti85 )
379385   MDRV_CPU_MODIFY("main")
r2428r2429
385391   MDRV_NVRAM_HANDLER( ti86 )
386392MACHINE_DRIVER_END
387393
394
395static MACHINE_DRIVER_START( ti86d )
396   MDRV_IMPORT_FROM( ti86 )
397   MDRV_SNAPSHOT_ADD(ti8x, "sav", 0)
398MACHINE_DRIVER_END
399
400
388401ROM_START (ti81)
389402   ROM_REGION (0x18000, REGION_CPU1,0)
390403   ROM_SYSTEM_BIOS( 0, "v18",  "V 1.8" )
r2428r2429
463476   ROMX_LOAD( "ti83pv112.bin", 0x10000, 0x80000, CRC(ddca5026) SHA1(6615df5554076b6b81bd128bf847d2ff046e556b), ROM_BIOS(3) )
464477ROM_END
465478
466static void ti85_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
467{
468   /* snapshot */
469   switch(state)
470   {
471      /* --- the following bits of info are returned as NULL-terminated strings --- */
472      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "sav"); break;
473
474      /* --- the following bits of info are returned as pointers to data or functions --- */
475      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_ti8x; break;
476
477      default:                              snapshot_device_getinfo(devclass, state, info); break;
478   }
479}
480
481479static void ti85_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
482480{
483481   /* serial */
r2428r2429
502500
503501SYSTEM_CONFIG_START(ti85)
504502   CONFIG_DEVICE(ti85_serial_getinfo)
505   CONFIG_DEVICE(ti85_snapshot_getinfo)
506503SYSTEM_CONFIG_END
507504
508static void ti86_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
509{
510   /* snapshot */
511   switch(state)
512   {
513      /* --- the following bits of info are returned as NULL-terminated strings --- */
514      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "sav"); break;
515
516      /* --- the following bits of info are returned as pointers to data or functions --- */
517      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_ti8x; break;
518
519      default:                              snapshot_device_getinfo(devclass, state, info); break;
520   }
521}
522
523505static void ti86_serial_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
524506{
525507   /* serial */
r2428r2429
544526
545527SYSTEM_CONFIG_START(ti86)
546528   CONFIG_DEVICE(ti86_serial_getinfo)
547   CONFIG_DEVICE(ti86_snapshot_getinfo)
548529SYSTEM_CONFIG_END
549530
550531/*    YEAR  NAME        PARENT  COMPAT  MACHINE INPUT   INIT    CONFIG  COMPANY                 FULLNAME                        FLAGS */
551532COMP( 1990, ti81,       0,      0,      ti81,   ti81,   0,      NULL,   "Texas Instruments",    "TI-81",                        0 )
552COMP( 1992, ti85,       0,      0,      ti85,   ti85,   0,      ti85,   "Texas Instruments",    "TI-85",                        0 )
533COMP( 1992, ti85,       0,      0,      ti85d,  ti85,   0,      ti85,   "Texas Instruments",    "TI-85",                        0 )
553534COMP( 1993, ti82,       0,      0,      ti85,   ti85,   0,      NULL,   "Texas Instruments",    "TI-82",                        GAME_NOT_WORKING )
554535COMP( 1996, ti83,       0,      0,      ti85,   ti85,   0,      NULL,   "Texas Instruments",    "TI-83",                        GAME_NOT_WORKING )
555COMP( 1997, ti86,       0,      0,      ti86,   ti85,   0,      ti86,   "Texas Instruments",    "TI-86",                        0 )
536COMP( 1997, ti86,       0,      0,      ti86d,  ti85,   0,      ti86,   "Texas Instruments",    "TI-86",                        0 )
556537COMP( 1999, ti83p,      0,      0,      ti85,   ti85,   0,      NULL,   "Texas Instruments",    "TI-83 Plus",                   GAME_NOT_WORKING )
557538/*
558539COMP( 2001, ti83pse,    0,      0,      ti85,   ti85,   0,      NULL,   "Texas Instruments",    "TI-83 Plus Silver Edition",    GAME_NOT_WORKING )
src/mess/drivers/c64.c
r2428r2429
654654   MDRV_SOUND_ADD_TAG("sid", SID6581, VIC6567_CLOCK)
655655   MDRV_SOUND_CONFIG(c64_sound_interface)
656656   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
657
658657   MDRV_SOUND_ADD_TAG("dac", DAC, 0)
659658   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
659
660   /* devices */
661   MDRV_QUICKLOAD_ADD(cbm_c64, "p00,prg,t64", CBM_QUICKLOAD_DELAY_SECONDS)
660662MACHINE_DRIVER_END
661663
662664
r2428r2429
693695static MACHINE_DRIVER_START( c64gs )
694696   MDRV_IMPORT_FROM( c64pal )
695697   MDRV_SOUND_REMOVE( "dac" )
698   MDRV_QUICKLOAD_REMOVE
696699MACHINE_DRIVER_END
697700
698701
r2428r2429
721724   }
722725}
723726
724static void c64_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
725{
726   switch(state)
727   {
728      /* --- the following bits of info are returned as NULL-terminated strings --- */
729      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "p00,prg,t64"); break;
730
731      /* --- the following bits of info are returned as pointers to data or functions --- */
732      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_cbm_c64; break;
733
734      /* --- the following bits of info are returned as doubles --- */
735      case MESS_DEVINFO_FLOAT_QUICKLOAD_DELAY:            info->d = CBM_QUICKLOAD_DELAY; break;
736
737      default:                              quickload_device_getinfo(devclass, state, info); break;
738   }
739}
740
741727SYSTEM_CONFIG_START(c64)
742728   CONFIG_DEVICE(c64_cbmcartslot_getinfo)
743729   CONFIG_DEVICE(cbmfloppy_device_getinfo)
744   CONFIG_DEVICE(c64_quickload_getinfo)
745730   CONFIG_DEVICE(vc20tape_device_getinfo)
746731SYSTEM_CONFIG_END
747732
748733SYSTEM_CONFIG_START(sx64)
749734   CONFIG_DEVICE(c64_cbmcartslot_getinfo)
750   CONFIG_DEVICE(c64_quickload_getinfo)
751735   CONFIG_DEVICE(vc1541_device_getinfo)
752736SYSTEM_CONFIG_END
753737
r2428r2429
767751
768752SYSTEM_CONFIG_START(ultimax)
769753   CONFIG_DEVICE(ultimax_cbmcartslot_getinfo)
770   CONFIG_DEVICE(c64_quickload_getinfo)
771754   CONFIG_DEVICE(vc20tape_device_getinfo)
772755SYSTEM_CONFIG_END
773756
src/mess/drivers/vc4000.c
r2428r2429
5050#include "devices/cartslot.h"
5151#include "devices/snapquik.h"
5252
53static  READ8_HANDLER(vc4000_key_r)
53static QUICKLOAD_LOAD( vc4000 );
54
55static READ8_HANDLER(vc4000_key_r)
5456{
5557   UINT8 data=0;
5658   switch(offset & 0x0f) {
r2428r2429
210212   MDRV_SOUND_ADD(CUSTOM, 0)
211213   MDRV_SOUND_CONFIG(vc4000_sound_interface)
212214   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
215
216   /* quickload */
217   MDRV_QUICKLOAD_ADD(vc4000, "tvc", 0)
213218MACHINE_DRIVER_END
214219
215220ROM_START(vc4000)
r2428r2429
331336   return INIT_PASS;
332337}
333338
334static void vc4000_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
335{
336   /* quickload */
337   switch(state)
338   {
339      /* --- the following bits of info are returned as NULL-terminated strings --- */
340      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "tvc"); break;
341339
342      /* --- the following bits of info are returned as pointers to data or functions --- */
343      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_vc4000; break;
344
345      default:                              quickload_device_getinfo(devclass, state, info); break;
346   }
347}
348 
349
350340SYSTEM_CONFIG_START(vc4000)
351341   CONFIG_RAM_DEFAULT(5 * 1024)
352342   CONFIG_DEVICE(vc4000_cartslot_getinfo)
353   CONFIG_DEVICE(vc4000_quickload_getinfo)
354343SYSTEM_CONFIG_END
355344
356345/*       YEAR      NAME   PARENT   COMPAT   MACHINE   INPUT   INIT      CONFIG   COMPANY      FULLNAME */
src/mess/drivers/galaxy.c
r2428r2429
140140
141141   MDRV_VIDEO_START( galaxy )
142142   MDRV_VIDEO_UPDATE( galaxy )
143
144   /* snapshot */
145   MDRV_SNAPSHOT_ADD(galaxy, "gal", 0)
143146MACHINE_DRIVER_END
144147
145148ROM_START (galaxy)
r2428r2429
150153   ROM_LOAD ("galchr.bin", 0x0000, 0x0800, CRC(5c3b5bb5) SHA1(19429a61dc5e55ddec3242a8f695e06dd7961f88))
151154ROM_END
152155
153static void galaxy_snapshot_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
154{
155   /* snapshot */
156   switch(state)
157   {
158      /* --- the following bits of info are returned as NULL-terminated strings --- */
159      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "gal"); break;
160
161      /* --- the following bits of info are returned as pointers to data or functions --- */
162      case MESS_DEVINFO_PTR_SNAPSHOT_LOAD:               info->f = (genf *) snapshot_load_galaxy; break;
163
164      default:                              snapshot_device_getinfo(devclass, state, info); break;
165   }
166}
167
168156SYSTEM_CONFIG_START(galaxy)
169157   CONFIG_RAM(2 * 1024)
170158   CONFIG_RAM_DEFAULT(6 * 1024)
171159   CONFIG_RAM((6+16) * 1024)
172160   CONFIG_RAM((6+32) * 1024)
173161   CONFIG_RAM((6+48) * 1024)
174   CONFIG_DEVICE(galaxy_snapshot_getinfo)
175162SYSTEM_CONFIG_END
176163
177164/*    YEAR  NAME    PARENT  COMPAT  MACHINE INPUT   INIT    CONFIG  COMPANY FULLNAME */
src/mess/drivers/kc.c
r2428r2429
124124   AM_RANGE(0x0000, 0x0ffff) AM_READWRITE( kc85_4_port_r, kc85_4_port_w )
125125ADDRESS_MAP_END
126126
127
128#ifdef UNUSED_FUNCTION
129static  READ8_HANDLER(kc85_4d_port_r)
130{
131   int port;
132
133   port = offset & 0x0ff;
134
135   switch (port)
136   {
137      case 0x080:
138         return kc85_module_r(machine, offset);
139
140      case 0x085:
141      case 0x084:
142         return kc85_4_84_r(machine, offset);
143
144
145      case 0x086:
146      case 0x087:
147         return kc85_4_86_r(machine, offset);
148
149      case 0x088:
150      case 0x089:
151         return kc85_pio_data_r(machine, port-0x088);
152      case 0x08a:
153      case 0x08b:
154         return kc85_pio_control_r(machine, port-0x08a);
155      case 0x08c:
156      case 0x08d:
157      case 0x08e:
158      case 0x08f:
159         return kc85_ctc_r(machine, port-0x08c);
160      case 0x0f0:
161      case 0x0f1:
162      case 0x0f2:
163      case 0x0f3:
164         return kc85_disc_interface_ram_r(machine, offset);
165
166   }
167
168   logerror("unhandled port r: %04x\n",offset);
169   return 0x0ff;
170}
171
172static WRITE8_HANDLER(kc85_4d_port_w)
173{
174   int port;
175
176   port = offset & 0x0ff;
177
178   switch (port)
179   {
180      case 0x080:
181         kc85_module_w(offset,data);
182         return;
183
184      case 0x085:
185      case 0x084:
186         kc85_4_84_w(offset,data);
187         return;
188
189      case 0x086:
190      case 0x087:
191         kc85_4_86_w(offset,data);
192         return;
193
194      case 0x088:
195      case 0x089:
196         kc85_4_pio_data_w(port-0x088, data);
197         return;
198
199      case 0x08a:
200      case 0x08b:
201         kc85_pio_control_w(port-0x08a, data);
202         return;
203
204      case 0x08c:
205      case 0x08d:
206      case 0x08e:
207      case 0x08f:
208         kc85_ctc_w(port-0x08c, data);
209         return;
210
211      case 0x0f0:
212      case 0x0f1:
213      case 0x0f2:
214      case 0x0f3:
215         kc85_disc_interface_ram_w(offset,data);
216         return;
217   }
218
219   logerror("unhandled port w: %04x\n",offset);
220}
221
222ADDRESS_MAP_START(kc85_4d_io, ADDRESS_SPACE_IO, 8)
223   AM_RANGE(0x0000, 0x0ffff) AM_READWRITE(kc85_4d_port_r, kc85_4d_port_w)
224ADDRESS_MAP_END
225#endif
226
227127static ADDRESS_MAP_START(kc85_4_mem, ADDRESS_SPACE_PROGRAM, 8)
228128   AM_RANGE(0x0000, 0x3fff) AM_READWRITE(SMH_BANK1, SMH_BANK7)
229129   AM_RANGE(0x4000, 0x7fff) AM_READWRITE(SMH_BANK2, SMH_BANK8)
r2428r2429
370270   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
371271   MDRV_SOUND_ADD(SPEAKER, 0)
372272   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
273
274   /* devices */
275   MDRV_QUICKLOAD_ADD(kc, "kcc", 0)
373276MACHINE_DRIVER_END
374277
375278
r2428r2429
432335   }
433336}
434337
435static void kc85_quickload_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)
436{
437   /* quickload */
438   switch(state)
439   {
440      /* --- the following bits of info are returned as NULL-terminated strings --- */
441      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "kcc"); break;
442
443      /* --- the following bits of info are returned as pointers to data or functions --- */
444      case MESS_DEVINFO_PTR_QUICKLOAD_LOAD:            info->f = (genf *) quickload_load_kc; break;
445
446      default:                              quickload_device_getinfo(devclass, state, info); break;
447   }
448}
449
450338SYSTEM_CONFIG_START(kc85)
451339   CONFIG_RAM_DEFAULT      (64 * 1024)
452340   CONFIG_DEVICE(kc85_cassette_getinfo)
453   CONFIG_DEVICE(kc85_quickload_getinfo)
454341SYSTEM_CONFIG_END
455342
456343static void kc85d_floppy_getinfo(const mess_device_class *devclass, UINT32 state, union devinfo *info)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team