mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
pc: add 8251 to epc (nw)
This commit is contained in:
parent
0f1d2011fe
commit
df80390d2b
@ -346,6 +346,7 @@ Misc: A Kaypro 16/2 is a configuration without harddisk but with two floppy disk
|
|||||||
|
|
||||||
#include "emu.h"
|
#include "emu.h"
|
||||||
#include "machine/genpc.h"
|
#include "machine/genpc.h"
|
||||||
|
#include "machine/i8251.h"
|
||||||
#include "cpu/i86/i86.h"
|
#include "cpu/i86/i86.h"
|
||||||
#include "cpu/nec/nec.h"
|
#include "cpu/nec/nec.h"
|
||||||
#include "bus/isa/isa.h"
|
#include "bus/isa/isa.h"
|
||||||
@ -410,6 +411,13 @@ static ADDRESS_MAP_START(ibm5550_io, AS_IO, 16, pc_state )
|
|||||||
AM_RANGE(0x0000, 0x00ff) AM_DEVICE8("mb", ibm5160_mb_device, map, 0xffff)
|
AM_RANGE(0x0000, 0x00ff) AM_DEVICE8("mb", ibm5160_mb_device, map, 0xffff)
|
||||||
ADDRESS_MAP_END
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
|
static ADDRESS_MAP_START(epc_io, AS_IO, 8, pc_state)
|
||||||
|
ADDRESS_MAP_UNMAP_HIGH
|
||||||
|
AM_RANGE(0x0070, 0x0070) AM_DEVREADWRITE("i8251", i8251_device, data_r, data_w)
|
||||||
|
AM_RANGE(0x0071, 0x0071) AM_DEVREADWRITE("i8251", i8251_device, status_r, control_w)
|
||||||
|
AM_RANGE(0x0000, 0x00ff) AM_DEVICE8("mb", ibm5160_mb_device, map, 0xffff)
|
||||||
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
INPUT_CHANGED_MEMBER(pc_state::pc_turbo_callback)
|
INPUT_CHANGED_MEMBER(pc_state::pc_turbo_callback)
|
||||||
{
|
{
|
||||||
m_maincpu->set_clock_scale((newval & 2) ? 1 : m_turbo_off_speed);
|
m_maincpu->set_clock_scale((newval & 2) ? 1 : m_turbo_off_speed);
|
||||||
@ -525,8 +533,11 @@ MACHINE_CONFIG_END
|
|||||||
|
|
||||||
// Ericsson Information System
|
// Ericsson Information System
|
||||||
static MACHINE_CONFIG_DERIVED( epc, pccga )
|
static MACHINE_CONFIG_DERIVED( epc, pccga )
|
||||||
|
MCFG_DEVICE_REMOVE("maincpu")
|
||||||
|
MCFG_CPU_PC(pc8, epc, I8088, 4772720)
|
||||||
MCFG_DEVICE_MODIFY("isa1")
|
MCFG_DEVICE_MODIFY("isa1")
|
||||||
MCFG_SLOT_DEFAULT_OPTION("ega")
|
MCFG_SLOT_DEFAULT_OPTION("ega")
|
||||||
|
MCFG_DEVICE_ADD("i8251", I8251, 0) // clock?
|
||||||
MACHINE_CONFIG_END
|
MACHINE_CONFIG_END
|
||||||
|
|
||||||
static MACHINE_CONFIG_DERIVED( eppc, pccga )
|
static MACHINE_CONFIG_DERIVED( eppc, pccga )
|
||||||
|
Loading…
Reference in New Issue
Block a user