Previous 15994 Revisions Next

r5231 Tuesday 14th July, 2009 at 13:08:48 UTC by Curt Coder
Refactored all drivers (except orion, sord, pc8801) to use new I8255A implementation.
[src/mess/audio]dai.c
[src/mess/drivers]amstrad.c apogee.c at.c atom.c b2m.c compis.c dai.c fk1.c irisha.c lviv.c mikro80.c mikrosha.c msx.c mz700.c mz80.c partner.c pc.c pc6001.c pk8000.c pmd85.c pp01.c radio86.c rt1715.c special.c svi318.c ut88.c vector06.c votrpss.c x68k.c
[src/mess/includes]atom.h b2m.h compis.h dai.h irisha.h lviv.h mikro80.h msx.h mz700.h mz80.h partner.h pc.h pmd85.h pp01.h radio86.h special.h svi318.h ut88.h vector06.h
[src/mess/machine]amstrad.c atom.c b2m.c bk.c compis.c dai.c irisha.c lviv.c mikro80.c msm8251.c msx.c msx_slot.c mz700.c mz80.c partner.c pc.c pmd85.c pp01.c radio86.c special.c svi318.c ut88.c vector06.c
[src/mess/video]dai.c mz80.c pc8801.c

src/mess/audio/dai.c
r5230r5231
1010
1111#include "driver.h"
1212#include "machine/pit8253.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "includes/dai.h"
1515#include "streams.h"
1616
src/mess/video/dai.c
r5230r5231
1313***************************************************************************/
1414
1515#include "driver.h"
16#include "machine/8255ppi.h"
16#include "machine/i8255a.h"
1717#include "includes/dai.h"
1818
1919#define DEBUG_DAI_VIDEO   0
src/mess/video/pc8801.c
r5230r5231
88   but the pen colours may be wrong. This needs to be tested. */
99
1010#include "driver.h"
11#include "machine/8255ppi.h"
11#include "machine/i8255a.h"
1212#include "includes/pc8801.h"
1313
1414/* NPW 23-Oct-2001 - Adding this so that it compiles */
src/mess/video/mz80.c
r5230r5231
77****************************************************************************/
88
99#include "driver.h"
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111#include "machine/pit8253.h"
1212#include "includes/mz80.h"
1313
src/mess/includes/compis.h
r5230r5231
1818
1919/*----------- defined in machine/compis.c -----------*/
2020
21extern const ppi8255_interface compis_ppi_interface;
21extern const i8255a_interface compis_ppi_interface;
2222extern const struct pit8253_config compis_pit8253_config;
2323extern const struct pit8253_config compis_pit8254_config;
2424extern const struct pic8259_interface compis_pic8259_master_config;
src/mess/includes/dai.h
r5230r5231
77#ifndef DAI_H_
88#define DAI_H_
99
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111#include "machine/tms5501.h"
1212
1313#define DAI_DEBUG   1
r5230r5231
1616/*----------- defined in machine/dai.c -----------*/
1717
1818extern const struct pit8253_config dai_pit8253_intf;
19extern const ppi8255_interface dai_ppi82555_intf;
19extern const i8255a_interface dai_ppi82555_intf;
2020extern const tms5501_interface dai_tms5501_interface;
2121
2222MACHINE_START( dai );
src/mess/includes/msx.h
r5230r5231
4646/*----------- defined in machine/msx.c -----------*/
4747
4848extern MSX msx1;
49extern const ppi8255_interface msx_ppi8255_interface;
49extern const i8255a_interface msx_ppi8255_interface;
5050extern const wd17xx_interface msx_wd17xx_interface;
5151/* start/stop functions */
5252extern DRIVER_INIT( msx );
src/mess/includes/radio86.h
r5230r5231
77#ifndef radio86_H_
88#define radio86_H_
99
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111#include "machine/8257dma.h"
1212#include "video/i8275.h"
1313
r5230r5231
2828extern READ8_HANDLER (radio_io_r );
2929extern WRITE8_HANDLER(radio_io_w );
3030
31extern const ppi8255_interface radio86_ppi8255_interface_1;
32extern const ppi8255_interface radio86_ppi8255_interface_2;
33extern const ppi8255_interface rk7007_ppi8255_interface;
31extern const i8255a_interface radio86_ppi8255_interface_1;
32extern const i8255a_interface radio86_ppi8255_interface_2;
33extern const i8255a_interface rk7007_ppi8255_interface;
3434
35extern const ppi8255_interface mikrosha_ppi8255_interface_1;
36extern const ppi8255_interface mikrosha_ppi8255_interface_2;
35extern const i8255a_interface mikrosha_ppi8255_interface_1;
36extern const i8255a_interface mikrosha_ppi8255_interface_2;
3737
3838extern const i8275_interface radio86_i8275_interface;
3939extern const i8275_interface partner_i8275_interface;
src/mess/includes/mz700.h
r5230r5231
1212#ifndef MZ700_H_
1313#define MZ700_H_
1414
15#include "machine/8255ppi.h"
15#include "machine/i8255a.h"
1616#include "machine/pit8253.h"
1717#include "machine/z80pio.h"
1818
r5230r5231
4949
5050extern const struct pit8253_config mz700_pit8253_config;
5151extern const struct pit8253_config mz800_pit8253_config;
52extern const ppi8255_interface mz700_ppi8255_interface;
52extern const i8255a_interface mz700_ppi8255_interface;
5353extern const z80pio_interface mz800_z80pio_config;
5454
5555DRIVER_INIT( mz700 );
src/mess/includes/b2m.h
r5230r5231
77#ifndef b2m_H_
88#define b2m_H_
99
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111#include "machine/pit8253.h"
1212#include "machine/pic8259.h"
1313
r5230r5231
2020
2121extern const struct pic8259_interface b2m_pic8259_config;
2222
23extern const ppi8255_interface b2m_ppi8255_interface_1;
24extern const ppi8255_interface b2m_ppi8255_interface_2;
25extern const ppi8255_interface b2m_ppi8255_interface_3;
23extern const i8255a_interface b2m_ppi8255_interface_1;
24extern const i8255a_interface b2m_ppi8255_interface_2;
25extern const i8255a_interface b2m_ppi8255_interface_3;
2626
2727extern DRIVER_INIT( b2m );
2828extern MACHINE_START( b2m );
src/mess/includes/pmd85.h
r5230r5231
77#ifndef PMD85_H_
88#define PMD85_H_
99
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111
1212/*----------- defined in machine/pmd85.c -----------*/
1313
1414extern const struct pit8253_config pmd85_pit8253_interface;
15extern const ppi8255_interface pmd85_ppi8255_interface[4];
16extern const ppi8255_interface alfa_ppi8255_interface[3];
17extern const ppi8255_interface mato_ppi8255_interface;
15extern const i8255a_interface pmd85_ppi8255_interface[4];
16extern const i8255a_interface alfa_ppi8255_interface[3];
17extern const i8255a_interface mato_ppi8255_interface;
1818
1919 READ8_HANDLER ( pmd85_io_r );
2020WRITE8_HANDLER ( pmd85_io_w );
src/mess/includes/lviv.h
r5230r5231
88#define LVIV_H_
99
1010#include "devices/snapquik.h"
11#include "machine/8255ppi.h"
11#include "machine/i8255a.h"
1212
1313/*----------- defined in machine/lviv.c -----------*/
1414
15extern const ppi8255_interface lviv_ppi8255_interface_0;
16extern const ppi8255_interface lviv_ppi8255_interface_1;
15extern const i8255a_interface lviv_ppi8255_interface_0;
16extern const i8255a_interface lviv_ppi8255_interface_1;
1717
1818extern unsigned char * lviv_video_ram;
1919 READ8_HANDLER ( lviv_io_r );
src/mess/includes/atom.h
r5230r5231
99
1010#include "devices/snapquik.h"
1111#include "machine/6522via.h"
12#include "machine/8255ppi.h"
12#include "machine/i8255a.h"
1313#include "machine/i8271.h"
1414
1515/* Motherboard crystals
r5230r5231
2626extern UINT8 atom_8255_porta;
2727extern UINT8 atom_8255_portc;
2828
29extern const ppi8255_interface atom_8255_int;
29extern const i8255a_interface atom_8255_int;
3030extern const via6522_interface atom_6522_interface;
3131extern const i8271_interface atom_8271_interface;
3232
src/mess/includes/vector06.h
r5230r5231
77#ifndef VECTOR06_H_
88#define VECTOR06_H_
99
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111
1212/*----------- defined in machine/vector06.c -----------*/
1313
14extern const ppi8255_interface vector06_ppi8255_interface;
15extern const ppi8255_interface vector06_ppi8255_2_interface;
14extern const i8255a_interface vector06_ppi8255_interface;
15extern const i8255a_interface vector06_ppi8255_2_interface;
1616
1717extern DRIVER_INIT( vector06 );
1818extern MACHINE_START( vector06 );
src/mess/includes/partner.h
r5230r5231
77#ifndef partner_H_
88#define partner_H_
99
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111#include "machine/8257dma.h"
1212#include "machine/wd17xx.h"
1313
src/mess/includes/irisha.h
r5230r5231
77#ifndef IRISHA_H_
88#define IRISHA_H_
99
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111
1212/*----------- defined in machine/irisha.c -----------*/
1313
1414extern DRIVER_INIT( irisha );
1515extern MACHINE_RESET( irisha );
16extern const ppi8255_interface irisha_ppi8255_interface;
16extern const i8255a_interface irisha_ppi8255_interface;
1717extern const struct pit8253_config irisha_pit8253_intf;
1818extern const struct pic8259_interface irisha_pic8259_config;
1919
src/mess/includes/special.h
r5230r5231
77#ifndef SPECIAL_H_
88#define SPECIAL_H_
99
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111#include "machine/pit8253.h"
1212
1313/*----------- defined in machine/special.c -----------*/
1414
1515extern UINT8 *specimx_colorram;
1616extern const struct pit8253_config specimx_pit8253_intf;
17extern const ppi8255_interface specialist_ppi8255_interface;
17extern const i8255a_interface specialist_ppi8255_interface;
1818
1919extern DRIVER_INIT( special );
2020extern MACHINE_RESET( special );
src/mess/includes/mikro80.h
r5230r5231
77#ifndef MIKRO80_H_
88#define MIKRO80_H_
99
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111
1212/*----------- defined in machine/mikro80.c -----------*/
1313
14extern const ppi8255_interface mikro80_ppi8255_interface;
14extern const i8255a_interface mikro80_ppi8255_interface;
1515
1616extern DRIVER_INIT( mikro80 );
1717extern DRIVER_INIT( radio99 );
src/mess/includes/mz80.h
r5230r5231
1414extern READ8_HANDLER( mz80k_strobe_r );
1515extern WRITE8_HANDLER( mz80k_strobe_w );
1616
17extern const ppi8255_interface mz80k_8255_int;   
17extern const i8255a_interface mz80k_8255_int;   
1818extern const struct pit8253_config mz80k_pit8253_config;
1919
2020extern UINT8 mz80k_vertical;
src/mess/includes/ut88.h
r5230r5231
77#ifndef UT88_H_
88#define UT88_H_
99
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111
1212/*----------- defined in machine/ut88.c -----------*/
1313
14extern const ppi8255_interface ut88_ppi8255_interface;
14extern const i8255a_interface ut88_ppi8255_interface;
1515
1616extern DRIVER_INIT( ut88 );
1717extern MACHINE_RESET( ut88 );
src/mess/includes/pp01.h
r5230r5231
88#define PP01_H_
99
1010#include "machine/pit8253.h"
11#include "machine/8255ppi.h"
11#include "machine/i8255a.h"
1212
1313/*----------- defined in machine/pp01.c -----------*/
1414extern const struct pit8253_config pp01_pit8253_intf;
15extern const ppi8255_interface pp01_ppi8255_interface;
15extern const i8255a_interface pp01_ppi8255_interface;
1616extern UINT8 pp01_video_scroll;
1717extern DRIVER_INIT( pp01 );
1818extern MACHINE_START( pp01 );
src/mess/includes/svi318.h
r5230r5231
99#ifndef SVI318_H_
1010#define SVI318_H_
1111
12#include "machine/8255ppi.h"
12#include "machine/i8255a.h"
1313#include "machine/ins8250.h"
1414#include "machine/wd17xx.h"
1515
1616/*----------- defined in machine/svi318.c -----------*/
1717
18extern const ppi8255_interface svi318_ppi8255_interface;
18extern const i8255a_interface svi318_ppi8255_interface;
1919extern const ins8250_interface svi318_ins8250_interface[2];
2020extern const wd17xx_interface svi_wd17xx_interface;
2121
src/mess/includes/pc.h
r5230r5231
88#define PC_H_
99
1010#include "machine/ins8250.h"
11#include "machine/8255ppi.h"
11#include "machine/i8255a.h"
1212
1313/*----------- defined in machine/pc.c -----------*/
1414
r5230r5231
1919extern const struct pic8259_interface ibm5150_pic8259_slave_config;
2020extern const struct pic8259_interface pcjr_pic8259_master_config;
2121extern const ins8250_interface ibm5150_com_interface[4];
22extern const ppi8255_interface ibm5150_ppi8255_interface;
23extern const ppi8255_interface ibm5160_ppi8255_interface;
24extern const ppi8255_interface pc_ppi8255_interface;
25extern const ppi8255_interface pcjr_ppi8255_interface;
22extern const i8255a_interface ibm5150_ppi8255_interface;
23extern const i8255a_interface ibm5160_ppi8255_interface;
24extern const i8255a_interface pc_ppi8255_interface;
25extern const i8255a_interface pcjr_ppi8255_interface;
2626
2727UINT8 pc_speaker_get_spk(void);
2828void pc_speaker_set_spkrdata(running_machine *machine, UINT8 data);
src/mess/machine/dai.c
r5230r5231
1313#include "driver.h"
1414#include "devices/cassette.h"
1515#include "cpu/i8085/i8085.h"
16#include "machine/8255ppi.h"
16#include "machine/i8255a.h"
1717#include "includes/dai.h"
1818#include "machine/pit8253.h"
1919#include "machine/tms5501.h"
r5230r5231
8787   2000000.
8888};
8989
90const ppi8255_interface dai_ppi82555_intf =
90I8255A_INTERFACE( dai_ppi82555_intf )
9191{
9292   DEVCB_NULL,   /* Port A read */
9393   DEVCB_NULL,   /* Port B read */
src/mess/machine/msx_slot.c
r5230r5231
1818 */
1919
2020#include "driver.h"
21#include "machine/8255ppi.h"
21#include "machine/i8255a.h"
2222#include "includes/msx_slot.h"
2323#include "includes/msx.h"
2424#include "machine/wd17xx.h"
src/mess/machine/radio86.c
r5230r5231
1010#include "driver.h"
1111#include "cpu/i8085/i8085.h"
1212#include "devices/cassette.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "machine/8257dma.h"
1515#include "video/i8275.h"
1616#include "includes/radio86.h"
r5230r5231
7878}
7979
8080
81const ppi8255_interface radio86_ppi8255_interface_1 =
81I8255A_INTERFACE( radio86_ppi8255_interface_1 )
8282{
8383   DEVCB_NULL,
8484   DEVCB_HANDLER(radio86_8255_portb_r2),
r5230r5231
8888   DEVCB_HANDLER(radio86_8255_portc_w2),
8989};
9090
91const ppi8255_interface mikrosha_ppi8255_interface_1 =
91I8255A_INTERFACE( mikrosha_ppi8255_interface_1 )
9292{
9393   DEVCB_HANDLER(radio86_8255_portb_r2),
9494   DEVCB_NULL,
r5230r5231
119119   return key;   
120120}
121121
122const ppi8255_interface rk7007_ppi8255_interface =
122I8255A_INTERFACE( rk7007_ppi8255_interface )
123123{
124124   DEVCB_NULL,
125125   DEVCB_HANDLER(radio86_8255_portb_r2),
r5230r5231
219219   romdisk_msb = data;   
220220}
221221
222const ppi8255_interface radio86_ppi8255_interface_2 =
222I8255A_INTERFACE( radio86_ppi8255_interface_2 )
223223{
224224   DEVCB_HANDLER(radio86_romdisk_porta_r),
225225   DEVCB_NULL,
r5230r5231
234234   mikrosha_font_page = (data  > 7) & 1;
235235}
236236
237const ppi8255_interface mikrosha_ppi8255_interface_2 =
237I8255A_INTERFACE( mikrosha_ppi8255_interface_2 )
238238{
239239   DEVCB_NULL,
240240   DEVCB_NULL,
src/mess/machine/b2m.c
r5230r5231
1111#include "cpu/i8085/i8085.h"
1212#include "devices/cassette.h"
1313#include "devices/basicdsk.h"
14#include "machine/8255ppi.h"
14#include "machine/i8255a.h"
1515#include "machine/pit8253.h"
1616#include "machine/wd17xx.h"
1717#include "machine/pic8259.h"
r5230r5231
217217   return b2m_video_scroll;
218218}
219219
220const ppi8255_interface b2m_ppi8255_interface_1 =
220I8255A_INTERFACE( b2m_ppi8255_interface_1 )
221221{
222222   DEVCB_NULL,
223223   DEVCB_HANDLER(b2m_8255_portb_r),
r5230r5231
245245   }
246246}
247247
248const ppi8255_interface b2m_ppi8255_interface_2 =
248I8255A_INTERFACE( b2m_ppi8255_interface_2 )
249249{
250250   DEVCB_NULL,
251251   DEVCB_NULL,
r5230r5231
271271   b2m_romdisk_msb = data & 0x7f;   
272272}
273273
274const ppi8255_interface b2m_ppi8255_interface_3 =
274I8255A_INTERFACE( b2m_ppi8255_interface_3 )
275275{
276276   DEVCB_HANDLER(b2m_romdisk_porta_r),
277277   DEVCB_NULL,
src/mess/machine/pmd85.c
r5230r5231
1212#include "driver.h"
1313#include "devices/cassette.h"
1414#include "cpu/i8085/i8085.h"
15#include "machine/8255ppi.h"
15#include "machine/i8255a.h"
1616#include "includes/pmd85.h"
1717#include "machine/msm8251.h"
1818#include "machine/pit8253.h"
r5230r5231
504504            switch (offset & 0x80)
505505            {
506506               case 0x80:   /* Motherboard 8255 */
507                     return ppi8255_r(devtag_get_device(space->machine, "ppi8255_0"), offset & 0x03);
507                     return i8255a_r(devtag_get_device(space->machine, "ppi8255_0"), offset & 0x03);
508508            }
509509            break;
510510      case 0x08:   /* ROM module connector */
r5230r5231
520520                     switch (offset & 0x80)
521521                     {
522522                        case 0x80:   /* ROM module 8255 */
523                              return ppi8255_r(devtag_get_device(space->machine, "ppi8255_3"), offset & 0x03);
523                              return i8255a_r(devtag_get_device(space->machine, "ppi8255_3"), offset & 0x03);
524524                     }
525525                  }
526526                  break;
r5230r5231
540540                              }
541541                              break;
542542                        case 0x40:      /* 8255 (GPIO/0, GPIO/1) */
543                              return ppi8255_r(devtag_get_device(space->machine, "ppi8255_1"), offset & 0x03);
543                              return i8255a_r(devtag_get_device(space->machine, "ppi8255_1"), offset & 0x03);
544544                        case 0x50:   /* 8253 */
545545                              return pit8253_r( devtag_get_device(space->machine, "pit8253"), offset & 0x03);
546546                        case 0x70:   /* 8255 (IMS-2) */
547                              return ppi8255_r(devtag_get_device(space->machine, "ppi8255_2"), offset & 0x03);
547                              return i8255a_r(devtag_get_device(space->machine, "ppi8255_2"), offset & 0x03);
548548                     }
549549                     break;
550550               case 0x80:   /* external interfaces */
r5230r5231
571571            switch (offset & 0x80)
572572            {
573573               case 0x80:   /* Motherboard 8255 */
574                     ppi8255_w(devtag_get_device(space-> machine, "ppi8255_0"), offset & 0x03, data);
574                     i8255a_w(devtag_get_device(space-> machine, "ppi8255_0"), offset & 0x03, data);
575575                     /* PMD-85.3 memory banking */
576576                     if ((offset & 0x03) == 0x03)
577577                     {
r5230r5231
594594                     switch (offset & 0x80)
595595                     {
596596                        case 0x80:   /* ROM module 8255 */
597                              ppi8255_w(devtag_get_device(space->machine, "ppi8255_3"), offset & 0x03, data);
597                              i8255a_w(devtag_get_device(space->machine, "ppi8255_3"), offset & 0x03, data);
598598                              break;
599599                     }
600600                  }
r5230r5231
615615                              }
616616                              break;
617617                        case 0x40:      /* 8255 (GPIO/0, GPIO/0) */
618                              ppi8255_w(devtag_get_device(space->machine, "ppi8255_1"), offset & 0x03, data);
618                              i8255a_w(devtag_get_device(space->machine, "ppi8255_1"), offset & 0x03, data);
619619                              break;
620620                        case 0x50:   /* 8253 */
621621                              pit8253_w(devtag_get_device(space->machine, "pit8253"), offset & 0x03, data);
622622                              logerror ("8253 writing. Address: %02x, Data: %02x\n", offset, data);
623623                              break;
624624                        case 0x70:   /* 8255 (IMS-2) */
625                              ppi8255_w(devtag_get_device(space->machine, "ppi8255_2"), offset & 0x03, data);
625                              i8255a_w(devtag_get_device(space->machine, "ppi8255_2"), offset & 0x03, data);
626626                              break;
627627                     }
628628                     break;
r5230r5231
656656            switch (offset & 0x80)
657657            {
658658               case 0x80:   /* Motherboard 8255 */
659                     return ppi8255_r(devtag_get_device(space->machine, "ppi8255_0"), offset & 0x03);
659                     return i8255a_r(devtag_get_device(space->machine, "ppi8255_0"), offset & 0x03);
660660            }
661661            break;
662662   }
r5230r5231
679679            switch (offset & 0x80)
680680            {
681681               case 0x80:   /* Motherboard 8255 */
682                     ppi8255_w(devtag_get_device(space->machine, "ppi8255_0"), offset & 0x03, data);
682                     i8255a_w(devtag_get_device(space->machine, "ppi8255_0"), offset & 0x03, data);
683683                     break;
684684            }
685685            break;
686686   }
687687}
688688
689const ppi8255_interface pmd85_ppi8255_interface[4] =
689const i8255a_interface pmd85_ppi8255_interface[4] =
690690{
691691   {
692692      DEVCB_HANDLER(pmd85_ppi_0_porta_r),
r5230r5231
722722   }
723723};
724724
725const ppi8255_interface alfa_ppi8255_interface[3] =
725const i8255a_interface alfa_ppi8255_interface[3] =
726726{
727727   {
728728      DEVCB_HANDLER(pmd85_ppi_0_porta_r),
r5230r5231
750750   }
751751};
752752
753const ppi8255_interface mato_ppi8255_interface =
753I8255A_INTERFACE( mato_ppi8255_interface )
754754{
755755   DEVCB_HANDLER(pmd85_ppi_0_porta_r),
756756   DEVCB_HANDLER(mato_ppi_0_portb_r),
src/mess/machine/vector06.c
r5230r5231
99
1010#include "driver.h"
1111#include "cpu/i8085/i8085.h"
12#include "machine/8255ppi.h"
12#include "machine/i8255a.h"
1313#include "machine/wd17xx.h"
1414#include "devices/cassette.h"
1515#include "devices/basicdsk.h"
r5230r5231
102102   romdisk_msb = data;   
103103}
104104
105const ppi8255_interface vector06_ppi8255_2_interface =
105I8255A_INTERFACE( vector06_ppi8255_2_interface )
106106{
107107   DEVCB_NULL,
108108   DEVCB_HANDLER(vector06_romdisk_portb_r),
r5230r5231
113113};
114114
115115
116const ppi8255_interface vector06_ppi8255_interface =
116I8255A_INTERFACE( vector06_ppi8255_interface )
117117{
118118   DEVCB_NULL,
119119   DEVCB_HANDLER(vector06_8255_portb_r),
r5230r5231
124124};
125125
126126READ8_HANDLER(vector_8255_1_r) {
127   return ppi8255_r(devtag_get_device(space->machine, "ppi8255"), (offset ^ 0x03));
127   return i8255a_r(devtag_get_device(space->machine, "ppi8255"), (offset ^ 0x03));
128128}
129129
130130WRITE8_HANDLER(vector_8255_1_w) {
131   ppi8255_w(devtag_get_device(space->machine, "ppi8255"), (offset ^0x03) , data );
131   i8255a_w(devtag_get_device(space->machine, "ppi8255"), (offset ^0x03) , data );
132132
133133}
134134
135135READ8_HANDLER(vector_8255_2_r) {
136   return ppi8255_r(devtag_get_device(space->machine, "ppi8255_2"), (offset ^ 0x03));
136   return i8255a_r(devtag_get_device(space->machine, "ppi8255_2"), (offset ^ 0x03));
137137}
138138
139139WRITE8_HANDLER(vector_8255_2_w) {
140   ppi8255_w(devtag_get_device(space->machine, "ppi8255_2"), (offset ^0x03) , data );
140   i8255a_w(devtag_get_device(space->machine, "ppi8255_2"), (offset ^0x03) , data );
141141
142142}
143143
src/mess/machine/irisha.c
r5230r5231
99
1010#include "driver.h"
1111#include "cpu/i8085/i8085.h"
12#include "machine/8255ppi.h"
12#include "machine/i8255a.h"
1313#include "machine/pit8253.h"
1414#include "machine/pic8259.h"
1515#include "machine/msm8251.h"
r5230r5231
8888   //logerror("irisha_8255_portc_w %02x\n",data);
8989}
9090
91const ppi8255_interface irisha_ppi8255_interface =
91I8255A_INTERFACE( irisha_ppi8255_interface )
9292{
9393   DEVCB_NULL,
9494   DEVCB_HANDLER(irisha_8255_portb_r),
src/mess/machine/bk.c
r5230r5231
99
1010#include "driver.h"
1111#include "devices/cassette.h"
12#include "machine/8255ppi.h"
12#include "machine/i8255a.h"
1313#include "includes/bk.h"
1414
1515static UINT16 kbd_state;
src/mess/machine/amstrad.c
r5230r5231
3737
3838#include "driver.h"
3939#include "cpu/z80/z80.h"
40#include "machine/8255ppi.h"
40#include "machine/i8255a.h"
4141#include "machine/mc146818.h"
4242#include "machine/nec765.h"
4343#include "machine/ctronics.h"
r5230r5231
23542354   if ((offset & (1<<11)) == 0)
23552355   {
23562356      if (r1r0 < 0x03 )
2357         data = ppi8255_r(devtag_get_device(space->machine, "ppi8255" ), r1r0);
2357         data = i8255a_r(devtag_get_device(space->machine, "ppi8255" ), r1r0);
23582358   }
23592359
23602360/* if b10 = 0 : Expansion Peripherals Read selected
r5230r5231
25192519   {
25202520      unsigned int Index = ((offset & 0x0300) >> 8);
25212521
2522      ppi8255_w(devtag_get_device(space->machine, "ppi8255" ), Index, data);
2522      i8255a_w(devtag_get_device(space->machine, "ppi8255" ), Index, data);
25232523   }
25242524
25252525   /* if b10 = 0 : Expansion Peripherals Write selected */
r5230r5231
26922692   gate_array.upper_bank = pSnapshot[0x055];
26932693
26942694   /* PPI */
2695   ppi8255_w(devtag_get_device(machine, "ppi8255"),3,pSnapshot[0x059] & 0x0ff);
2695   i8255a_w(devtag_get_device(machine, "ppi8255"),3,pSnapshot[0x059] & 0x0ff);
26962696
2697   ppi8255_w(devtag_get_device(machine, "ppi8255"),0,pSnapshot[0x056] & 0x0ff);
2698   ppi8255_w(devtag_get_device(machine, "ppi8255"),1,pSnapshot[0x057] & 0x0ff);
2699   ppi8255_w(devtag_get_device(machine, "ppi8255"),2,pSnapshot[0x058] & 0x0ff);
2697   i8255a_w(devtag_get_device(machine, "ppi8255"),0,pSnapshot[0x056] & 0x0ff);
2698   i8255a_w(devtag_get_device(machine, "ppi8255"),1,pSnapshot[0x057] & 0x0ff);
2699   i8255a_w(devtag_get_device(machine, "ppi8255"),2,pSnapshot[0x058] & 0x0ff);
27002700
27012701   /* PSG */
27022702   for (i=0; i<16; i++)
src/mess/machine/svi318.c
r5230r5231
1010#include "includes/svi318.h"
1111#include "cpu/z80/z80.h"
1212#include "video/tms9928a.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "machine/ins8250.h"
1515#include "machine/wd17xx.h"
1616#include "machine/ctronics.h"
r5230r5231
234234   svi.keyboard_row = data & 0x0F;
235235}
236236
237const ppi8255_interface svi318_ppi8255_interface =
237I8255A_INTERFACE( svi318_ppi8255_interface )
238238{
239239   DEVCB_HANDLER(svi318_ppi_port_a_r),
240240   DEVCB_HANDLER(svi318_ppi_port_b_r),
r5230r5231
246246
247247READ8_DEVICE_HANDLER( svi318_ppi_r )
248248{
249   return ppi8255_r(device, offset);
249   return i8255a_r(device, offset);
250250}
251251
252252WRITE8_DEVICE_HANDLER( svi318_ppi_w )
253253{
254   ppi8255_w(device, offset + 2, data);
254   i8255a_w(device, offset + 2, data);
255255}
256256
257257
src/mess/machine/compis.c
r5230r5231
1414
1515#include "driver.h"
1616#include "video/i82720.h"
17#include "machine/8255ppi.h"
17#include "machine/i8255a.h"
1818#include "machine/mm58274c.h"
1919#include "machine/pic8259.h"
2020#include "includes/compis.h"
r5230r5231
420420   compis_fdc_tc(device->machine, BIT(data, 7));
421421}
422422
423const ppi8255_interface compis_ppi_interface =
423I8255A_INTERFACE( compis_ppi_interface )
424424{
425425   DEVCB_NULL,
426426   DEVCB_DEVICE_HANDLER("centronics", compis_ppi_port_b_r),
src/mess/machine/msx.c
r5230r5231
1212 */
1313
1414#include "driver.h"
15#include "machine/8255ppi.h"
15#include "machine/i8255a.h"
1616#include "includes/msx_slot.h"
1717#include "includes/msx.h"
1818#include "machine/tc8521.h"
r5230r5231
346346static WRITE8_DEVICE_HANDLER ( msx_ppi_port_c_w );
347347static READ8_DEVICE_HANDLER (msx_ppi_port_b_r );
348348
349const ppi8255_interface msx_ppi8255_interface =
349I8255A_INTERFACE( msx_ppi8255_interface )
350350{
351351   DEVCB_NULL,
352352   DEVCB_HANDLER(msx_ppi_port_b_r),
r5230r5231
796796   int row, data;
797797   static const char *const keynames[] = { "KEY0", "KEY1", "KEY2", "KEY3", "KEY4", "KEY5" };
798798
799   row = ppi8255_r(device, 2) & 0x0f;
799   row = i8255a_r(device, 2) & 0x0f;
800800   if (row <= 10)
801801   {
802802      data = input_port_read(device->machine, keynames[row / 2]);
src/mess/machine/mz700.c
r5230r5231
1313#include "includes/mz700.h"
1414#include "cpu/z80/z80.h"
1515#include "machine/pit8253.h"
16#include "machine/8255ppi.h"
16#include "machine/i8255a.h"
1717#include "machine/z80pio.h"
1818#include "machine/74145.h"
1919#include "machine/ctronics.h"
r5230r5231
4141static WRITE8_DEVICE_HANDLER ( pio_port_a_w );
4242static WRITE8_DEVICE_HANDLER ( pio_port_c_w );
4343
44const ppi8255_interface mz700_ppi8255_interface =
44I8255A_INTERFACE( mz700_ppi8255_interface )
4545{
4646   DEVCB_NULL,
4747   DEVCB_DEVICE_HANDLER("ls145", pio_port_b_r),
r5230r5231
278278         /* switch in memory mapped i/o devices */
279279         if (mz->mz700)
280280         {
281            memory_install_readwrite8_device_handler(spc, mz->ppi, 0xe000, 0xfff3, 0, 0x1ff0, ppi8255_r, ppi8255_w);
281            memory_install_readwrite8_device_handler(spc, mz->ppi, 0xe000, 0xfff3, 0, 0x1ff0, i8255a_r, i8255a_w);
282282            memory_install_readwrite8_device_handler(spc, mz->pit, 0xe004, 0xfff7, 0, 0x1ff0, pit8253_r, pit8253_w);
283283            memory_install_read8_handler(spc, 0xe008, 0xfff8, 0, 0x1ff0, mz700_e008_r);
284284            memory_install_write8_device_handler(spc, mz->pit, 0xe008, 0xfff8, 0, 0x1ff0, pit8253_gate_w);
285285         }
286286         else
287287         {
288            memory_install_readwrite8_device_handler(spc, mz->ppi, 0xe000, 0xe003, 0, 0, ppi8255_r, ppi8255_w);
288            memory_install_readwrite8_device_handler(spc, mz->ppi, 0xe000, 0xe003, 0, 0, i8255a_r, i8255a_w);
289289            memory_install_readwrite8_device_handler(spc, mz->pit, 0xe004, 0xe007, 0, 0, pit8253_r, pit8253_w);
290290            memory_install_read8_handler(spc, 0xe008, 0xe008, 0, 0, mz700_e008_r);
291291            memory_install_write8_device_handler(spc, mz->pit, 0xe008, 0xe008, 0, 0, pit8253_gate_w);
src/mess/machine/lviv.c
r5230r5231
1313#include "devices/cassette.h"
1414#include "devices/snapquik.h"
1515#include "cpu/i8085/i8085.h"
16#include "machine/8255ppi.h"
16#include "machine/i8255a.h"
1717#include "includes/lviv.h"
1818#include "sound/speaker.h"
1919
r5230r5231
147147      switch ((offset >> 4) & 0x3)
148148      {
149149      case 0:
150         return ppi8255_r(devtag_get_device(space->machine, "ppi8255_0"), offset & 3);
150         return i8255a_r(devtag_get_device(space->machine, "ppi8255_0"), offset & 3);
151151
152152      case 1:
153         return ppi8255_r(devtag_get_device(space->machine, "ppi8255_1"), offset & 3);
153         return i8255a_r(devtag_get_device(space->machine, "ppi8255_1"), offset & 3);
154154
155155      case 2:
156156      case 3:
r5230r5231
183183      switch ((offset >> 4) & 0x3)
184184      {
185185      case 0:
186         ppi8255_w(devtag_get_device(space->machine, "ppi8255_0"), offset & 3, data);
186         i8255a_w(devtag_get_device(space->machine, "ppi8255_0"), offset & 3, data);
187187         break;
188188
189189      case 1:
190         ppi8255_w(devtag_get_device(space->machine, "ppi8255_1"), offset & 3, data);
190         i8255a_w(devtag_get_device(space->machine, "ppi8255_1"), offset & 3, data);
191191         break;
192192
193193      case 2:
r5230r5231
199199}
200200
201201
202const ppi8255_interface lviv_ppi8255_interface_0 =
202I8255A_INTERFACE( lviv_ppi8255_interface_0 )
203203{
204204   DEVCB_HANDLER(lviv_ppi_0_porta_r),
205205   DEVCB_HANDLER(lviv_ppi_0_portb_r),
r5230r5231
209209   DEVCB_HANDLER(lviv_ppi_0_portc_w)
210210};
211211
212const ppi8255_interface lviv_ppi8255_interface_1 =
212I8255A_INTERFACE( lviv_ppi8255_interface_1 )
213213{
214214   DEVCB_HANDLER(lviv_ppi_1_porta_r),
215215   DEVCB_HANDLER(lviv_ppi_1_portb_r),
src/mess/machine/atom.c
r5230r5231
1616
1717
1818#include "driver.h"
19#include "machine/8255ppi.h"
19#include "machine/i8255a.h"
2020#include "video/m6847.h"
2121#include "machine/ctronics.h"
2222#include "machine/i8271.h"
r5230r5231
8080
8181
8282
83const ppi8255_interface atom_8255_int =
83I8255A_INTERFACE( atom_8255_int )
8484{
8585   DEVCB_HANDLER(atom_8255_porta_r),
8686   DEVCB_HANDLER(atom_8255_portb_r),
src/mess/machine/partner.c
r5230r5231
1111#include "cpu/i8085/i8085.h"
1212#include "devices/cassette.h"
1313#include "devices/basicdsk.h"
14#include "machine/8255ppi.h"
14#include "machine/i8255a.h"
1515#include "machine/8257dma.h"
1616#include "machine/wd17xx.h"
1717#include "video/i8275.h"
src/mess/machine/special.c
r5230r5231
1313#include "sound/dac.h"
1414#include "devices/cassette.h"
1515#include "devices/basicdsk.h"
16#include "machine/8255ppi.h"
16#include "machine/i8255a.h"
1717#include "machine/pit8253.h"
1818#include "machine/wd17xx.h"
1919#include "includes/special.h"
r5230r5231
108108   
109109}
110110
111const ppi8255_interface specialist_ppi8255_interface =
111I8255A_INTERFACE( specialist_ppi8255_interface )
112112{
113113   DEVCB_HANDLER(specialist_8255_porta_r),
114114   DEVCB_HANDLER(specialist_8255_portb_r),
r5230r5231
132132
133133READ8_HANDLER( specialist_keyboard_r )
134134{   
135   return ppi8255_r(devtag_get_device(space->machine, "ppi8255"), (offset & 3));
135   return i8255a_r(devtag_get_device(space->machine, "ppi8255"), (offset & 3));
136136}
137137
138138WRITE8_HANDLER( specialist_keyboard_w )
139139{   
140   ppi8255_w(devtag_get_device(space->machine, "ppi8255"), (offset & 3) , data );
140   i8255a_w(devtag_get_device(space->machine, "ppi8255"), (offset & 3) , data );
141141}
142142
143143
src/mess/machine/mikro80.c
r5230r5231
1010#include "driver.h"
1111#include "cpu/i8085/i8085.h"
1212#include "devices/cassette.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "includes/mikro80.h"
1515
1616static int mikro80_keyboard_mask;
r5230r5231
6464static READ8_DEVICE_HANDLER( mikro80_8255_portc_device_r ) { return mikro80_8255_portc_r(cputag_get_address_space(device->machine, "maincpu", ADDRESS_SPACE_PROGRAM), offset); }
6565static WRITE8_DEVICE_HANDLER( mikro80_8255_porta_device_w ) { mikro80_8255_porta_w(cputag_get_address_space(device->machine, "maincpu", ADDRESS_SPACE_PROGRAM), offset, data); }
6666
67const ppi8255_interface mikro80_ppi8255_interface =
67I8255A_INTERFACE( mikro80_ppi8255_interface )
6868{
6969   DEVCB_NULL,
7070   DEVCB_HANDLER(mikro80_8255_portb_device_r),
r5230r5231
9090
9191READ8_DEVICE_HANDLER( mikro80_keyboard_r )
9292{
93   return ppi8255_r(device, offset^0x03);
93   return i8255a_r(device, offset^0x03);
9494}
9595
9696WRITE8_DEVICE_HANDLER( mikro80_keyboard_w )
9797{
98   ppi8255_w(device, offset^0x03, data);
98   i8255a_w(device, offset^0x03, data);
9999}
100100
101101
src/mess/machine/mz80.c
r5230r5231
77****************************************************************************/
88
99#include "driver.h"
10#include "machine/8255ppi.h"
10#include "machine/i8255a.h"
1111#include "machine/pit8253.h"
1212#include "devices/cassette.h"
1313#include "sound/speaker.h"
r5230r5231
8787   cputag_set_input_line(device->machine, "maincpu", 0, HOLD_LINE);
8888}
8989
90const ppi8255_interface mz80k_8255_int =
90I8255A_INTERFACE( mz80k_8255_int )
9191{
9292   DEVCB_NULL,
9393   DEVCB_HANDLER(mz80k_8255_portb_r),
src/mess/machine/ut88.c
r5230r5231
1111#include "cpu/i8085/i8085.h"
1212#include "sound/dac.h"
1313#include "devices/cassette.h"
14#include "machine/8255ppi.h"
14#include "machine/i8255a.h"
1515#include "includes/ut88.h"
1616
1717static int ut88_keyboard_mask;
r5230r5231
5050   ut88_keyboard_mask = data ^ 0xff;   
5151}
5252
53const ppi8255_interface ut88_ppi8255_interface =
53I8255A_INTERFACE( ut88_ppi8255_interface )
5454{
5555   DEVCB_NULL,
5656   DEVCB_HANDLER(ut88_8255_portb_r),
r5230r5231
7575
7676READ8_DEVICE_HANDLER( ut88_keyboard_r )
7777{
78   return ppi8255_r(device, offset^0x03);   
78   return i8255a_r(device, offset^0x03);   
7979}
8080
8181
8282WRITE8_DEVICE_HANDLER( ut88_keyboard_w )
8383{
84   ppi8255_w(device, offset^0x03, data);
84   i8255a_w(device, offset^0x03, data);
8585}
8686
8787WRITE8_HANDLER( ut88_sound_w )
src/mess/machine/pp01.c
r5230r5231
228228
229229
230230
231const ppi8255_interface pp01_ppi8255_interface =
231I8255A_INTERFACE( pp01_ppi8255_interface )
232232{
233233   DEVCB_HANDLER(pp01_8255_porta_r),
234234   DEVCB_HANDLER(pp01_8255_portb_r),
src/mess/machine/pc.c
r5230r5231
1414#include "driver.h"
1515#include "includes/pc.h"
1616
17#include "machine/8255ppi.h"
17#include "machine/i8255a.h"
1818#include "machine/ins8250.h"
1919#include "machine/mc146818.h"
2020#include "machine/pic8259.h"
r5230r5231
849849
850850/* IBM PC has a 8255 which is connected to keyboard and other
851851status information */
852const ppi8255_interface ibm5150_ppi8255_interface =
852I8255A_INTERFACE( ibm5150_ppi8255_interface )
853853{
854854   DEVCB_HANDLER(ibm5150_ppi_porta_r),
855855   DEVCB_HANDLER(ibm5150_ppi_portb_r),
r5230r5231
944944}
945945
946946
947const ppi8255_interface ibm5160_ppi8255_interface =
947I8255A_INTERFACE( ibm5160_ppi8255_interface )
948948{
949949   DEVCB_HANDLER(ibm5160_ppi_porta_r),
950950   DEVCB_HANDLER(ibm5150_ppi_portb_r),
r5230r5231
999999}
10001000
10011001
1002const ppi8255_interface pc_ppi8255_interface =
1002I8255A_INTERFACE( pc_ppi8255_interface )
10031003{
10041004   DEVCB_HANDLER(pc_ppi_porta_r),
10051005   DEVCB_HANDLER(ibm5150_ppi_portb_r),
r5230r5231
10821082}
10831083
10841084
1085const ppi8255_interface pcjr_ppi8255_interface =
1085I8255A_INTERFACE( pcjr_ppi8255_interface )
10861086{
10871087   DEVCB_HANDLER(pcjr_ppi_porta_r),
10881088   DEVCB_HANDLER(ibm5150_ppi_portb_r),
src/mess/machine/msm8251.c
r5230r5231
1515    MACROS
1616***************************************************************************/
1717
18#define VERBOSE 1
18#define VERBOSE
1919
2020#define LOG(x)   do { if (VERBOSE) logerror x; } while (0)
2121
src/mess/drivers/dai.c
r5230r5231
6161#include "driver.h"
6262#include "cpu/i8085/i8085.h"
6363#include "sound/wave.h"
64#include "machine/8255ppi.h"
64#include "machine/i8255a.h"
6565#include "includes/dai.h"
6666#include "machine/pit8253.h"
6767#include "machine/tms5501.h"
r5230r5231
8282   AM_RANGE( 0xfb00, 0xfbff) AM_READWRITE( amd9511_r, amd9511_w )
8383   AM_RANGE( 0xfc00, 0xfcff) AM_DEVREADWRITE("pit8253", pit8253_r, pit8253_w )
8484   AM_RANGE( 0xfd00, 0xfdff) AM_READWRITE( dai_io_discrete_devices_r, dai_io_discrete_devices_w )
85   AM_RANGE( 0xfe00, 0xfeff) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w )
85   AM_RANGE( 0xfe00, 0xfeff) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w )
8686   AM_RANGE( 0xff00, 0xffff) AM_DEVREADWRITE("tms5501", tms5501_r, tms5501_w )
8787ADDRESS_MAP_END
8888
r5230r5231
194194
195195   MDRV_PIT8253_ADD( "pit8253", dai_pit8253_intf )
196196
197   MDRV_PPI8255_ADD( "ppi8255", dai_ppi82555_intf )
197   MDRV_I8255A_ADD( "ppi8255", dai_ppi82555_intf )
198198
199199   /* video hardware */
200200   MDRV_SCREEN_ADD("screen", RASTER)
src/mess/drivers/pc6001.c
r5230r5231
6060
6161#include "driver.h"
6262#include "cpu/z80/z80.h"
63#include "machine/8255ppi.h"
63#include "machine/i8255a.h"
6464#include "machine/msm8251.h"
6565#include "video/m6847.h"
6666#include "sound/ay8910.h"
r5230r5231
104104   if (offset==2) {
105105      return port_c_8255;
106106   } else {
107      return ppi8255_r(device,offset);
107      return i8255a_r(device,offset);
108108   }
109109}
110110
r5230r5231
124124      }
125125      port_c_8255 |= 0xa8;
126126   }
127   ppi8255_w(device,offset,data);
127   i8255a_w(device,offset,data);
128128}
129129
130130static WRITE8_DEVICE_HANDLER(pc6100_ay8910_address_w) {
r5230r5231
225225
226226
227227
228static const ppi8255_interface pc6001_ppi8255_interface =
228static I8255A_INTERFACE( pc6001_ppi8255_interface )
229229{
230230   DEVCB_HANDLER(pc6001_8255_porta_r),
231231   DEVCB_HANDLER(pc6001_8255_portb_r),
r5230r5231
275275   MDRV_SOUND_CONFIG(pc6001_ay_interface)
276276   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
277277   
278   MDRV_PPI8255_ADD( "ppi8255", pc6001_ppi8255_interface )
278   MDRV_I8255A_ADD( "ppi8255", pc6001_ppi8255_interface )
279279   /* uart */
280280   MDRV_MSM8251_ADD("uart", pc6001_usart_interface)
281281   
src/mess/drivers/radio86.c
r5230r5231
1010#include "driver.h"
1111#include "cpu/i8085/i8085.h"
1212#include "sound/wave.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "machine/8257dma.h"
1515#include "video/i8275.h"
1616#include "devices/cassette.h"
r5230r5231
2121static ADDRESS_MAP_START(radio86_mem, ADDRESS_SPACE_PROGRAM, 8)
2222    AM_RANGE( 0x0000, 0x0fff ) AM_RAMBANK(1) // First bank
2323    AM_RANGE( 0x1000, 0x7fff ) AM_RAM  // RAM
24    AM_RANGE( 0x8000, 0x8003 ) AM_DEVREADWRITE("ppi8255_1", ppi8255_r, ppi8255_w) AM_MIRROR(0x1ffc)
25    //AM_RANGE( 0xa000, 0xa003 ) AM_DEVREADWRITE("ppi8255_2", ppi8255_r, ppi8255_w) AM_MIRROR(0x1ffc)
24    AM_RANGE( 0x8000, 0x8003 ) AM_DEVREADWRITE("ppi8255_1", i8255a_r, i8255a_w) AM_MIRROR(0x1ffc)
25    //AM_RANGE( 0xa000, 0xa003 ) AM_DEVREADWRITE("ppi8255_2", i8255a_r, i8255a_w) AM_MIRROR(0x1ffc)
2626    AM_RANGE( 0xc000, 0xc001 ) AM_DEVREADWRITE("i8275", i8275_r, i8275_w) AM_MIRROR(0x1ffe) // video
2727    AM_RANGE( 0xe000, 0xffff ) AM_DEVWRITE("dma8257", dma8257_w)    // DMA
2828    AM_RANGE( 0xf000, 0xffff ) AM_ROM  // System ROM
r5230r5231
3535
3636static ADDRESS_MAP_START( rk7007_io , ADDRESS_SPACE_IO, 8)
3737   ADDRESS_MAP_UNMAP_HIGH
38   AM_RANGE( 0x80, 0x83 ) AM_DEVREADWRITE("ms7007", ppi8255_r, ppi8255_w)
38   AM_RANGE( 0x80, 0x83 ) AM_DEVREADWRITE("ms7007", i8255a_r, i8255a_w)
3939ADDRESS_MAP_END
4040
4141static ADDRESS_MAP_START(radio86rom_mem, ADDRESS_SPACE_PROGRAM, 8)
4242    AM_RANGE( 0x0000, 0x0fff ) AM_RAMBANK(1) // First bank
4343    AM_RANGE( 0x1000, 0x7fff ) AM_RAM  // RAM
44    AM_RANGE( 0x8000, 0x8003 ) AM_DEVREADWRITE("ppi8255_1", ppi8255_r, ppi8255_w) AM_MIRROR(0x1ffc)
45    AM_RANGE( 0xa000, 0xa003 ) AM_DEVREADWRITE("ppi8255_2", ppi8255_r, ppi8255_w) AM_MIRROR(0x1ffc)
44    AM_RANGE( 0x8000, 0x8003 ) AM_DEVREADWRITE("ppi8255_1", i8255a_r, i8255a_w) AM_MIRROR(0x1ffc)
45    AM_RANGE( 0xa000, 0xa003 ) AM_DEVREADWRITE("ppi8255_2", i8255a_r, i8255a_w) AM_MIRROR(0x1ffc)
4646    AM_RANGE( 0xc000, 0xc001 ) AM_DEVREADWRITE("i8275", i8275_r, i8275_w) AM_MIRROR(0x1ffe) // video
4747    AM_RANGE( 0xe000, 0xffff ) AM_DEVWRITE("dma8257", dma8257_w)    // DMA
4848    AM_RANGE( 0xf000, 0xffff ) AM_ROM  // System ROM
r5230r5231
5353    AM_RANGE( 0x1000, 0xdfff ) AM_RAM  // RAM
5454    AM_RANGE( 0xe000, 0xe7ff ) AM_ROM  // System ROM page 2
5555    AM_RANGE( 0xe800, 0xf5ff ) AM_RAM  // RAM
56    AM_RANGE( 0xf700, 0xf703 ) AM_DEVREADWRITE("ppi8255_1", ppi8255_r, ppi8255_w)
56    AM_RANGE( 0xf700, 0xf703 ) AM_DEVREADWRITE("ppi8255_1", i8255a_r, i8255a_w)
5757    AM_RANGE( 0xf780, 0xf7bf ) AM_DEVREADWRITE("i8275", i8275_r, i8275_w) // video
58    AM_RANGE( 0xf684, 0xf687 ) AM_DEVREADWRITE("ppi8255_2", ppi8255_r, ppi8255_w)
58    AM_RANGE( 0xf684, 0xf687 ) AM_DEVREADWRITE("ppi8255_2", i8255a_r, i8255a_w)
5959   AM_RANGE( 0xf688, 0xf688 ) AM_WRITE( radio86_pagesel )
6060    AM_RANGE( 0xf800, 0xffff ) AM_DEVWRITE("dma8257", dma8257_w)    // DMA
6161    AM_RANGE( 0xf800, 0xffff ) AM_ROM  // System ROM page 1
r5230r5231
6666    AM_RANGE( 0x0000, 0x0fff ) AM_RAMBANK(1) // First bank
6767    AM_RANGE( 0x1000, 0x3fff ) AM_RAM  // RAM
6868    AM_RANGE( 0x4000, 0x7fff ) AM_READ(radio_cpu_state_r)
69    AM_RANGE( 0x8000, 0x8003 ) AM_DEVREADWRITE("ppi8255_1", ppi8255_r, ppi8255_w) AM_MIRROR(0x1ffc)
70    //AM_RANGE( 0xa000, 0xa003 ) AM_DEVREADWRITE("ppi8255_2", ppi8255_r, ppi8255_w) AM_MIRROR(0x1ffc)
69    AM_RANGE( 0x8000, 0x8003 ) AM_DEVREADWRITE("ppi8255_1", i8255a_r, i8255a_w) AM_MIRROR(0x1ffc)
70    //AM_RANGE( 0xa000, 0xa003 ) AM_DEVREADWRITE("ppi8255_2", i8255a_r, i8255a_w) AM_MIRROR(0x1ffc)
7171    AM_RANGE( 0xc000, 0xc001 ) AM_DEVREADWRITE("i8275", i8275_r, i8275_w) AM_MIRROR(0x1ffe) // video
7272    AM_RANGE( 0xe000, 0xffff ) AM_DEVWRITE("dma8257", dma8257_w)    // DMA
7373    AM_RANGE( 0xf000, 0xffff ) AM_ROM  // System ROM
r5230r5231
311311   MDRV_CPU_IO_MAP(radio86_io)
312312   MDRV_MACHINE_RESET( radio86 )
313313
314   MDRV_PPI8255_ADD( "ppi8255_1", radio86_ppi8255_interface_1 )
314   MDRV_I8255A_ADD( "ppi8255_1", radio86_ppi8255_interface_1 )
315315
316316   MDRV_I8275_ADD   ( "i8275", radio86_i8275_interface)
317317    /* video hardware */
r5230r5231
350350     MDRV_CPU_MODIFY("maincpu")
351351     MDRV_CPU_PROGRAM_MAP(radio86rom_mem)
352352   
353   MDRV_PPI8255_ADD( "ppi8255_2", radio86_ppi8255_interface_2 )
353   MDRV_I8255A_ADD( "ppi8255_2", radio86_ppi8255_interface_2 )
354354MACHINE_DRIVER_END
355355
356356static MACHINE_DRIVER_START( radioram )
r5230r5231
359359     MDRV_CPU_MODIFY("maincpu")
360360     MDRV_CPU_PROGRAM_MAP(radio86ram_mem)
361361
362   MDRV_PPI8255_ADD( "ppi8255_2", radio86_ppi8255_interface_2 )
362   MDRV_I8255A_ADD( "ppi8255_2", radio86_ppi8255_interface_2 )
363363MACHINE_DRIVER_END
364364
365365static MACHINE_DRIVER_START( rk7007 )
r5230r5231
368368     MDRV_CPU_MODIFY("maincpu")
369369     MDRV_CPU_IO_MAP(rk7007_io)
370370
371   MDRV_PPI8255_ADD( "ms7007", rk7007_ppi8255_interface )
371   MDRV_I8255A_ADD( "ms7007", rk7007_ppi8255_interface )
372372MACHINE_DRIVER_END
373373 
374374static MACHINE_DRIVER_START( rk700716 )
r5230r5231
377377     MDRV_CPU_MODIFY("maincpu")
378378     MDRV_CPU_IO_MAP(rk7007_io)
379379   
380   MDRV_PPI8255_ADD( "ms7007", rk7007_ppi8255_interface )   
380   MDRV_I8255A_ADD( "ms7007", rk7007_ppi8255_interface )   
381381MACHINE_DRIVER_END
382382
383383
src/mess/drivers/b2m.c
r5230r5231
1010#include "driver.h"
1111#include "cpu/i8085/i8085.h"
1212#include "devices/cassette.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "machine/pit8253.h"
1515#include "machine/pic8259.h"
1616#include "machine/msm8251.h"
r5230r5231
3131static ADDRESS_MAP_START( b2m_io, ADDRESS_SPACE_IO, 8 )
3232   ADDRESS_MAP_GLOBAL_MASK(0x1f)
3333   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("pit8253", pit8253_r,pit8253_w)
34   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("ppi8255_2", ppi8255_r, ppi8255_w)
35     AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE("ppi8255_1", ppi8255_r, ppi8255_w)
34   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("ppi8255_2", i8255a_r, i8255a_w)
35     AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE("ppi8255_1", i8255a_r, i8255a_w)
3636    AM_RANGE(0x0c, 0x0c) AM_READWRITE(b2m_localmachine_r,b2m_localmachine_w)
3737   AM_RANGE(0x10, 0x13) AM_READWRITE(b2m_palette_r,b2m_palette_w)   
3838   AM_RANGE(0x14, 0x15) AM_DEVREADWRITE("pic8259", pic8259_r, pic8259_w )
r5230r5231
4747static ADDRESS_MAP_START( b2m_rom_io, ADDRESS_SPACE_IO, 8 )
4848   ADDRESS_MAP_GLOBAL_MASK(0x1f)
4949   AM_RANGE(0x00, 0x03) AM_DEVREADWRITE("pit8253", pit8253_r,pit8253_w)
50   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("ppi8255_3", ppi8255_r, ppi8255_w)
51     AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE("ppi8255_1", ppi8255_r, ppi8255_w)
50   AM_RANGE(0x04, 0x07) AM_DEVREADWRITE("ppi8255_3", i8255a_r, i8255a_w)
51     AM_RANGE(0x08, 0x0b) AM_DEVREADWRITE("ppi8255_1", i8255a_r, i8255a_w)
5252    AM_RANGE(0x0c, 0x0c) AM_READWRITE(b2m_localmachine_r,b2m_localmachine_w)
5353   AM_RANGE(0x10, 0x13) AM_READWRITE(b2m_palette_r,b2m_palette_w)   
5454   AM_RANGE(0x14, 0x15) AM_DEVREADWRITE("pic8259", pic8259_r, pic8259_w )
r5230r5231
197197   
198198   MDRV_PIT8253_ADD( "pit8253", b2m_pit8253_intf )
199199
200   MDRV_PPI8255_ADD( "ppi8255_1", b2m_ppi8255_interface_1 )
200   MDRV_I8255A_ADD( "ppi8255_1", b2m_ppi8255_interface_1 )
201201
202   MDRV_PPI8255_ADD( "ppi8255_2", b2m_ppi8255_interface_2 )
202   MDRV_I8255A_ADD( "ppi8255_2", b2m_ppi8255_interface_2 )
203203         
204   MDRV_PPI8255_ADD( "ppi8255_3", b2m_ppi8255_interface_3 )
204   MDRV_I8255A_ADD( "ppi8255_3", b2m_ppi8255_interface_3 )
205205
206206   MDRV_PIC8259_ADD( "pic8259", b2m_pic8259_config )
207207     
src/mess/drivers/pmd85.c
r5230r5231
174174#include "sound/wave.h"
175175#include "devices/cassette.h"
176176#include "includes/pmd85.h"
177#include "machine/8255ppi.h"
177#include "machine/i8255a.h"
178178#include "machine/pit8253.h"
179179#include "machine/msm8251.h"
180180#include "formats/pmd_pmd.h"
r5230r5231
580580static MACHINE_DRIVER_START( pmd851 )
581581   MDRV_IMPORT_FROM( pmd85 )
582582
583   MDRV_PPI8255_ADD( "ppi8255_0", pmd85_ppi8255_interface[0] )
583   MDRV_I8255A_ADD( "ppi8255_0", pmd85_ppi8255_interface[0] )
584584
585   MDRV_PPI8255_ADD( "ppi8255_1", pmd85_ppi8255_interface[1] )
585   MDRV_I8255A_ADD( "ppi8255_1", pmd85_ppi8255_interface[1] )
586586
587   MDRV_PPI8255_ADD( "ppi8255_2", pmd85_ppi8255_interface[2] )
587   MDRV_I8255A_ADD( "ppi8255_2", pmd85_ppi8255_interface[2] )
588588
589   MDRV_PPI8255_ADD( "ppi8255_3", pmd85_ppi8255_interface[3] )
589   MDRV_I8255A_ADD( "ppi8255_3", pmd85_ppi8255_interface[3] )
590590MACHINE_DRIVER_END
591591
592592static MACHINE_DRIVER_START( pmd852a )
r5230r5231
606606   MDRV_CPU_MODIFY("maincpu")
607607   MDRV_CPU_PROGRAM_MAP(alfa_mem)
608608
609   MDRV_PPI8255_ADD( "ppi8255_0", alfa_ppi8255_interface[0] )
609   MDRV_I8255A_ADD( "ppi8255_0", alfa_ppi8255_interface[0] )
610610
611   MDRV_PPI8255_ADD( "ppi8255_1", alfa_ppi8255_interface[1] )
611   MDRV_I8255A_ADD( "ppi8255_1", alfa_ppi8255_interface[1] )
612612
613   MDRV_PPI8255_ADD( "ppi8255_2", alfa_ppi8255_interface[1] )
613   MDRV_I8255A_ADD( "ppi8255_2", alfa_ppi8255_interface[1] )
614614
615615MACHINE_DRIVER_END
616616
r5230r5231
620620   MDRV_CPU_PROGRAM_MAP(mato_mem)
621621   MDRV_CPU_IO_MAP(mato_io_map)
622622
623   MDRV_PPI8255_ADD( "ppi8255_0", mato_ppi8255_interface )
623   MDRV_I8255A_ADD( "ppi8255_0", mato_ppi8255_interface )
624624
625625   /* no uart */
626626   MDRV_DEVICE_REMOVE( "uart" )
src/mess/drivers/rt1715.c
r5230r5231
1010#include "driver.h"
1111#include "cpu/z80/z80.h"
1212#include "cpu/i8085/i8085.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "machine/8257dma.h"
1515#include "video/i8275.h"
1616#include "devices/cassette.h"
src/mess/drivers/at.c
r5230r5231
1414#include "cpu/i86/i286.h"
1515#include "cpu/i386/i386.h"
1616#include "sound/3812intf.h"
17#include "machine/8255ppi.h"
17#include "machine/i8255a.h"
1818#include "machine/ins8250.h"
1919#include "machine/mc146818.h"
2020#include "machine/pic8259.h"
src/mess/drivers/vector06.c
r5230r5231
1111#include "cpu/z80/z80.h"
1212#include "cpu/i8085/i8085.h"
1313#include "sound/wave.h"
14#include "machine/8255ppi.h"
14#include "machine/i8255a.h"
1515#include "machine/wd17xx.h"
1616#include "devices/cassette.h"
1717#include "devices/cartslot.h"
r5230r5231
164164   MDRV_MACHINE_START( vector06 )
165165     MDRV_MACHINE_RESET( vector06 )
166166
167   MDRV_PPI8255_ADD( "ppi8255", vector06_ppi8255_interface )
167   MDRV_I8255A_ADD( "ppi8255", vector06_ppi8255_interface )
168168
169   MDRV_PPI8255_ADD( "ppi8255_2", vector06_ppi8255_2_interface )
169   MDRV_I8255A_ADD( "ppi8255_2", vector06_ppi8255_2_interface )
170170
171171    /* video hardware */
172172   MDRV_SCREEN_ADD("screen", RASTER)
src/mess/drivers/mikrosha.c
r5230r5231
1010#include "driver.h"
1111#include "cpu/i8085/i8085.h"
1212#include "sound/wave.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "machine/8257dma.h"
1515#include "machine/pit8253.h"
1616#include "video/i8275.h"
r5230r5231
2323    AM_RANGE( 0x0000, 0x0fff ) AM_RAMBANK(1) // First bank
2424    AM_RANGE( 0x1000, 0x7fff ) AM_RAM // RAM
2525    AM_RANGE( 0x8000, 0xbfff ) AM_READ(radio_cpu_state_r) // Not connected
26    AM_RANGE( 0xc000, 0xc003 ) AM_DEVREADWRITE("ppi8255_1", ppi8255_r, ppi8255_w) AM_MIRROR(0x07fc)
27    AM_RANGE( 0xc800, 0xc803 ) AM_DEVREADWRITE("ppi8255_2", ppi8255_r, ppi8255_w) AM_MIRROR(0x07fc)
26    AM_RANGE( 0xc000, 0xc003 ) AM_DEVREADWRITE("ppi8255_1", i8255a_r, i8255a_w) AM_MIRROR(0x07fc)
27    AM_RANGE( 0xc800, 0xc803 ) AM_DEVREADWRITE("ppi8255_2", i8255a_r, i8255a_w) AM_MIRROR(0x07fc)
2828    AM_RANGE( 0xd000, 0xd001 ) AM_DEVREADWRITE("i8275", i8275_r, i8275_w) AM_MIRROR(0x07fe) // video
2929    AM_RANGE( 0xd800, 0xd803 ) AM_DEVREADWRITE("pit8253", pit8253_r,pit8253_w) AM_MIRROR(0x07fc) // Timer
3030    AM_RANGE( 0xe000, 0xf7ff ) AM_READ(radio_cpu_state_r) // Not connected
r5230r5231
170170
171171   MDRV_MACHINE_RESET( radio86 )
172172
173   MDRV_PPI8255_ADD( "ppi8255_1", mikrosha_ppi8255_interface_1 )
173   MDRV_I8255A_ADD( "ppi8255_1", mikrosha_ppi8255_interface_1 )
174174
175   MDRV_PPI8255_ADD( "ppi8255_2", mikrosha_ppi8255_interface_2 )
175   MDRV_I8255A_ADD( "ppi8255_2", mikrosha_ppi8255_interface_2 )
176176
177177   MDRV_I8275_ADD  ( "i8275", mikrosha_i8275_interface)
178178
src/mess/drivers/irisha.c
r5230r5231
99
1010#include "driver.h"
1111#include "cpu/i8085/i8085.h"
12#include "machine/8255ppi.h"
12#include "machine/i8255a.h"
1313#include "machine/pit8253.h"
1414#include "machine/pic8259.h"
1515#include "machine/msm8251.h"
r5230r5231
2727   AM_RANGE( 0x07, 0x07) AM_DEVREADWRITE("uart", msm8251_status_r, msm8251_control_w)
2828   AM_RANGE( 0x08, 0x0B) AM_DEVREADWRITE("pit8253", pit8253_r, pit8253_w )
2929   AM_RANGE( 0x0C, 0x0F) AM_DEVREADWRITE("pic8259", pic8259_r, pic8259_w ) AM_MASK( 0x01 )
30   AM_RANGE( 0x10, 0x13) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w )
30   AM_RANGE( 0x10, 0x13) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w )
3131ADDRESS_MAP_END
3232
3333/* Input ports */
r5230r5231
142142
143143      MDRV_MACHINE_RESET( irisha )
144144
145    MDRV_PPI8255_ADD( "ppi8255", irisha_ppi8255_interface )
145    MDRV_I8255A_ADD( "ppi8255", irisha_ppi8255_interface )
146146
147147   MDRV_PIT8253_ADD( "pit8253", irisha_pit8253_intf )
148148
src/mess/drivers/votrpss.c
r5230r5231
6464/* Components */
6565//#include "sound/ay8910.h"
6666//#include "sound/votrax.h"
67//#include "machine/8255ppi.h"
67//#include "machine/i8255a.h"
6868//#include "machine/pit8253.h"
6969//#include "machine/msm8251.h"
7070
src/mess/drivers/fk1.c
r5230r5231
88
99#include "driver.h"
1010#include "cpu/z80/z80.h"
11#include "machine/8255ppi.h"
11#include "machine/i8255a.h"
1212#include "machine/pit8253.h"
1313#include "machine/msm8251.h"
1414
r5230r5231
6161//   logerror("fk1_ppi_1_c_r\n");
6262   return 0;
6363}
64const ppi8255_interface fk1_ppi8255_interface_1 =
64I8255A_INTERFACE( fk1_ppi8255_interface_1 )
6565{
6666   DEVCB_HANDLER(fk1_ppi_1_a_r),
6767   DEVCB_HANDLER(fk1_ppi_1_b_r),
r5230r5231
111111//   logerror("fk1_ppi_2_c_r\n");
112112   return 0;
113113}
114const ppi8255_interface fk1_ppi8255_interface_2 =
114I8255A_INTERFACE( fk1_ppi8255_interface_2 )
115115{
116116   DEVCB_NULL,
117117   DEVCB_HANDLER(fk1_ppi_2_b_r),
r5230r5231
174174//   logerror("fk1_ppi_3_c_r\n");
175175   return 0;
176176}
177const ppi8255_interface fk1_ppi8255_interface_3 =
177I8255A_INTERFACE( fk1_ppi8255_interface_3 )
178178{
179179   DEVCB_HANDLER(fk1_ppi_3_a_r),
180180   DEVCB_HANDLER(fk1_ppi_3_b_r),
r5230r5231
296296static ADDRESS_MAP_START( fk1_io , ADDRESS_SPACE_IO, 8)
297297   ADDRESS_MAP_GLOBAL_MASK(0xff)
298298   ADDRESS_MAP_UNMAP_HIGH
299   AM_RANGE( 0x00, 0x03 ) AM_DEVREADWRITE("ppi8255_1", ppi8255_r, ppi8255_w)
299   AM_RANGE( 0x00, 0x03 ) AM_DEVREADWRITE("ppi8255_1", i8255a_r, i8255a_w)
300300   AM_RANGE( 0x10, 0x13 ) AM_DEVREADWRITE("pit8253", pit8253_r,pit8253_w)
301   AM_RANGE( 0x20, 0x23 ) AM_DEVREADWRITE("ppi8255_2", ppi8255_r, ppi8255_w)
301   AM_RANGE( 0x20, 0x23 ) AM_DEVREADWRITE("ppi8255_2", i8255a_r, i8255a_w)
302302   AM_RANGE( 0x30, 0x30 ) AM_READWRITE(fk1_bank_ram_r,fk1_intr_w)
303303   AM_RANGE( 0x40, 0x40 ) AM_DEVREADWRITE("uart", msm8251_data_r,msm8251_data_w)
304304   AM_RANGE( 0x41, 0x41 ) AM_DEVREADWRITE("uart", msm8251_status_r,msm8251_control_w)
305305   AM_RANGE( 0x50, 0x50 ) AM_READWRITE(fk1_bank_rom_r,fk1_disk_w)
306   AM_RANGE( 0x60, 0x63 ) AM_DEVREADWRITE("ppi8255_3", ppi8255_r, ppi8255_w)
306   AM_RANGE( 0x60, 0x63 ) AM_DEVREADWRITE("ppi8255_3", i8255a_r, i8255a_w)
307307   AM_RANGE( 0x70, 0x70 ) AM_READWRITE(fk1_mouse_r,fk1_reset_int_w)
308308ADDRESS_MAP_END
309309
r5230r5231
413413    MDRV_VIDEO_UPDATE(fk1)
414414   
415415   MDRV_PIT8253_ADD( "pit8253", fk1_pit8253_intf )
416   MDRV_PPI8255_ADD( "ppi8255_1", fk1_ppi8255_interface_1 )
417   MDRV_PPI8255_ADD( "ppi8255_2", fk1_ppi8255_interface_2 )         
418   MDRV_PPI8255_ADD( "ppi8255_3", fk1_ppi8255_interface_3 )       
416   MDRV_I8255A_ADD( "ppi8255_1", fk1_ppi8255_interface_1 )
417   MDRV_I8255A_ADD( "ppi8255_2", fk1_ppi8255_interface_2 )         
418   MDRV_I8255A_ADD( "ppi8255_3", fk1_ppi8255_interface_3 )       
419419   /* uart */
420420   MDRV_MSM8251_ADD("uart", default_msm8251_interface)   
421421MACHINE_DRIVER_END
src/mess/drivers/amstrad.c
r5230r5231
8888#include "includes/amstrad.h"
8989
9090/* Components */
91#include "machine/8255ppi.h"   /* for 8255 ppi */
91#include "machine/i8255a.h"   /* for 8255 ppi */
9292#include "cpu/z80/z80.h"      /* for cycle tables */
9393#include "video/mc6845.h"      /* CRTC */
9494#include "machine/nec765.h"   /* for floppy disc controller */
r5230r5231
120120/* -----------------------------
121121   - amstrad_ppi8255_interface -
122122   -----------------------------*/
123static const ppi8255_interface amstrad_ppi8255_interface =
123static I8255A_INTERFACE( amstrad_ppi8255_interface )
124124{
125125   DEVCB_HANDLER(amstrad_ppi_porta_r),   /* port A read */
126126   DEVCB_HANDLER(amstrad_ppi_portb_r),   /* port B read */
r5230r5231
851851
852852   MDRV_MACHINE_RESET( amstrad )
853853
854   MDRV_PPI8255_ADD( "ppi8255", amstrad_ppi8255_interface )
854   MDRV_I8255A_ADD( "ppi8255", amstrad_ppi8255_interface )
855855
856856    /* video hardware */
857857   MDRV_SCREEN_ADD("screen", RASTER)
r5230r5231
907907   MDRV_MACHINE_START( plus )
908908   MDRV_MACHINE_RESET( plus )
909909
910   MDRV_PPI8255_ADD( "ppi8255", amstrad_ppi8255_interface )
910   MDRV_I8255A_ADD( "ppi8255", amstrad_ppi8255_interface )
911911
912912   /* video hardware */
913913   MDRV_SCREEN_ADD("screen", RASTER)
r5230r5231
957957   MDRV_MACHINE_START( plus )
958958   MDRV_MACHINE_RESET( gx4000 )
959959
960   MDRV_PPI8255_ADD( "ppi8255", amstrad_ppi8255_interface )
960   MDRV_I8255A_ADD( "ppi8255", amstrad_ppi8255_interface )
961961
962962   /* video hardware */
963963   MDRV_SCREEN_ADD("screen", RASTER)
src/mess/drivers/svi318.c
r5230r5231
1515#include "video/mc6845.h"
1616#include "includes/svi318.h"
1717#include "video/tms9928a.h"
18#include "machine/8255ppi.h"
18#include "machine/i8255a.h"
1919#include "machine/wd17xx.h"
2020#include "machine/ctronics.h"
2121#include "devices/basicdsk.h"
r5230r5231
290290   MDRV_MACHINE_START( svi318_pal )
291291   MDRV_MACHINE_RESET( svi318 )
292292
293   MDRV_PPI8255_ADD( "ppi8255", svi318_ppi8255_interface )
293   MDRV_I8255A_ADD( "ppi8255", svi318_ppi8255_interface )
294294
295295   MDRV_INS8250_ADD( "ins8250_0", svi318_ins8250_interface[0] )
296296   MDRV_INS8250_ADD( "ins8250_1", svi318_ins8250_interface[1] )
r5230r5231
356356   MDRV_MACHINE_START( svi318_pal )
357357   MDRV_MACHINE_RESET( svi328_806 )
358358
359   MDRV_PPI8255_ADD( "ppi8255", svi318_ppi8255_interface )
359   MDRV_I8255A_ADD( "ppi8255", svi318_ppi8255_interface )
360360
361361   MDRV_INS8250_ADD( "ins8250_0", svi318_ins8250_interface[0] )
362362   MDRV_INS8250_ADD( "ins8250_1", svi318_ins8250_interface[1] )
src/mess/drivers/compis.c
r5230r5231
3333
3434#include "driver.h"
3535#include "cpu/i86/i86.h"
36#include "machine/8255ppi.h"
36#include "machine/i8255a.h"
3737#include "machine/ctronics.h"
3838#include "includes/compis.h"
3939#include "video/i82720.h"
r5230r5231
5858
5959   if (offset == 3) return 0;
6060   else
61   return ppi8255_r(device, offset);
61   return i8255a_r(device, offset);
6262}
6363
6464static ADDRESS_MAP_START( compis_mem , ADDRESS_SPACE_PROGRAM, 16 )
r5230r5231
7272ADDRESS_MAP_END
7373
7474static ADDRESS_MAP_START( compis_io, ADDRESS_SPACE_IO, 16 )
75   AM_RANGE( 0x0000, 0x0007) AM_DEVREADWRITE8("ppi8255", compis_ppi_r, ppi8255_w, 0xffff)
75   AM_RANGE( 0x0000, 0x0007) AM_DEVREADWRITE8("ppi8255", compis_ppi_r, i8255a_w, 0xffff)
7676   AM_RANGE( 0x0080, 0x0087) AM_DEVREADWRITE8("pit8253", pit8253_r, pit8253_w, 0xffff)
7777   AM_RANGE( 0x0100, 0x011b) AM_DEVREADWRITE8("mm58274c", mm58274c_r, mm58274c_w, 0xffff)
7878   AM_RANGE( 0x0280, 0x0283) AM_DEVREADWRITE8("pic8259_master", pic8259_r, pic8259_w, 0xffff) /* 80150/80130 */
r5230r5231
268268
269269   MDRV_PIC8259_ADD( "pic8259_slave", compis_pic8259_slave_config )
270270
271   MDRV_PPI8255_ADD( "ppi8255", compis_ppi_interface )
271   MDRV_I8255A_ADD( "ppi8255", compis_ppi_interface )
272272
273273   /* video hardware */
274274   MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
src/mess/drivers/pk8000.c
r5230r5231
88
99#include "driver.h"
1010#include "cpu/i8085/i8085.h"
11#include "machine/8255ppi.h"
11#include "machine/i8255a.h"
1212
1313static void pk8000_set_bank(running_machine *machine,UINT8 data)
1414{
r5230r5231
7373   pk8000_set_bank(device->machine,data);
7474}
7575
76static const ppi8255_interface pk8000_ppi8255_interface_1 =
76static I8255A_INTERFACE( pk8000_ppi8255_interface_1 )
7777{
7878   DEVCB_NULL,
7979   DEVCB_NULL,
r5230r5231
9393
9494static ADDRESS_MAP_START( pk8000_io , ADDRESS_SPACE_IO, 8)
9595   ADDRESS_MAP_UNMAP_HIGH
96   AM_RANGE(0x80, 0x83) AM_DEVREADWRITE("ppi8255_1", ppi8255_r, ppi8255_w)
97   //AM_RANGE(0x84, 0x87) AM_DEVREADWRITE("ppi8255_2", ppi8255_r, ppi8255_w)
98   //AM_RANGE(0x88, 0x8b) AM_DEVREADWRITE("ppi8255_3", ppi8255_r, ppi8255_w)
99   //AM_RANGE(0x8c, 0x8f) AM_DEVREADWRITE("ppi8255_4", ppi8255_r, ppi8255_w)
96   AM_RANGE(0x80, 0x83) AM_DEVREADWRITE("ppi8255_1", i8255a_r, i8255a_w)
97   //AM_RANGE(0x84, 0x87) AM_DEVREADWRITE("ppi8255_2", i8255a_r, i8255a_w)
98   //AM_RANGE(0x88, 0x8b) AM_DEVREADWRITE("ppi8255_3", i8255a_r, i8255a_w)
99   //AM_RANGE(0x8c, 0x8f) AM_DEVREADWRITE("ppi8255_4", i8255a_r, i8255a_w)
100100ADDRESS_MAP_END
101101
102102/*    Input ports */
r5230r5231
139139    MDRV_VIDEO_START(pk8000)
140140    MDRV_VIDEO_UPDATE(pk8000)
141141   
142    MDRV_PPI8255_ADD( "ppi8255_1", pk8000_ppi8255_interface_1 )
142    MDRV_I8255A_ADD( "ppi8255_1", pk8000_ppi8255_interface_1 )
143143MACHINE_DRIVER_END
144144
145145static SYSTEM_CONFIG_START(pk8000)
src/mess/drivers/msx.c
r5230r5231
278278#include "driver.h"
279279#include "cpu/z80/z80.h"
280280#include "deprecat.h"
281#include "machine/8255ppi.h"
281#include "machine/i8255a.h"
282282#include "machine/tc8521.h"
283283#include "machine/wd17xx.h"
284284#include "video/tms9928a.h"
r5230r5231
329329   AM_RANGE( 0x90, 0x90) AM_DEVREADWRITE("centronics", msx_printer_status_r, msx_printer_strobe_w)
330330   AM_RANGE( 0x91, 0x91) AM_DEVWRITE("centronics", msx_printer_data_w)
331331   AM_RANGE( 0xa0, 0xa7) AM_DEVREADWRITE("ay8910", ay8910_r, msx_ay8910_w )
332   AM_RANGE( 0xa8, 0xab) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w )
332   AM_RANGE( 0xa8, 0xab) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w )
333333   AM_RANGE( 0x98, 0x98) AM_READWRITE( TMS9928A_vram_r, TMS9928A_vram_w )
334334   AM_RANGE( 0x99, 0x99) AM_READWRITE( TMS9928A_register_r, TMS9928A_register_w )
335335   AM_RANGE( 0xd8, 0xd9) AM_READWRITE( msx_kanji_r, msx_kanji_w )
r5230r5231
344344   AM_RANGE( 0x90, 0x90) AM_DEVREADWRITE("centronics", msx_printer_status_r, msx_printer_strobe_w)
345345   AM_RANGE( 0x91, 0x91) AM_DEVWRITE("centronics", msx_printer_data_w)
346346   AM_RANGE( 0xa0, 0xa7) AM_DEVREADWRITE("ay8910", ay8910_r, msx_ay8910_w )
347   AM_RANGE( 0xa8, 0xab) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w )
347   AM_RANGE( 0xa8, 0xab) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w )
348348   AM_RANGE( 0x98, 0x98) AM_READWRITE( v9938_0_vram_r, v9938_0_vram_w )
349349   AM_RANGE( 0x99, 0x99) AM_READWRITE( v9938_0_status_r, v9938_0_command_w )
350350   AM_RANGE( 0x9a, 0x9a) AM_WRITE( v9938_0_palette_w )
r5230r5231
10391039   MDRV_MACHINE_START( msx )
10401040   MDRV_MACHINE_RESET( msx )
10411041
1042   MDRV_PPI8255_ADD( "ppi8255", msx_ppi8255_interface )
1042   MDRV_I8255A_ADD( "ppi8255", msx_ppi8255_interface )
10431043
10441044   /* video hardware */
10451045   MDRV_IMPORT_FROM(tms9928a)
r5230r5231
10981098   MDRV_MACHINE_START( msx2 )
10991099   MDRV_MACHINE_RESET( msx2 )
11001100
1101   MDRV_PPI8255_ADD( "ppi8255", msx_ppi8255_interface )
1101   MDRV_I8255A_ADD( "ppi8255", msx_ppi8255_interface )
11021102
11031103   /* video hardware */
11041104   MDRV_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
src/mess/drivers/mz700.c
r5230r5231
6666#include "driver.h"
6767#include "includes/mz700.h"
6868#include "cpu/z80/z80.h"
69#include "machine/8255ppi.h"
69#include "machine/i8255a.h"
7070#include "machine/pit8253.h"
7171#include "machine/z80pio.h"
7272#include "machine/74145.h"
r5230r5231
122122   AM_RANGE(0xcd, 0xcd) AM_WRITE( mz800_read_format_w )
123123   AM_RANGE(0xce, 0xce) AM_READWRITE( mz800_crtc_r, mz800_display_mode_w )
124124   AM_RANGE(0xcf, 0xcf) AM_WRITE( mz800_scroll_border_w )
125   AM_RANGE(0xd0, 0xd3) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w)
125   AM_RANGE(0xd0, 0xd3) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w)
126126   AM_RANGE(0xd4, 0xd7) AM_DEVREADWRITE("pit8253", pit8253_r, pit8253_w)
127127   AM_RANGE(0xe0, 0xe0) AM_READWRITE(mz800_bank_0_r, mz800_bank_0_w)
128128   AM_RANGE(0xe1, 0xe1) AM_READWRITE(mz800_bank_1_r, mz_bank_1_w)
r5230r5231
369369
370370   /* devices */
371371   MDRV_PIT8253_ADD("pit8253", mz700_pit8253_config)
372   MDRV_PPI8255_ADD("ppi8255", mz700_ppi8255_interface)
372   MDRV_I8255A_ADD("ppi8255", mz700_ppi8255_interface)
373373   MDRV_TTL74145_ADD("ls145", default_ttl74145)
374374
375375   MDRV_CASSETTE_ADD( "cassette", mz700_cassette_config )
src/mess/drivers/x68k.c
r5230r5231
121121#include "driver.h"
122122#include "cpu/m68000/m68000.h"
123123#include "machine/68901mfp.h"
124#include "machine/8255ppi.h"
124#include "machine/i8255a.h"
125125#include "machine/nec765.h"
126126#include "sound/2151intf.h"
127127#include "sound/okim6258.h"
r5230r5231
14591459
14601460static WRITE16_DEVICE_HANDLER( x68k_ppi_w )
14611461{
1462   ppi8255_w(device,offset & 0x03,data);
1462   i8255a_w(device,offset & 0x03,data);
14631463}
14641464
14651465static READ16_DEVICE_HANDLER( x68k_ppi_r )
14661466{
1467   return ppi8255_r(device,offset & 0x03);
1467   return i8255a_r(device,offset & 0x03);
14681468}
14691469
14701470static READ16_DEVICE_HANDLER( x68k_rtc_r )
r5230r5231
18711871   DEVCB_LINE(mfp_irq_callback)                  /* interrupt */
18721872};
18731873
1874static const ppi8255_interface ppi_interface =
1874static I8255A_INTERFACE( ppi_interface )
18751875{
18761876   DEVCB_HANDLER(ppi_port_a_r),
18771877   DEVCB_HANDLER(ppi_port_b_r),
r5230r5231
25072507   /* device hardware */
25082508   MDRV_MC68901_ADD(MC68901_TAG, 2000000, mfp_interface)
25092509
2510   MDRV_PPI8255_ADD( "ppi8255",  ppi_interface )
2510   MDRV_I8255A_ADD( "ppi8255",  ppi_interface )
25112511
25122512   MDRV_HD63450_ADD( "hd63450", dmac_interface )
25132513
src/mess/drivers/lviv.c
r5230r5231
284284#include "cpu/i8085/i8085.h"
285285#include "sound/speaker.h"
286286#include "sound/wave.h"
287#include "machine/8255ppi.h"
287#include "machine/i8255a.h"
288288#include "includes/lviv.h"
289289#include "devices/snapquik.h"
290290#include "devices/cassette.h"
r5230r5231
432432
433433   MDRV_MACHINE_RESET( lviv )
434434
435   MDRV_PPI8255_ADD( "ppi8255_0", lviv_ppi8255_interface_0 )
435   MDRV_I8255A_ADD( "ppi8255_0", lviv_ppi8255_interface_0 )
436436
437   MDRV_PPI8255_ADD( "ppi8255_1", lviv_ppi8255_interface_1 )
437   MDRV_I8255A_ADD( "ppi8255_1", lviv_ppi8255_interface_1 )
438438
439439   MDRV_SCREEN_ADD("screen", RASTER)
440440   MDRV_SCREEN_REFRESH_RATE(50)
src/mess/drivers/atom.c
r5230r5231
6464/* Components */
6565#include "machine/ctronics.h"
6666#include "machine/i8271.h"
67#include "machine/8255ppi.h"
67#include "machine/i8255a.h"
6868#include "machine/6522via.h"
6969#include "video/m6847.h"
7070
r5230r5231
9191   AM_RANGE(0x0a05, 0x7fff) AM_RAM
9292   AM_RANGE(0x8000, 0x97ff) AM_RAM AM_BASE(&videoram) /* VDG 6847 */
9393   AM_RANGE(0x9800, 0x9fff) AM_RAM
94   AM_RANGE(0xb000, 0xb003) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w)
94   AM_RANGE(0xb000, 0xb003) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w)
9595   AM_RANGE(0xb800, 0xbbff) AM_DEVREADWRITE("via6522_0", via_r, via_w)
9696   AM_RANGE(0xc000, 0xcfff) AM_ROM
9797   AM_RANGE(0xd000, 0xdfff) AM_ROM
r5230r5231
108108   AM_RANGE(0x8000, 0x97ff) AM_RAM AM_BASE(&videoram) AM_SIZE(&videoram_size) /* VDG 6847 */
109109   AM_RANGE(0x9800, 0x9fff) AM_RAM
110110   AM_RANGE(0xa000, 0xafff) AM_READ(SMH_BANK(1))   /* eprom data from eprom box */
111   AM_RANGE(0xb000, 0xb003) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w)
111   AM_RANGE(0xb000, 0xb003) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w)
112112   AM_RANGE(0xb800, 0xbbff) AM_DEVREADWRITE("via6522_0", via_r, via_w)
113113   AM_RANGE(0xbfff, 0xbfff) AM_READWRITE(atom_eprom_box_r, atom_eprom_box_w)
114114   AM_RANGE(0xc000, 0xcfff) AM_ROM
r5230r5231
265265
266266   MDRV_MACHINE_RESET( atom )
267267
268   MDRV_PPI8255_ADD( "ppi8255", atom_8255_int )
268   MDRV_I8255A_ADD( "ppi8255", atom_8255_int )
269269
270270   /* video hardware */
271271   MDRV_SCREEN_ADD("screen", RASTER)
src/mess/drivers/partner.c
r5230r5231
1010#include "driver.h"
1111#include "cpu/i8085/i8085.h"
1212#include "sound/wave.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "machine/8257dma.h"
1515#include "machine/wd17xx.h"
1616#include "video/i8275.h"
r5230r5231
3333   AM_RANGE( 0xc800, 0xcfff ) AM_RAMBANK(9)
3434   AM_RANGE( 0xd000, 0xd7ff ) AM_RAMBANK(10)
3535   AM_RANGE( 0xd800, 0xd8ff ) AM_DEVREADWRITE("i8275", i8275_r, i8275_w)  // video
36   AM_RANGE( 0xd900, 0xd9ff ) AM_DEVREADWRITE("ppi8255_1", ppi8255_r, ppi8255_w)
36   AM_RANGE( 0xd900, 0xd9ff ) AM_DEVREADWRITE("ppi8255_1", i8255a_r, i8255a_w)
3737   AM_RANGE( 0xda00, 0xdaff ) AM_WRITE(partner_mem_page_w)
3838   AM_RANGE( 0xdb00, 0xdbff ) AM_DEVWRITE("dma8257", dma8257_w)    // DMA
3939   AM_RANGE( 0xdc00, 0xddff ) AM_RAMBANK(11)
r5230r5231
152152    MDRV_MACHINE_START( partner )
153153    MDRV_MACHINE_RESET( partner )
154154
155   MDRV_PPI8255_ADD( "ppi8255_1", radio86_ppi8255_interface_1 )
155   MDRV_I8255A_ADD( "ppi8255_1", radio86_ppi8255_interface_1 )
156156
157157   MDRV_I8275_ADD   ( "i8275", partner_i8275_interface)
158158    /* video hardware */
src/mess/drivers/apogee.c
r5230r5231
1010#include "driver.h"
1111#include "cpu/i8085/i8085.h"
1212#include "sound/wave.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "machine/8257dma.h"
1515#include "video/i8275.h"
1616#include "devices/cassette.h"
r5230r5231
2222    AM_RANGE( 0x0000, 0x0fff ) AM_RAMBANK(1) // First bank
2323    AM_RANGE( 0x1000, 0xebff ) AM_RAM  // RAM
2424    //AM_RANGE( 0xec00, 0xecff ) AM_RAM  // Timer
25    AM_RANGE( 0xed00, 0xed03 ) AM_DEVREADWRITE("ppi8255_1", ppi8255_r, ppi8255_w) AM_MIRROR(0x00fc)
26    //AM_RANGE( 0xee00, 0xee03 ) AM_DEVREADWRITE("ppi8255_2", ppi8255_r, ppi8255_w) AM_MIRROR(0x00fc)
25    AM_RANGE( 0xed00, 0xed03 ) AM_DEVREADWRITE("ppi8255_1", i8255a_r, i8255a_w) AM_MIRROR(0x00fc)
26    //AM_RANGE( 0xee00, 0xee03 ) AM_DEVREADWRITE("ppi8255_2", i8255a_r, i8255a_w) AM_MIRROR(0x00fc)
2727    AM_RANGE( 0xef00, 0xef01 ) AM_DEVREADWRITE("i8275", i8275_r, i8275_w) AM_MIRROR(0x00fe) // video
2828    AM_RANGE( 0xf000, 0xf0ff ) AM_DEVWRITE("dma8257", dma8257_w)    // DMA
2929    AM_RANGE( 0xf000, 0xffff ) AM_ROM  // System ROM
r5230r5231
137137    MDRV_CPU_PROGRAM_MAP(apogee_mem)
138138    MDRV_MACHINE_RESET( radio86 )
139139
140   MDRV_PPI8255_ADD( "ppi8255_1", radio86_ppi8255_interface_1 )
140   MDRV_I8255A_ADD( "ppi8255_1", radio86_ppi8255_interface_1 )
141141
142   //MDRV_PPI8255_ADD( "ppi8255_2", apogee_ppi8255_interface_2 )
142   //MDRV_I8255A_ADD( "ppi8255_2", apogee_ppi8255_interface_2 )
143143
144144   MDRV_I8275_ADD   ( "i8275", apogee_i8275_interface)
145145    /* video hardware */
src/mess/drivers/special.c
r5230r5231
1414#include "sound/dac.h"
1515#include "sound/wave.h"
1616#include "includes/special.h"
17#include "machine/8255ppi.h"
17#include "machine/i8255a.h"
1818#include "machine/pit8253.h"
1919#include "devices/cassette.h"
2020#include "devices/basicdsk.h"
r5230r5231
403403
404404   MDRV_PIT8253_ADD( "pit8253", specimx_pit8253_intf )
405405
406   MDRV_PPI8255_ADD( "ppi8255", specialist_ppi8255_interface )
406   MDRV_I8255A_ADD( "ppi8255", specialist_ppi8255_interface )
407407
408408    /* video hardware */
409409   MDRV_SCREEN_ADD("screen", RASTER)
r5230r5231
472472
473473    MDRV_MACHINE_RESET( erik )
474474
475   MDRV_PPI8255_ADD( "ppi8255", specialist_ppi8255_interface )
475   MDRV_I8255A_ADD( "ppi8255", specialist_ppi8255_interface )
476476
477477    /* video hardware */
478478   MDRV_SCREEN_ADD("screen", RASTER)
src/mess/drivers/mikro80.c
r5230r5231
1010#include "driver.h"
1111#include "cpu/i8085/i8085.h"
1212#include "sound/wave.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "includes/mikro80.h"
1515#include "devices/cassette.h"
1616#include "devices/cartslot.h"
r5230r5231
153153    MDRV_CPU_IO_MAP(mikro80_io)
154154    MDRV_MACHINE_RESET( mikro80 )
155155
156   MDRV_PPI8255_ADD( "ppi8255", mikro80_ppi8255_interface )
156   MDRV_I8255A_ADD( "ppi8255", mikro80_ppi8255_interface )
157157
158158    /* video hardware */
159159   MDRV_SCREEN_ADD("screen", RASTER)
src/mess/drivers/mz80.c
r5230r5231
1010#include "cpu/z80/z80.h"
1111#include "sound/speaker.h"
1212#include "sound/wave.h"
13#include "machine/8255ppi.h"
13#include "machine/i8255a.h"
1414#include "machine/pit8253.h"
1515#include "devices/cassette.h"
1616#include "includes/mz80.h"
r5230r5231
229229    AM_RANGE(0x0000, 0x0fff) AM_ROM
230230    AM_RANGE(0x1000, 0xcfff) AM_RAM // 48 KB of RAM
231231    AM_RANGE(0xd000, 0xd3ff) AM_RAM // Video RAM
232    AM_RANGE(0xe000, 0xe003) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w) /* PPIA 8255 */
232    AM_RANGE(0xe000, 0xe003) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w) /* PPIA 8255 */
233233    AM_RANGE(0xe004, 0xe007) AM_DEVREADWRITE("pit8253", pit8253_r,pit8253_w)  /* PIT 8253  */
234234    AM_RANGE(0xe008, 0xe008) AM_READWRITE( mz80k_strobe_r, mz80k_strobe_w)
235235    AM_RANGE(0xf000, 0xf3ff) AM_ROM
r5230r5231
265265
266266   MDRV_MACHINE_RESET( mz80k )
267267
268   MDRV_PPI8255_ADD( "ppi8255", mz80k_8255_int )
268   MDRV_I8255A_ADD( "ppi8255", mz80k_8255_int )
269269
270270   MDRV_PIT8253_ADD( "pit8253", mz80k_pit8253_config )
271271
src/mess/drivers/ut88.c
r5230r5231
181181    MDRV_CPU_IO_MAP(ut88_io)
182182    MDRV_MACHINE_RESET( ut88 )
183183
184   MDRV_PPI8255_ADD( "ppi8255", ut88_ppi8255_interface )
184   MDRV_I8255A_ADD( "ppi8255", ut88_ppi8255_interface )
185185
186186    /* video hardware */
187187   MDRV_SCREEN_ADD("screen", RASTER)
src/mess/drivers/pp01.c
r5230r5231
3333ADDRESS_MAP_END
3434
3535static ADDRESS_MAP_START( pp01_io, ADDRESS_SPACE_IO, 8 )
36   AM_RANGE(0xc0, 0xc3) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w)
37   //AM_RANGE(0xc4, 0xc7) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w)
36   AM_RANGE(0xc0, 0xc3) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w)
37   //AM_RANGE(0xc4, 0xc7) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w)
3838   AM_RANGE(0xcc, 0xcf) AM_WRITE(pp01_video_write_mode_w)
3939   AM_RANGE(0xd0, 0xd3) AM_DEVREADWRITE("pit8253", pit8253_r, pit8253_w)
4040   AM_RANGE(0xe0, 0xef) AM_READWRITE(pp01_mem_block_r, pp01_mem_block_w)
r5230r5231
218218   
219219   MDRV_PIT8253_ADD( "pit8253", pp01_pit8253_intf )
220220
221   MDRV_PPI8255_ADD( "ppi8255", pp01_ppi8255_interface )   
221   MDRV_I8255A_ADD( "ppi8255", pp01_ppi8255_interface )   
222222MACHINE_DRIVER_END
223223
224224static SYSTEM_CONFIG_START(pp01)
src/mess/drivers/pc.c
r5230r5231
113113#include "sound/saa1099.h"
114114#include "deprecat.h"
115115
116#include "machine/8255ppi.h"
116#include "machine/i8255a.h"
117117#include "machine/ins8250.h"
118118#include "machine/mc146818.h"
119119#include "machine/pic8259.h"
r5230r5231
213213   AM_RANGE(0x0000, 0x000f) AM_DEVREADWRITE("dma8237", dma8237_r, dma8237_w)
214214   AM_RANGE(0x0020, 0x0021) AM_DEVREADWRITE("pic8259_master", pic8259_r, pic8259_w)
215215   AM_RANGE(0x0040, 0x0043) AM_DEVREADWRITE("pit8253", pit8253_r, pit8253_w)
216   AM_RANGE(0x0060, 0x0063) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w)
216   AM_RANGE(0x0060, 0x0063) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w)
217217   AM_RANGE(0x0080, 0x0087) AM_READWRITE(pc_page_r,         pc_page_w)
218218   AM_RANGE(0x00a0, 0x00a0) AM_WRITE( pc_nmi_enable_w )
219219   AM_RANGE(0x0200, 0x0207) AM_READWRITE(pc_JOY_r,            pc_JOY_w)
r5230r5231
270270   AM_RANGE(0x0000, 0x000f) AM_DEVREADWRITE8("dma8237", dma8237_r, dma8237_w, 0xffff)
271271   AM_RANGE(0x0020, 0x0021) AM_DEVREADWRITE8("pic8259_master", pic8259_r, pic8259_w, 0xffff)
272272   AM_RANGE(0x0040, 0x0043) AM_DEVREADWRITE8("pit8253", pit8253_r, pit8253_w, 0xffff)
273   AM_RANGE(0x0060, 0x0063) AM_DEVREADWRITE8("ppi8255", ppi8255_r, ppi8255_w, 0xffff)
273   AM_RANGE(0x0060, 0x0063) AM_DEVREADWRITE8("ppi8255", i8255a_r, i8255a_w, 0xffff)
274274   AM_RANGE(0x0080, 0x0087) AM_READWRITE8(pc_page_r,            pc_page_w, 0xffff)
275275   AM_RANGE(0x00a0, 0x00a1) AM_WRITE8( pc_nmi_enable_w, 0x00ff )
276276   AM_RANGE(0x0200, 0x0207) AM_READWRITE(pc16le_JOY_r,            pc16le_JOY_w)
r5230r5231
386386   AM_RANGE(0x0000, 0x000f) AM_DEVREADWRITE("dma8237", dma8237_r, dma8237_w)
387387   AM_RANGE(0x0020, 0x0021) AM_DEVREADWRITE("pic8259_master", pic8259_r, pic8259_w)
388388   AM_RANGE(0x0040, 0x0043) AM_DEVREADWRITE("pit8253", pit8253_r, pit8253_w)
389   AM_RANGE(0x0060, 0x0063) AM_DEVREADWRITE("ppi8255", ppi8255_r, ppi8255_w)
389   AM_RANGE(0x0060, 0x0063) AM_DEVREADWRITE("ppi8255", i8255a_r, i8255a_w)
390390   AM_RANGE(0x0080, 0x0087) AM_READWRITE(pc_page_r,            pc_page_w)
391391   AM_RANGE(0x00a0, 0x00a0) AM_READWRITE( pcjr_nmi_enable_r, pc_nmi_enable_w )
392392   AM_RANGE(0x00c0, 0x00c0) AM_DEVWRITE("sn76496",    sn76496_w)
r5230r5231
13631363
13641364   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
13651365
1366   MDRV_PPI8255_ADD( "ppi8255", ibm5160_ppi8255_interface )
1366   MDRV_I8255A_ADD( "ppi8255", ibm5160_ppi8255_interface )
13671367
13681368   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
13691369   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */
r5230r5231
14221422
14231423   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
14241424
1425   MDRV_PPI8255_ADD( "ppi8255", ibm5160_ppi8255_interface )
1425   MDRV_I8255A_ADD( "ppi8255", ibm5160_ppi8255_interface )
14261426
14271427   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
14281428   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */
r5230r5231
14911491
14921492   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
14931493
1494   MDRV_PPI8255_ADD( "ppi8255", ibm5150_ppi8255_interface )
1494   MDRV_I8255A_ADD( "ppi8255", ibm5150_ppi8255_interface )
14951495
14961496   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
14971497   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */
r5230r5231
15511551
15521552   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
15531553
1554   MDRV_PPI8255_ADD( "ppi8255", ibm5160_ppi8255_interface )
1554   MDRV_I8255A_ADD( "ppi8255", ibm5160_ppi8255_interface )
15551555
15561556   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
15571557   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */
r5230r5231
16071607
16081608   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
16091609
1610   MDRV_PPI8255_ADD( "ppi8255", pc_ppi8255_interface )
1610   MDRV_I8255A_ADD( "ppi8255", pc_ppi8255_interface )
16111611
16121612   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
16131613   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */
r5230r5231
16561656
16571657   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
16581658
1659   MDRV_PPI8255_ADD( "ppi8255", ibm5160_ppi8255_interface )
1659   MDRV_I8255A_ADD( "ppi8255", ibm5160_ppi8255_interface )
16601660
16611661   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
16621662   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */
r5230r5231
17121712
17131713   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
17141714
1715   MDRV_PPI8255_ADD( "ppi8255", pc_ppi8255_interface )
1715   MDRV_I8255A_ADD( "ppi8255", pc_ppi8255_interface )
17161716
17171717   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
17181718   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */
r5230r5231
17541754
17551755   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
17561756
1757   MDRV_PPI8255_ADD( "ppi8255", pc_ppi8255_interface )
1757   MDRV_I8255A_ADD( "ppi8255", pc_ppi8255_interface )
17581758
17591759   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
17601760   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */
r5230r5231
17981798
17991799   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
18001800
1801   MDRV_PPI8255_ADD( "ppi8255", pc_ppi8255_interface )
1801   MDRV_I8255A_ADD( "ppi8255", pc_ppi8255_interface )
18021802
18031803   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
18041804   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */
r5230r5231
18421842
18431843   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
18441844
1845   MDRV_PPI8255_ADD( "ppi8255", pc_ppi8255_interface )
1845   MDRV_I8255A_ADD( "ppi8255", pc_ppi8255_interface )
18461846
18471847   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
18481848   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */
r5230r5231
18981898
18991899   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
19001900
1901   MDRV_PPI8255_ADD( "ppi8255", pc_ppi8255_interface )
1901   MDRV_I8255A_ADD( "ppi8255", pc_ppi8255_interface )
19021902
19031903   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
19041904   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */
r5230r5231
19421942
19431943   MDRV_PIC8259_ADD( "pic8259_slave", ibm5150_pic8259_slave_config )
19441944
1945   MDRV_PPI8255_ADD( "ppi8255", pcjr_ppi8255_interface )
1945   MDRV_I8255A_ADD( "ppi8255", pcjr_ppi8255_interface )
19461946
19471947   MDRV_INS8250_ADD( "ins8250_0", ibm5150_com_interface[0] )         /* TODO: Verify model */
19481948   MDRV_INS8250_ADD( "ins8250_1", ibm5150_com_interface[1] )         /* TODO: Verify model */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team