mirror of
https://github.com/holub/mame
synced 2025-07-03 17:08:39 +03:00
(MESS) PP01 : added uart
This commit is contained in:
parent
a984ca3df1
commit
162780bc07
@ -31,12 +31,13 @@ static ADDRESS_MAP_START(pp01_mem, AS_PROGRAM, 8, pp01_state )
|
|||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
static ADDRESS_MAP_START( pp01_io, AS_IO, 8, pp01_state )
|
static ADDRESS_MAP_START( pp01_io, AS_IO, 8, pp01_state )
|
||||||
AM_RANGE(0xc0, 0xc3) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
|
AM_RANGE(0xc0, 0xc3) AM_DEVREADWRITE("ppi8255", i8255_device, read, write) // system
|
||||||
//AM_RANGE(0xc4, 0xc7) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
|
//AM_RANGE(0xc4, 0xc7) AM_DEVREADWRITE("ppi8255", i8255_device, read, write) // user
|
||||||
|
AM_RANGE(0xc8, 0xc8) AM_MIRROR(2) AM_DEVREADWRITE("uart", i8251_device, data_r, data_w)
|
||||||
|
AM_RANGE(0xc9, 0xc9) AM_MIRROR(2) AM_DEVREADWRITE("uart", i8251_device, status_r, control_w)
|
||||||
AM_RANGE(0xcc, 0xcf) AM_WRITE(pp01_video_write_mode_w)
|
AM_RANGE(0xcc, 0xcf) AM_WRITE(pp01_video_write_mode_w)
|
||||||
AM_RANGE(0xd0, 0xd3) AM_DEVREADWRITE("pit8253", pit8253_device, read, write)
|
AM_RANGE(0xd0, 0xd3) AM_DEVREADWRITE("pit8253", pit8253_device, read, write)
|
||||||
AM_RANGE(0xe0, 0xef) AM_READWRITE(pp01_mem_block_r, pp01_mem_block_w)
|
AM_RANGE(0xe0, 0xef) AM_MIRROR(0x10) AM_READWRITE(pp01_mem_block_r, pp01_mem_block_w)
|
||||||
AM_RANGE(0xf0, 0xff) AM_READWRITE(pp01_mem_block_r, pp01_mem_block_w)
|
|
||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
/* Input ports */
|
/* Input ports */
|
||||||
@ -215,6 +216,7 @@ static MACHINE_CONFIG_START( pp01, pp01_state )
|
|||||||
//MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
//MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||||
|
|
||||||
/* Devices */
|
/* Devices */
|
||||||
|
MCFG_I8251_ADD("uart", pp01_uart_intf)
|
||||||
MCFG_PIT8253_ADD( "pit8253", pp01_pit8253_intf )
|
MCFG_PIT8253_ADD( "pit8253", pp01_pit8253_intf )
|
||||||
MCFG_I8255A_ADD( "ppi8255", pp01_ppi8255_interface )
|
MCFG_I8255A_ADD( "ppi8255", pp01_ppi8255_interface )
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#include "emu.h"
|
#include "emu.h"
|
||||||
#include "cpu/i8085/i8085.h"
|
#include "cpu/i8085/i8085.h"
|
||||||
#include "machine/ram.h"
|
#include "machine/ram.h"
|
||||||
//#include "machine/i8251.h"
|
#include "machine/i8251.h"
|
||||||
#include "machine/pit8253.h"
|
#include "machine/pit8253.h"
|
||||||
#include "machine/i8255.h"
|
#include "machine/i8255.h"
|
||||||
#include "sound/speaker.h"
|
#include "sound/speaker.h"
|
||||||
@ -63,6 +63,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
/*----------- defined in machine/pp01.c -----------*/
|
/*----------- defined in machine/pp01.c -----------*/
|
||||||
|
extern const i8251_interface pp01_uart_intf;
|
||||||
extern const struct pit8253_interface pp01_pit8253_intf;
|
extern const struct pit8253_interface pp01_pit8253_intf;
|
||||||
extern const i8255_interface pp01_ppi8255_interface;
|
extern const i8255_interface pp01_ppi8255_interface;
|
||||||
|
|
||||||
|
@ -228,3 +228,17 @@ I8255A_INTERFACE( pp01_ppi8255_interface )
|
|||||||
DEVCB_DRIVER_MEMBER(pp01_state,pp01_8255_portc_r),
|
DEVCB_DRIVER_MEMBER(pp01_state,pp01_8255_portc_r),
|
||||||
DEVCB_DRIVER_MEMBER(pp01_state,pp01_8255_portc_w)
|
DEVCB_DRIVER_MEMBER(pp01_state,pp01_8255_portc_w)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// when rts and dtr are both high, the uart is being used for cassette operations
|
||||||
|
const i8251_interface pp01_uart_intf =
|
||||||
|
{
|
||||||
|
DEVCB_NULL, // in rxd
|
||||||
|
DEVCB_NULL, // out txd
|
||||||
|
DEVCB_NULL, // in dsr
|
||||||
|
DEVCB_NULL, // out dtr
|
||||||
|
DEVCB_NULL, // out rts
|
||||||
|
DEVCB_NULL, // out rxrdy
|
||||||
|
DEVCB_NULL, // out txrdy
|
||||||
|
DEVCB_NULL, // out txempty
|
||||||
|
DEVCB_NULL // out syndet
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user