Previous 15994 Revisions Next

r3237 Friday 12th September, 2008 at 05:59:33 UTC by Miodrag Milanović
[RADIO86] Added new features to Mikrosha and Radio86 16K
[src/mess/drivers]mikrosha.c radio86.c
[src/mess/includes]radio86.h
[src/mess/machine]radio86.c

src/mess/includes/radio86.h
r3236r3237
1717extern DRIVER_INIT( radioram );
1818extern MACHINE_RESET( radio86 );
1919
20extern READ8_HANDLER (radio_cpu_state_r );
21
2022extern const ppi8255_interface radio86_ppi8255_interface_1;
2123extern const ppi8255_interface radio86_ppi8255_interface_2;
2224extern const ppi8255_interface rk7007_ppi8255_interface;
src/mess/machine/radio86.c
r3236r3237
168168
169169static UINT8 romdisk_lsb,romdisk_msb, disk_sel;
170170
171READ8_HANDLER (radio_cpu_state_r )
172{
173   return cpunum_get_reg(0, I8080_STATUS);   
174}
175
171176MACHINE_RESET( radio86 )
172177{
173178   timer_set(ATTOTIME_IN_USEC(10), NULL, 0, radio86_reset);
src/mess/drivers/radio86.c
r3236r3237
5050    AM_RANGE( 0xf700, 0xf703 ) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w)
5151    AM_RANGE( 0xf780, 0xf7bf ) AM_DEVREADWRITE(I8275, "i8275", i8275_r, i8275_w) // video
5252    AM_RANGE( 0xf684, 0xf687 ) AM_DEVREADWRITE(PPI8255, "ppi8255_2", ppi8255_r, ppi8255_w)
53   AM_RANGE( 0xf688, 0xf688 ) AM_WRITE( radio86_pagesel )
53     AM_RANGE( 0xf688, 0xf688 ) AM_WRITE( radio86_pagesel )
5454    AM_RANGE( 0xf800, 0xffff ) AM_DEVWRITE(DMA8257, "dma8257", dma8257_w)    // DMA
5555    AM_RANGE( 0xf800, 0xffff ) AM_ROM  // System ROM page 1
5656ADDRESS_MAP_END
r3236r3237
5959   ADDRESS_MAP_UNMAP_HIGH
6060    AM_RANGE( 0x0000, 0x0fff ) AM_RAMBANK(1) // First bank
6161    AM_RANGE( 0x1000, 0x3fff ) AM_RAM  // RAM
62    AM_RANGE( 0x4000, 0x7fff ) AM_READ(radio_cpu_state_r)
6263    AM_RANGE( 0x8000, 0x8003 ) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w) AM_MIRROR(0x1ffc)
6364    //AM_RANGE( 0xa000, 0xa003 ) AM_DEVREADWRITE(PPI8255, "ppi8255_2", ppi8255_r, ppi8255_w) AM_MIRROR(0x1ffc)
6465    AM_RANGE( 0xc000, 0xc001 ) AM_DEVREADWRITE(I8275, "i8275", i8275_r, i8275_w) AM_MIRROR(0x1ffe) // video
src/mess/drivers/mikrosha.c
r3236r3237
2020static ADDRESS_MAP_START(mikrosha_mem, ADDRESS_SPACE_PROGRAM, 8)
2121    AM_RANGE( 0x0000, 0x0fff ) AM_RAMBANK(1) // First bank
2222    AM_RANGE( 0x1000, 0x7fff ) AM_RAM  // RAM
23    AM_RANGE( 0x8000, 0xbfff ) AM_READ(radio_cpu_state_r)
2324    AM_RANGE( 0xc000, 0xc003 ) AM_DEVREADWRITE(PPI8255, "ppi8255_1", ppi8255_r, ppi8255_w) AM_MIRROR(0x07fc)
2425    AM_RANGE( 0xc800, 0xc803 ) AM_DEVREADWRITE(PPI8255, "ppi8255_2", ppi8255_r, ppi8255_w) AM_MIRROR(0x07fc)
2526    AM_RANGE( 0xd000, 0xd001 ) AM_DEVREADWRITE(I8275, "i8275", i8275_r, i8275_w) AM_MIRROR(0x07fe) // video
2627    //AM_RANGE( 0xd800, 0xd603 ) AM_MIRROR(0x07fc) // Timer
27   AM_RANGE( 0xf800, 0xffff ) AM_DEVWRITE(DMA8257, "dma8257", dma8257_w)    // DMA
28     AM_RANGE( 0xf800, 0xffff ) AM_DEVWRITE(DMA8257, "dma8257", dma8257_w)    // DMA
2829    AM_RANGE( 0xf800, 0xffff ) AM_ROM  // System ROM
2930ADDRESS_MAP_END
3031
32static ADDRESS_MAP_START( mikrosha_io , ADDRESS_SPACE_IO, 8)
33   ADDRESS_MAP_UNMAP_HIGH
34   AM_RANGE( 0x80, 0xbf ) AM_READ(radio_cpu_state_r)
35ADDRESS_MAP_END
36
3137/* Input ports */
3238static INPUT_PORTS_START( mikrosha )
3339   PORT_START("LINE0")
r3236r3237
126132    /* basic machine hardware */
127133    MDRV_CPU_ADD("main", 8080, XTAL_16MHz / 9)
128134    MDRV_CPU_PROGRAM_MAP(mikrosha_mem, 0)
135    MDRV_CPU_IO_MAP(mikrosha_io, 0)
129136    MDRV_MACHINE_RESET( radio86 )
130137
131138   MDRV_DEVICE_ADD( "ppi8255_1", PPI8255 )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team