Previous 15994 Revisions Next

r8233 Sunday 6th June, 2010 at 03:26:07 UTC by R. Belmont
Add clock parameter to all users of 8530SCC (guessed for some drivers)
[src/mess/drivers]apple2gs.c atarist.c ip20.c mac.c x68k.c
[src/mess/machine]8530scc.h

src/mess/machine/8530scc.h
r8232r8233
3434    DEVICE CONFIGURATION MACROS
3535***************************************************************************/
3636
37#define MDRV_SCC8530_ADD(_tag) \
38   MDRV_DEVICE_ADD(_tag, SCC8530, 0)
37#define MDRV_SCC8530_ADD(_tag, _clock) \
38   MDRV_DEVICE_ADD(_tag, SCC8530, _clock)
3939
4040#define MDRV_SCC8530_IRQ(_irq) \
4141   MDRV_DEVICE_CONFIG_DATAPTR(scc8530_interface, irq, _irq)
src/mess/drivers/atarist.c
r8232r8233
18491849
18501850   // device hardware
18511851   MDRV_MC68901_ADD(MC68901_TAG, Y2/8, mfp_intf)
1852   MDRV_SCC8530_ADD("scc")
1852   MDRV_SCC8530_ADD("scc", Y2/4)
18531853   MDRV_RS232_ADD(RS232_TAG, rs232_intf)
18541854
18551855   // video hardware
r8232r8233
19161916
19171917   // device hardware
19181918   MDRV_MC68901_ADD(MC68901_TAG, Y2/8, atariste_mfp_intf)
1919   MDRV_SCC8530_ADD("scc")
1919   MDRV_SCC8530_ADD("scc", Y2/4)
19201920   MDRV_RS232_ADD(RS232_TAG, rs232_intf)
19211921
19221922   // video hardware
r8232r8233
19901990   // device hardware
19911991   MDRV_MC68901_ADD(MC68901_TAG, U517/8, stbook_mfp_intf)
19921992   MDRV_RP5C15_ADD(RP5C15_TAG, rtc_intf)
1993   MDRV_SCC8530_ADD("scc")
1993   MDRV_SCC8530_ADD("scc", U517/2)
19941994   MDRV_RS232_ADD(RS232_TAG, rs232_intf)
19951995
19961996   // video hardware
src/mess/drivers/apple2gs.c
r8232r8233
247247   MDRV_DEVICE_REMOVE("fdc")
248248   MDRV_IWM_ADD("fdc", apple2_fdc_interface)
249249   /* SCC */
250   MDRV_SCC8530_ADD("scc")
250   MDRV_SCC8530_ADD("scc", APPLE2GS_14M/2)
251251
252252   MDRV_FLOPPY_APPLE_2_DRIVES_REMOVE()
253253   MDRV_FLOPPY_APPLE_2_DRIVES_ADD(apple2gs_floppy525_floppy_config,15,16)
src/mess/drivers/mac.c
r8232r8233
6060
6161    Registers:
6262    0x800: VERSION
63    0x801: MODE
64    0x802: CONTROL
65    0x803: FIFO MODE (bit 0 = half, bit 1 = full?)
66    0x804: FIFO IRQ STATUS
67    0x805: WAVETABLE CONTROL
68    0x806: VOLUME
69    0x807: CLOCK RATE (0 = 22 kHz)
63    0x801: MODE (1=FIFO mode, 2=wavetable mode)
64    0x802: CONTROL (bit 0=analog or PWM output, 1=stereo/mono, 7=processing time exceeded)
65    0x803: FIFO MODE (bit 7=clear FIFO, bit 1="non-ROM companding", bit 0="ROM companding")
66    0x804: FIFO IRQ STATUS (bit 0=ch A 1/2 full, 1=ch A full, 2=ch B 1/2 full, 3=ch B full)
67    0x805: WAVETABLE CONTROL (bits 0-3 wavetables 0-3 start)
68    0x806: VOLUME (bits 2-4 = 3 bit internal ASC volume, bits 5-7 = volume control sent to Sony sound chip)
69    0x807: CLOCK RATE (0 = Mac 22257 Hz, 1 = undefined, 2 = 22050 Hz, 3 = 44100 Hz)
7070    0x80a: PLAY REC A
71    0x80f: TEST (bits 6-7 = digital test, bits 4-5 = analog test)
72    0x810: WAVETABLE 0 PHASE (big-endian, only 24 bits valid)
73    0x814: WAVETABLE 0 INCREMENT (big-endian, only 24 bits valid)
74    0x818: WAVETABLE 1 PHASE
75    0x81C: WAVETABLE 1 INCREMENT
76    0x820: WAVETABLE 2 PHASE
77    0x824: WAVETABLE 2 INCREMENT
78    0x828: WAVETABLE 3 PHASE
79    0x82C: WAVETABLE 3 INCREMENT
7180
7281    Should become it's own device.
7382*/
r8232r8233
7685{
7786   mac_state *mac = (mac_state *)space->machine->driver_data;
7887
79//  logerror("ASC: Read @ %x (PC %x)\n", offset, cpu_get_pc(devtag_get_device(space->machine, "maincpu")));
88//   logerror("ASC: Read @ %x (PC %x)\n", offset, cpu_get_pc(devtag_get_device(space->machine, "maincpu")));
8089
8190   switch (offset)
8291   {
r8232r8233
96105   INT32 i;
97106   mac_state *mac = (mac_state *)space->machine->driver_data;
98107
99//  logerror("ASC: %02x to %x (PC %x)\n", data, offset, cpu_get_pc(devtag_get_device(space->machine, "maincpu")));
108//   logerror("ASC: %02x to %x (PC %x)\n", data, offset, cpu_get_pc(devtag_get_device(space->machine, "maincpu")));
100109
101110   mac->mac_asc_regs[offset] = data;
102111
r8232r8233
252261   int data, viaoffs;
253262   running_device *via_1 = devtag_get_device(space->machine, "via6522_1");
254263
255   printf("v8_r: %x, mask %x (PC %x)\n", offset*2, mem_mask, cpu_get_pc(space->cpu));
264//   printf("v8_r: %x, mask %x (PC %x)\n", offset*2, mem_mask, cpu_get_pc(space->cpu));
256265
257266   viaoffs = (offset >> 8) & 0x0f;
258267
r8232r8233
274283   running_device *via_1 = devtag_get_device(space->machine, "via6522_1");
275284   int viaoffs;
276285
277   printf("v8_w: %x to offset %x, mask %x (PC %x)\n", data, offset*2, mem_mask, cpu_get_pc(space->cpu));
286//   printf("v8_w: %x to offset %x, mask %x (PC %x)\n", data, offset*2, mem_mask, cpu_get_pc(space->cpu));
278287
279288   viaoffs = (offset >> 8) & 0x0f;
280289
r8232r8233
344353   int data, viaoffs;
345354   running_device *via_1 = devtag_get_device(space->machine, "via6522_1");
346355
347   printf("sonora_r: %x, mask %x (PC %x)\n", offset*2, mem_mask, cpu_get_pc(space->cpu));
356//   printf("sonora_r: %x, mask %x (PC %x)\n", offset*2, mem_mask, cpu_get_pc(space->cpu));
348357
349358   viaoffs = (offset >> 8) & 0x0f;
350359
r8232r8233
366375   running_device *via_1 = devtag_get_device(space->machine, "via6522_1");
367376   int viaoffs;
368377
369   printf("sonora_w: %x to offset %x, mask %x (PC %x)\n", data, offset*2, mem_mask, cpu_get_pc(space->cpu));
378//   printf("sonora_w: %x to offset %x, mask %x (PC %x)\n", data, offset*2, mem_mask, cpu_get_pc(space->cpu));
370379
371380   viaoffs = (offset >> 8) & 0x0f;
372381
r8232r8233
427436
428437static READ32_HANDLER(mac_lc3_id)
429438{
430   printf("Sonora ID register read, PC=%x\n", cpu_get_pc(space->cpu));
439//   printf("Sonora ID register read, PC=%x\n", cpu_get_pc(space->cpu));
431440
432441   return 0xa55a0001;   // 25 MHz LC III
433442}
r8232r8233
680689   MDRV_IWM_ADD("fdc", mac_iwm_interface)
681690   MDRV_FLOPPY_SONY_2_DRIVES_ADD(mac128512_floppy_config)
682691
683   MDRV_SCC8530_ADD("scc")
692   MDRV_SCC8530_ADD("scc", 7833600)
684693   MDRV_SCC8530_IRQ(mac_scc_irq)
685694   MDRV_VIA6522_ADD("via6522_0", 1000000, mac_via6522_intf)
686695
r8232r8233
802811   MDRV_IWM_ADD("fdc", mac_iwm_interface)
803812   MDRV_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_config)
804813
805   MDRV_SCC8530_ADD("scc")
814   MDRV_SCC8530_ADD("scc", 7833600)
806815   MDRV_SCC8530_IRQ(mac_scc_irq)
807816   MDRV_VIA6522_ADD("via6522_0", 1000000, mac_via6522_intf)
808817
r8232r8233
914923   MDRV_IWM_ADD("fdc", mac_iwm_interface)
915924   MDRV_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_config)
916925
917   MDRV_SCC8530_ADD("scc")
926   MDRV_SCC8530_ADD("scc", 7833600)
918927   MDRV_SCC8530_IRQ(mac_scc_irq)
919928   MDRV_VIA6522_ADD("via6522_0", 1000000, mac_via6522_intf)
920929
r8232r8233
10171026   MDRV_IWM_ADD("fdc", mac_iwm_interface)
10181027   MDRV_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_config)
10191028
1020   MDRV_SCC8530_ADD("scc")
1029   MDRV_SCC8530_ADD("scc", 7833600)
10211030   MDRV_SCC8530_IRQ(mac_scc_irq)
10221031   MDRV_VIA6522_ADD("via6522_0", 1000000, mac_via6522_intf)
10231032
src/mess/drivers/x68k.c
r8232r8233
26052605
26062606   MDRV_X68KHDC_ADD( "x68k_hdc" )
26072607
2608   MDRV_SCC8530_ADD( "scc" )
2608   MDRV_SCC8530_ADD( "scc", 7000000 )
26092609
26102610   MDRV_RP5C15_ADD( "rp5c15" , rtc_intf)
26112611
src/mess/drivers/ip20.c
r8232r8233
597597   MDRV_SOUND_ADD( "cdda", CDDA, 0 )
598598   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
599599
600   MDRV_SCC8530_ADD("scc")
600   MDRV_SCC8530_ADD("scc", 7000000)
601601
602602   MDRV_CDROM_ADD( "cdrom" )
603603

Previous 15994 Revisions Next


© 1998-2018 The MESS Team