Previous 199869 Revisions Next

r25464 Monday 30th September, 2013 at 05:26:07 UTC by Robbbert
(MESS) PP01 : added uart
[src/mess/drivers]pp01.c
[src/mess/includes]pp01.h
[src/mess/machine]pp01.c

trunk/src/mess/drivers/pp01.c
r25463r25464
3131ADDRESS_MAP_END
3232
3333static ADDRESS_MAP_START( pp01_io, AS_IO, 8, pp01_state )
34   AM_RANGE(0xc0, 0xc3) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
35   //AM_RANGE(0xc4, 0xc7) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
34   AM_RANGE(0xc0, 0xc3) AM_DEVREADWRITE("ppi8255", i8255_device, read, write) // system
35   //AM_RANGE(0xc4, 0xc7) AM_DEVREADWRITE("ppi8255", i8255_device, read, write) // user
36   AM_RANGE(0xc8, 0xc8) AM_MIRROR(2) AM_DEVREADWRITE("uart", i8251_device, data_r, data_w)
37   AM_RANGE(0xc9, 0xc9) AM_MIRROR(2) AM_DEVREADWRITE("uart", i8251_device, status_r, control_w)
3638   AM_RANGE(0xcc, 0xcf) AM_WRITE(pp01_video_write_mode_w)
3739   AM_RANGE(0xd0, 0xd3) AM_DEVREADWRITE("pit8253", pit8253_device, read, write)
38   AM_RANGE(0xe0, 0xef) AM_READWRITE(pp01_mem_block_r, pp01_mem_block_w)
39   AM_RANGE(0xf0, 0xff) AM_READWRITE(pp01_mem_block_r, pp01_mem_block_w)
40   AM_RANGE(0xe0, 0xef) AM_MIRROR(0x10) AM_READWRITE(pp01_mem_block_r, pp01_mem_block_w)
4041ADDRESS_MAP_END
4142
4243/* Input ports */
r25463r25464
215216   //MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
216217
217218   /* Devices */
219   MCFG_I8251_ADD("uart", pp01_uart_intf)
218220   MCFG_PIT8253_ADD( "pit8253", pp01_pit8253_intf )
219221   MCFG_I8255A_ADD( "ppi8255", pp01_ppi8255_interface )
220222
trunk/src/mess/machine/pp01.c
r25463r25464
228228   DEVCB_DRIVER_MEMBER(pp01_state,pp01_8255_portc_r),
229229   DEVCB_DRIVER_MEMBER(pp01_state,pp01_8255_portc_w)
230230};
231
232// when rts and dtr are both high, the uart is being used for cassette operations
233const i8251_interface pp01_uart_intf =
234{
235   DEVCB_NULL, // in rxd
236   DEVCB_NULL, // out txd
237   DEVCB_NULL, // in dsr
238   DEVCB_NULL, // out dtr
239   DEVCB_NULL, // out rts
240   DEVCB_NULL, // out rxrdy
241   DEVCB_NULL, // out txrdy
242   DEVCB_NULL, // out txempty
243   DEVCB_NULL  // out syndet
244};
trunk/src/mess/includes/pp01.h
r25463r25464
1010#include "emu.h"
1111#include "cpu/i8085/i8085.h"
1212#include "machine/ram.h"
13//#include "machine/i8251.h"
13#include "machine/i8251.h"
1414#include "machine/pit8253.h"
1515#include "machine/i8255.h"
1616#include "sound/speaker.h"
r25463r25464
6363
6464
6565/*----------- defined in machine/pp01.c -----------*/
66extern const i8251_interface pp01_uart_intf;
6667extern const struct pit8253_interface pp01_pit8253_intf;
6768extern const i8255_interface pp01_ppi8255_interface;
6869

Previous 199869 Revisions Next


© 1997-2024 The MAME Team