mirror of
https://github.com/holub/mame
synced 2025-06-06 04:43:45 +03:00
sun2_120: Add RTC (nw)
This commit is contained in:
parent
eba66fbab8
commit
b9da76a71b
@ -122,6 +122,7 @@ How the architecture works:
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "machine/ram.h"
|
||||
#include "machine/am9513.h"
|
||||
#include "machine/mm58167.h"
|
||||
#include "machine/z80scc.h"
|
||||
#include "machine/bankdev.h"
|
||||
#include "machine/input_merger.h"
|
||||
@ -522,7 +523,7 @@ static ADDRESS_MAP_START(mbustype1space_map, AS_PROGRAM, 16, sun2_state)
|
||||
// 001800-001fff: Parallel port
|
||||
AM_RANGE(0x002000, 0x0027ff) AM_DEVREADWRITE8(SCC2_TAG, z80scc_device, ba_cd_inv_r, ba_cd_inv_w, 0xff00)
|
||||
AM_RANGE(0x002800, 0x002803) AM_MIRROR(0x7fc) AM_DEVREADWRITE("timer", am9513_device, read16, write16)
|
||||
// 003800-003fff: MM58167 RTC
|
||||
AM_RANGE(0x003800, 0x00383f) AM_MIRROR(0x7c0) AM_DEVREADWRITE8("rtc", mm58167_device, read, write, 0xff00) // 12 wait states generated by PAL16R6 (U415)
|
||||
ADDRESS_MAP_END
|
||||
|
||||
// type 2 device space (Multibus memory space)
|
||||
@ -731,6 +732,8 @@ MACHINE_CONFIG_START(sun2_state::sun2mbus)
|
||||
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(SCC2_TAG, z80scc_device, rxb_w))
|
||||
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(SCC2_TAG, z80scc_device, dcdb_w))
|
||||
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(SCC2_TAG, z80scc_device, ctsb_w))
|
||||
|
||||
MCFG_DEVICE_ADD("rtc", MM58167, XTAL(32'768))
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
/* ROM definition */
|
||||
|
Loading…
Reference in New Issue
Block a user