Previous 15994 Revisions Next

r2590 Friday 9th May, 2008 at 18:52:11 UTC by Curt Coder
[CDP1802] Added changes from MAME and miscellanous cleanups.
[src/emu/cpu/cdp1802]cdp1802.c cdp1802.h
[src/emu/video]cdp1869.c
[src/mame/drivers]cidelsa.c
[src/mess/drivers]comx35.c studio2.c tmc1800.c tmc2000e.c tmc600.c vip.c
[src/mess/video]cdp1861.c cdp1861.h cdp1864.c cdp1864.h

src/mame/drivers/cidelsa.c
r2589r2590
4545   state->cdp1802_q = level;
4646}
4747
48static const cdp1802_interface cidelsa_cdp1802_config =
48static CDP1802_INTERFACE( cidelsa_cdp1802_config )
4949{
5050   cidelsa_mode_r,      // MODE
5151   cidelsa_ef_r,      // EF
src/emu/cpu/cdp1802/cdp1802.c
r2589r2590
175175   }
176176}
177177
178static void cdp1802_sample_ef(void)
178static void cdp1802_sample_ef(running_machine *machine)
179179{
180180   if (cdp1802.intf->ef_r)
181181   {
182      cdp1802.ef = cdp1802.intf->ef_r(Machine) & 0x0f;
182      cdp1802.ef = cdp1802.intf->ef_r(machine) & 0x0f;
183183   }
184184   else
185185   {
r2589r2590
187187   }
188188}
189189
190static void cdp1802_output_state_code(void)
190static void cdp1802_output_state_code(running_machine *machine)
191191{
192192   if (cdp1802.intf->sc_w)
193193   {
194      cdp1802_state state_code;
195
194196      switch (cdp1802.state)
195197      {
196198      case CDP1802_STATE_0_FETCH:
197         cdp1802.intf->sc_w(Machine, CDP1802_STATE_CODE_S0_FETCH);
199         state_code = CDP1802_STATE_CODE_S0_FETCH;
198200         break;
199201
200202      case CDP1802_STATE_1_EXECUTE:
201         cdp1802.intf->sc_w(Machine, CDP1802_STATE_CODE_S1_EXECUTE);
203         state_code = CDP1802_STATE_CODE_S1_EXECUTE;
202204         break;
203205
204206      case CDP1802_STATE_2_DMA_IN:
205207      case CDP1802_STATE_2_DMA_OUT:
206         cdp1802.intf->sc_w(Machine, CDP1802_STATE_CODE_S2_DMA);
208         state_code = CDP1802_STATE_CODE_S2_DMA;
207209         break;
208210
209211      case CDP1802_STATE_3_INT:
210         cdp1802.intf->sc_w(Machine, CDP1802_STATE_CODE_S3_INTERRUPT);
212         state_code = CDP1802_STATE_CODE_S3_INTERRUPT;
211213         break;
212214      }
215
216      cdp1802.intf->sc_w(machine, state_code);
213217   }
214218}
215219
216static void cdp1802_run(void)
220static void cdp1802_run(running_machine *machine)
217221{
218   cdp1802_output_state_code();
222   cdp1802_output_state_code(machine);
219223
220224   switch (cdp1802.state)
221225   {
r2589r2590
273277
274278   case CDP1802_STATE_1_EXECUTE:
275279
276      cdp1802_sample_ef();
280      cdp1802_sample_ef(machine);
277281
278282      switch (I)
279283      {
r2589r2590
496500
497501            if (cdp1802.intf->q_w)
498502            {
499               cdp1802.intf->q_w(Machine, Q);
503               cdp1802.intf->q_w(machine, Q);
500504            }
501505            break;
502506
r2589r2590
505509
506510            if (cdp1802.intf->q_w)
507511            {
508               cdp1802.intf->q_w(Machine, Q);
512               cdp1802.intf->q_w(machine, Q);
509513            }
510514            break;
511515
r2589r2590
552556         break;
553557
554558      case 0xc:
555         cdp1802_output_state_code();
559         cdp1802_output_state_code(machine);
556560
557561         switch (N)
558562         {
r2589r2590
738742
739743      if (cdp1802.intf->dma_r)
740744      {
741         MW(R[0], cdp1802.intf->dma_r(Machine));
745         MW(R[0], cdp1802.intf->dma_r(machine, R[0]));
742746      }
743747
744748      R[0] = R[0] + 1;
r2589r2590
771775
772776      if (cdp1802.intf->dma_w)
773777      {
774           cdp1802.intf->dma_w(Machine, M(R[0]));
778           cdp1802.intf->dma_w(machine, R[0], M(R[0]));
775779      }
776780
777781      R[0] = R[0] + 1;
r2589r2590
826830
827831static int cdp1802_execute(int cycles)
828832{
833   running_machine *machine = Machine;
834
829835   cdp1802_ICount = cycles;
830836
831837   cdp1802.prevmode = cdp1802.mode;
832   cdp1802.mode = cdp1802.intf->mode_r(Machine);
838   cdp1802.mode = cdp1802.intf->mode_r(machine);
833839
834840   do
835841   {
r2589r2590
839845         I = 0;
840846         N = 0;
841847         cdp1802.state = CDP1802_STATE_1_EXECUTE;
842         cdp1802_run();
848         cdp1802_run(machine);
843849         break;
844850
845851      case CDP1802_MODE_RESET:
846852         cdp1802.state = CDP1802_STATE_1_RESET;
847         cdp1802_run();
853         cdp1802_run(machine);
848854         break;
849855
850856      case CDP1802_MODE_PAUSE:
r2589r2590
862868         case CDP1802_MODE_RESET:
863869            cdp1802.prevmode = CDP1802_MODE_RUN;
864870            cdp1802.state = CDP1802_STATE_1_INIT;
865            cdp1802_run();
871            cdp1802_run(machine);
866872            break;
867873
868874         case CDP1802_MODE_PAUSE:
869875            cdp1802.prevmode = CDP1802_MODE_RUN;
870876            cdp1802.state = CDP1802_STATE_0_FETCH;
871            cdp1802_run();
877            cdp1802_run(machine);
872878            break;
873879
874880         case CDP1802_MODE_RUN:
875            cdp1802_run();
881            cdp1802_run(machine);
876882            break;
877883         }
878884         break;
src/emu/cpu/cdp1802/cdp1802.h
r2589r2590
8080typedef void (*cdp1802_q_write_func)(running_machine *machine, int level);
8181#define CDP1802_Q_WRITE(name) void name(running_machine *machine, int level)
8282
83typedef UINT8 (*cdp1802_dma_read_func)(running_machine *machine);
84#define CDP1802_DMA_READ(name) UINT8 name(running_machine *machine)
83typedef UINT8 (*cdp1802_dma_read_func)(running_machine *machine, UINT16 ma);
84#define CDP1802_DMA_READ(name) UINT8 name(running_machine *machine, UINT16 ma)
8585
86typedef void (*cdp1802_dma_write_func)(running_machine *machine, UINT8 data);
87#define CDP1802_DMA_WRITE(name) void name(running_machine *machine, UINT8 data)
86typedef void (*cdp1802_dma_write_func)(running_machine *machine, UINT16 ma, UINT8 data);
87#define CDP1802_DMA_WRITE(name) void name(running_machine *machine, UINT16 ma, UINT8 data)
8888
8989/* interface */
9090typedef struct _cdp1802_interface cdp1802_interface;
r2589r2590
108108   /* if specified, this gets called for every DMA write */
109109   cdp1802_dma_write_func   dma_w;
110110};
111#define CDP1802_INTERFACE(name) const cdp1802_interface (name) =
111112
112113#ifdef ENABLE_DEBUGGER
113114offs_t cdp1802_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UINT8 *opram);
src/emu/video/cdp1869.c
r2589r2590
1212    - connect to sound system when possible
1313    - white noise
1414    - scanline based update
15   - separate to CDP1869 and CDP1870/6
1516
1617*/
1718
r2589r2590
857858
858859      /* --- the following bits of info are returned as NULL-terminated strings --- */
859860      case DEVINFO_STR_NAME:                     info->s = "RCA CDP1869";               break;
860      case DEVINFO_STR_FAMILY:                  info->s = "RCA CDP1869";               break;
861      case DEVINFO_STR_FAMILY:                  info->s = "RCA CDP1800";               break;
861862      case DEVINFO_STR_VERSION:                  info->s = "1.0";                     break;
862863      case DEVINFO_STR_SOURCE_FILE:               info->s = __FILE__;                     break;
863864      case DEVINFO_STR_CREDITS:                  info->s = "Copyright Nicola Salmoria and the MAME Team"; break;
src/mess/video/cdp1864.c
r2589r2590
243243
244244/* DMA Write */
245245
246void cdp1864_dma_w(const device_config *device, UINT8 data)
246void cdp1864_dma_w(const device_config *device, UINT8 data, int rdata, int gdata, int bdata)
247247{
248248   cdp1864_t *cdp1864 = get_safe_token(device);
249249
250   UINT16 addr = activecpu_get_reg(CDP1802_R0);
251
252250   int sx = video_screen_get_hpos(cdp1864->screen) + 4;
253251   int y = video_screen_get_vpos(cdp1864->screen);
254252   int x;
r2589r2590
257255   {
258256      int color = CDP1864_BACKGROUND_COLOR_SEQUENCE[cdp1864->bgcolor];
259257
260      if (data & 0x80)
258      if (BIT(data, 7))
261259      {
262         color = cdp1864->intf->color_ram_r(device, addr);
260         color = (gdata << 2) | (bdata << 1) | rdata;
263261      }
264262
265263      *BITMAP_ADDR16(cdp1864->bitmap, y, sx + x) = color;
r2589r2590
427425
428426      /* --- the following bits of info are returned as NULL-terminated strings --- */
429427      case DEVINFO_STR_NAME:                     info->s = "RCA CDP1861";               break;
430      case DEVINFO_STR_FAMILY:                  info->s = "RCA CDP1861";               break;
428      case DEVINFO_STR_FAMILY:                  info->s = "RCA CDP1800";               break;
431429      case DEVINFO_STR_VERSION:                  info->s = "1.0";                     break;
432430      case DEVINFO_STR_SOURCE_FILE:               info->s = __FILE__;                     break;
433431      case DEVINFO_STR_CREDITS:                  info->s = "Copyright MESS Team";         break;
src/mess/video/cdp1864.h
r2589r2590
6969typedef void (*cdp1864_on_efx_changed_func) (const device_config *device, int level);
7070#define CDP1864_ON_EFX_CHANGED(name) void name(const device_config *device, int level)
7171
72typedef UINT8 (*cdp1864_color_ram_read_func)(const device_config *device, UINT16 addr);
73#define CDP1864_COLOR_RAM_READ(name) UINT8 name(const device_config *device, UINT16 addr)
74
7572#define CDP1864      DEVICE_GET_INFO_NAME(cdp1864)
7673
7774/* interface */
r2589r2590
9087   /* this gets called for every change of the EFX pin (pin 18) */
9188   cdp1864_on_efx_changed_func      on_efx_changed;
9289
93   /* color ram access */
94   cdp1864_color_ram_read_func      color_ram_r;
95
9690   double res_r;            /* red output resistor value */
9791   double res_g;            /* green output resistor value */
9892   double res_b;            /* blue output resistor value */
9993   double res_bkg;            /* background output resistor value */
10094};
95#define CDP1864_INTERFACE(name) const cdp1864_interface (name)=
10196
10297/* device interface */
10398DEVICE_GET_INFO( cdp1864 );
r2589r2590
118113void cdp1864_aoe_w(const device_config *device, int level);
119114
120115/* DMA write */
121void cdp1864_dma_w(const device_config *device, UINT8 data);
116void cdp1864_dma_w(const device_config *device, UINT8 data, int rdata, int gdata, int bdata);
122117
123118/* screen update */
124119void cdp1864_update(const device_config *device, bitmap_t *bitmap, const rectangle *cliprect);
src/mess/video/cdp1861.c
r2589r2590
261261
262262      /* --- the following bits of info are returned as NULL-terminated strings --- */
263263      case DEVINFO_STR_NAME:                     info->s = "RCA CDP1861";               break;
264      case DEVINFO_STR_FAMILY:                  info->s = "RCA CDP1861";               break;
264      case DEVINFO_STR_FAMILY:                  info->s = "RCA CDP1800";               break;
265265      case DEVINFO_STR_VERSION:                  info->s = "1.0";                     break;
266266      case DEVINFO_STR_SOURCE_FILE:               info->s = __FILE__;                     break;
267267      case DEVINFO_STR_CREDITS:                  info->s = "Copyright MESS Team";         break;
src/mess/video/cdp1861.h
r2589r2590
7575   /* this gets called for every change of the EFX pin (pin 9) */
7676   cdp1861_on_efx_changed_func      on_efx_changed;
7777};
78#define CDP1861_INTERFACE(name) const cdp1861_interface (name)=
7879
7980/* device interface */
8081DEVICE_GET_INFO( cdp1861 );
src/mess/drivers/vip.c
r2589r2590
101101   cdp1861_efx = level;
102102}
103103
104static const cdp1861_interface vip_cdp1861_intf =
104static CDP1861_INTERFACE( vip_cdp1861_intf )
105105{
106106   SCREEN_TAG,
107107   XTAL_3_52128MHz,
r2589r2590
176176   cdp1861_dma_w(cdp1861, data);
177177}
178178
179static const cdp1802_interface vip_config =
179static CDP1802_INTERFACE( vip_config )
180180{
181181   vip_mode_r,
182182   vip_ef_r,
src/mess/drivers/tmc600.c
r2589r2590
255255   return flags;
256256}
257257
258static const cdp1802_interface tmc600_cdp1802_config =
258static CDP1802_INTERFACE( tmc600_cdp1802_config )
259259{
260260   tmc600_mode_r,
261261   tmc600_ef_r,
src/mess/drivers/studio2.c
r2589r2590
193193   cdp1861_efx = level;
194194}
195195
196static const cdp1861_interface studio2_cdp1861_intf =
196static CDP1861_INTERFACE( studio2_cdp1861_intf )
197197{
198198   SCREEN_TAG,
199199   XTAL_3_52128MHz,
r2589r2590
228228   cdp1864_efx = level;
229229}
230230
231static CDP1864_COLOR_RAM_READ( mpt02_colorram_r )
231static CDP1864_INTERFACE( mpt02_cdp1864_intf )
232232{
233   return colorram[addr / 4]; // 0x04 = R, 0x02 = B, 0x01 = G
234}
235
236static const cdp1864_interface mpt02_cdp1864_intf =
237{
238233   SCREEN_TAG,
239234   CDP1864_CLK_FREQ,
240235   mpt02_int_w,
241236   mpt02_dmao_w,
242237   mpt02_efx_w,
243   mpt02_colorram_r,
244238   RES_K(2.2),   // unverified
245239   RES_K(1),   // unverified
246240   RES_K(5.1),   // unverified
r2589r2590
289283   cdp1861_dma_w(cdp1861, data);
290284}
291285
292static const cdp1802_interface studio2_config =
286static CDP1802_INTERFACE( studio2_config )
293287{
294288   studio2_mode_r,
295289   studio2_ef_r,
r2589r2590
315309{
316310   const device_config *cdp1864 = device_list_find_by_tag(machine->config->devicelist, CDP1864, CDP1864_TAG);
317311
318   cdp1864_dma_w(cdp1864, data);
312   UINT8 color = colorram[ma / 4]; // 0x04 = R, 0x02 = B, 0x01 = G
313
314   int rdata = BIT(color, 2);
315   int gdata = BIT(color, 0);
316   int bdata = BIT(color, 1);
317
318   cdp1864_dma_w(cdp1864, data, rdata, gdata, bdata);
319319}
320320
321static const cdp1802_interface mpt02_config =
321static CDP1802_INTERFACE( mpt02_config )
322322{
323323   studio2_mode_r,
324324   mpt02_ef_r,
src/mess/drivers/tmc2000e.c
r2589r2590
1/*
2
3   Telmac 2000E
4    ------------
5    (c) 1980 Telercas Oy, Finland
6
7    CPU:        CDP1802A    1.75 MHz
8    RAM:        8 KB
9    ROM:        8 KB
10
11    Video:      CDP1864     1.75 MHz
12    Color RAM:  1 KB
13
14    Colors:     8 fg, 4 bg
15    Resolution: 64x192
16    Sound:      frequency control, volume on/off
17    Keyboard:   ASCII (RCA VP-601/VP-611), KB-16/KB-64
18
19    SBASIC:     24.0
20
21
22    Telmac TMC-121/111/112
23    ----------------------
24    (c) 198? Telercas Oy, Finland
25
26    CPU:        CDP1802A    ? MHz
27
28    Built from Telmac 2000 series cards. Huge metal box.
29
30*/
31
132#include "driver.h"
233#include "cpu/cdp1802/cdp1802.h"
334#include "devices/printer.h"
r2589r2590
1041#define SCREEN_TAG "main"
1142#define CDP1864_TAG "cdp1864"
1243
44static const device_config *cassette_device_image(void)
45{
46   return image_from_devtype_and_index(IO_CASSETTE, 0);
47}
48
1349/* Read/Write Handlers */
1450
1551static READ8_HANDLER( vismac_r )
r2589r2590
6096static ADDRESS_MAP_START( tmc2000e_map, ADDRESS_SPACE_PROGRAM, 8 )
6197   AM_RANGE(0x0000, 0x1fff) AM_RAM
6298   AM_RANGE(0xc000, 0xdfff) AM_ROM
63   AM_RANGE(0xfc00, 0xffff) AM_RAM AM_BASE(&colorram)
99   AM_RANGE(0xfc00, 0xffff) AM_WRITEONLY AM_BASE(&colorram)
64100ADDRESS_MAP_END
65101
66102static ADDRESS_MAP_START( tmc2000e_io_map, ADDRESS_SPACE_IO, 8 )
r2589r2590
70106   AM_RANGE(0x04, 0x04) AM_READWRITE(io_r, io_w)
71107   AM_RANGE(0x05, 0x05) AM_READWRITE(vismac_r, vismac_w)
72108   AM_RANGE(0x06, 0x06) AM_READWRITE(floppy_r, floppy_w)
73   AM_RANGE(0x07, 0x07) AM_READWRITE(input_port_0_r, io_select_w)
109   AM_RANGE(0x07, 0x07) AM_READ_PORT("DSW0") AM_WRITE(io_select_w)
74110ADDRESS_MAP_END
75111
76112/* Input Ports */
r2589r2590
113149   cdp1864_efx = level;
114150}
115151
116static CDP1864_COLOR_RAM_READ( tmc2000e_colorram_r )
152static CDP1864_INTERFACE( tmc2000e_cdp1864_intf )
117153{
118   return colorram[addr]; // 0x04 = R, 0x02 = B, 0x01 = G
119}
120
121static const cdp1864_interface tmc2000e_cdp1864_intf =
122{
123154   SCREEN_TAG,
124155   CDP1864_CLK_FREQ,
125156   tmc2000e_int_w,
126157   tmc2000e_dmao_w,
127158   tmc2000e_efx_w,
128   tmc2000e_colorram_r,
129159   RES_K(2.2),   // unverified
130160   RES_K(1),   // unverified
131161   RES_K(5.1),   // unverified
r2589r2590
162192
163193   /*
164194        EF1     CDP1864
165        EF2     tape/floppy
195        EF2     tape in/floppy
166196        EF3     keyboard
167197        EF4     I/O port
168198    */
169199
200   // CDP1864
201
202   if (!cdp1864_efx) flags -= EF1;
203
204   // tape in
205
206   if (cassette_input(cassette_device_image()) > +1.0) flags -= EF2;
207   
170208   // keyboard
209
171210   sprintf(port, "IN%d", keylatch / 8);
172211   if (~input_port_read(machine, port) & (1 << (keylatch % 8))) flags -= EF3;
173212
r2589r2590
178217{
179218   const device_config *cdp1864 = device_list_find_by_tag(machine->config->devicelist, CDP1864, CDP1864_TAG);
180219
181   // CDP1864 sound generator on/off
220   // turn CDP1864 sound generator on/off
221
182222   cdp1864_aoe_w(cdp1864, level);
183223
184224   // set Q led status
185   // leds: Wait, Q, Power
225
186226   set_led_status(1, level);
187227
188   // tape output
228   // tape out
189229
230   cassette_output(cassette_device_image(), level ? -1.0 : +1.0);
231
190232   // floppy control (FDC-6)
191233}
192234
r2589r2590
194236{
195237   const device_config *cdp1864 = device_list_find_by_tag(machine->config->devicelist, CDP1864, CDP1864_TAG);
196238
197   cdp1864_dma_w(cdp1864, data);
239   UINT8 color = (colorram[ma & 0x3ff]) & 0x07; // 0x04 = R, 0x02 = B, 0x01 = G
240   
241   int rdata = BIT(color, 2);
242   int gdata = BIT(color, 0);
243   int bdata = BIT(color, 1);
244
245   cdp1864_dma_w(cdp1864, data, rdata, gdata, bdata);
198246}
199247
200static const cdp1802_interface tmc2000e_config =
248static CDP1802_INTERFACE( tmc2000e_config )
201249{
202250   tmc2000e_mode_r,
203251   tmc2000e_ef_r,
r2589r2590
277325   switch(state)
278326   {
279327      /* --- the following bits of info are returned as 64-bit signed integers --- */
280      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
328      case MESS_DEVINFO_INT_COUNT:               info->i = 1; break;
329      case MESS_DEVINFO_INT_CASSETTE_DEFAULT_STATE:   info->i = CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED; break;
281330
282331      default:                              cassette_device_getinfo(devclass, state, info); break;
283332   }
src/mess/drivers/tmc1800.c
r2589r2590
326326   cdp1861_efx = level;
327327}
328328
329static const cdp1861_interface tmc1800_cdp1861_intf =
329static CDP1861_INTERFACE( tmc1800_cdp1861_intf )
330330{
331331   SCREEN_TAG,
332332   XTAL_1_75MHz,
r2589r2590
363363   cdp1864_efx = level;
364364}
365365
366static CDP1864_COLOR_RAM_READ( tmc2000_colorram_r )
366static CDP1864_INTERFACE( tmc2000_cdp1864_intf )
367367{
368   return (~colorram[addr & 0x1ff]) & 0x07;
369}
370
371static const cdp1864_interface tmc2000_cdp1864_intf =
372{
373368   SCREEN_TAG,
374369   CDP1864_CLK_FREQ,
375370   tmc2000_int_w,
376371   tmc2000_dmao_w,
377372   tmc2000_efx_w,
378   tmc2000_colorram_r,
379373   RES_K(2.2),   // unverified
380374   RES_K(1),   // unverified
381375   RES_K(5.1),   // unverified
r2589r2590
413407   char port[4];
414408
415409   /*
416        EF1     ?
410        EF1     CDP1861
417411        EF2     tape in
418412        EF3     keyboard
419413        EF4     ?
420414    */
421415
416   // CDP1861
417
418   if (!cdp1861_efx) flags -= EF1;
419
422420   // tape in
423421
424422   if (cassette_input(cassette_device_image()) > +1.0) flags -= EF2;
r2589r2590
530528{
531529   const device_config *cdp1864 = device_list_find_by_tag(machine->config->devicelist, CDP1864, CDP1864_TAG);
532530
533   cdp1864_dma_w(cdp1864, data);
531   UINT8 color = (~colorram[ma & 0x1ff]) & 0x07;
532   
533   int rdata = BIT(color, 2);
534   int gdata = BIT(color, 0);
535   int bdata = BIT(color, 1);
536
537   cdp1864_dma_w(cdp1864, data, rdata, gdata, bdata);
534538}
535539
536540static const cdp1802_interface tmc2000_config =
r2589r2590
614618{
615619   const device_config *cdp1864 = device_list_find_by_tag(machine->config->devicelist, CDP1864, CDP1864_TAG);
616620
617   cdp1864_dma_w(cdp1864, data);
621   UINT16 addr = activecpu_get_reg(CDP1802_R0);
622   UINT8 color = (colorram[addr & 0x1ff]) & 0x07;
623   
624   int rdata = BIT(color, 0);
625   int gdata = BIT(color, 1);
626   int bdata = BIT(color, 2);
627
628   cdp1864_dma_w(cdp1864, data, rdata, gdata, bdata);
618629}
619630
620static const cdp1802_interface oscnano_config =
631static CDP1802_INTERFACE( oscnano_config )
621632{
622633   oscnano_mode_r,
623634   oscnano_ef_r,
r2589r2590
664675
665676   switch (mess_ram_size)
666677   {
678   case 4*1024:
679      memory_install_readwrite8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x0fff, 0, 0, SMH_BANK1, SMH_BANK1);
680      memory_install_readwrite8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x1000, 0x7fff, 0, 0, SMH_UNMAP, SMH_UNMAP);
681      break;
682
667683   case 16*1024:
668684      memory_install_readwrite8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x3fff, 0, 0, SMH_BANK1, SMH_BANK1);
669685      memory_install_readwrite8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x4000, 0x7fff, 0, 0, SMH_UNMAP, SMH_UNMAP);
r2589r2590
888904SYSTEM_CONFIG_END
889905
890906SYSTEM_CONFIG_START( tmc2000 )
891   CONFIG_RAM_DEFAULT   (16 * 1024)
907   CONFIG_RAM_DEFAULT   ( 4 * 1024)
908   CONFIG_RAM         (16 * 1024)
892909   CONFIG_RAM         (32 * 1024)
893910   CONFIG_DEVICE(tmc1800_cassette_getinfo)
894911SYSTEM_CONFIG_END
r2589r2590
916933/*    YEAR  NAME        PARENT  COMPAT  MACHINE     INPUT       INIT        CONFIG      COMPANY         FULLNAME        FLAGS */
917934COMP( 1977, tmc1800,    0,      0,      tmc1800,    tmc1800,    tmc1800,    tmc1800,    "Telercas Oy",  "Telmac 1800",  GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
918935COMP( 1977, osc1000b,   tmc1800,0,      osc1000b,   tmc1800,    tmc1800,    tmc1800,    "OSCOM Oy",      "OSCOM 1000B",  GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
919COMP( 1980, oscnano,   0,      0,      oscnano,   oscnano,   tmc1800,   oscnano,   "OSCOM Oy",      "OSCOM Nano",  GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
936COMP( 1980, oscnano,   0,      0,      oscnano,   oscnano,   tmc1800,   oscnano,   "OSCOM Oy",      "OSCOM Nano",   GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
920937COMP( 1980, tmc2000,    0,      0,      tmc2000,    tmc2000,    tmc1800,    tmc2000,    "Telercas Oy",  "Telmac 2000",  GAME_NOT_WORKING | GAME_SUPPORTS_SAVE )
src/mess/drivers/comx35.c
r2589r2590
233233   cassette_output(cassette_device_image(), level ? -1.0 : +1.0);
234234}
235235 
236static const cdp1802_interface comx35_cdp1802_config =
236static CDP1802_INTERFACE( comx35_cdp1802_config )
237237{
238238   comx35_mode_r,
239239   comx35_ef_r,

Previous 15994 Revisions Next


© 1998-2018 The MESS Team