Previous 15994 Revisions Next

r2303 Sunday 6th April, 2008 at 14:17:13 UTC by Wilbert Pol
[COMPIS] Updated machine driver and memory map to use the pit8253/8254 devices.
[src/mess/drivers]compis.c

src/mess/drivers/compis.c
r2302r2303
3232 ******************************************************************************/
3333
3434#include "driver.h"
35#include "devconv.h"
3536#include "includes/compis.h"
3637#include "video/i82720.h"
3738#include "devices/mflopimg.h"
3839#include "devices/printer.h"
40#include "machine/pit8253.h"
3941#include "formats/cpis_dsk.h"
4042
4143
r2302r2303
4951   AM_RANGE( 0xf0000, 0xfffff) AM_ROM
5052ADDRESS_MAP_END
5153
54DEV_READWRITE8TO16LE( compis_pit8253, pit8253_r, pit8253_w )
55DEV_READWRITE8TO16LE( compis_pit8254, pit8253_r, pit8253_w )
56
5257static ADDRESS_MAP_START( compis_io, ADDRESS_SPACE_IO, 16)
5358   AM_RANGE( 0x0000, 0x0007) AM_READWRITE( compis_ppi_r, compis_ppi_w )   /* PPI 8255         */
54//   AM_RANGE( 0x0080, 0x0087) AM_READWRITE( compis_pit_r, compis_pit_w )   /* PIT 8253         */
59   AM_RANGE( 0x0080, 0x0087) AM_DEVREADWRITE(PIT8253, "pit8253", compis_pit_r, compis_pit_w )   /* PIT 8253         */
5560   AM_RANGE( 0x0100, 0x011b) AM_READWRITE( compis_rtc_r, compis_rtc_w )    /* RTC 58174            */
5661   AM_RANGE( 0x0280, 0x0283) AM_READWRITE( compis_osp_pic_r, compis_osp_pic_w ) /* PIC 8259 (80150/80130)  */
57//  AM_RANGE( 0x0288, 0x028e) AM_READWRITE( compis_osp_pit_r, compis_osp_pit_w ) /* PIT 8254 (80150/80130)  */
62//  AM_RANGE( 0x0288, 0x028e) AM_DEVREADWRITE(PIT8254, "pit8254", compis_osp_pit_r, compis_osp_pit_w ) /* PIT 8254 (80150/80130)  */
5863   AM_RANGE( 0x0310, 0x031f) AM_READWRITE( compis_usart_r, compis_usart_w )   /* USART 8251 Keyboard      */
5964   AM_RANGE( 0x0330, 0x033f) AM_READWRITE( compis_gdc_r, compis_gdc_w )   /* GDC 82720 PCS6:6     */
6065   AM_RANGE( 0x0340, 0x0343) AM_READWRITE( compis_fdc_r, compis_fdc_w )   /* iSBX0 (J8) FDC 8272      */
r2302r2303
196201   PORT_START /* 7 */
197202   PORT_DIPNAME( 0x01, 0x00, "iSBX-218A DMA")
198203   PORT_DIPSETTING( 0x01, "Enabled" )
199  PORT_DIPSETTING( 0x00, "Disabled" )
204   PORT_DIPSETTING( 0x00, "Disabled" )
200205INPUT_PORTS_END
201206
202207static const unsigned i86_address_mask = 0x000fffff;
r2302r2303
213218
214219   MDRV_MACHINE_RESET(compis)
215220
221   MDRV_DEVICE_ADD( "pit8253", PIT8253 )
222   MDRV_DEVICE_CONFIG( compis_pit8253_config )
223
224   MDRV_DEVICE_ADD( "pit8254", PIT8254 )
225   MDRV_DEVICE_CONFIG( compis_pit8254_config )
226
216227   /* video hardware */
217228   MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
218229   MDRV_SCREEN_ADD("main", RASTER)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team