mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
New skeleton ISA16 device: Joincom JC-1310 FDC [Tronix, minuszerodegrees.net]
This commit is contained in:
parent
7e3fbfca77
commit
35c6f44849
4 changed files with 97 additions and 0 deletions
|
@ -1192,6 +1192,8 @@ if (BUSES["ISA"]~=null) then
|
|||
MAME_DIR .. "src/devices/bus/isa/hdc.h",
|
||||
MAME_DIR .. "src/devices/bus/isa/ibm_mfc.cpp",
|
||||
MAME_DIR .. "src/devices/bus/isa/ibm_mfc.h",
|
||||
MAME_DIR .. "src/devices/bus/isa/jc1310.cpp",
|
||||
MAME_DIR .. "src/devices/bus/isa/jc1310.h",
|
||||
MAME_DIR .. "src/devices/bus/isa/mpu401.cpp",
|
||||
MAME_DIR .. "src/devices/bus/isa/mpu401.h",
|
||||
MAME_DIR .. "src/devices/bus/isa/sblaster.cpp",
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include "wd1007a.h"
|
||||
#include "mcd.h"
|
||||
#include "lbaenhancer.h"
|
||||
#include "jc1310.h"
|
||||
|
||||
// sound
|
||||
#include "adlib.h"
|
||||
|
@ -168,4 +169,5 @@ void pc_isa16_cards(device_slot_interface &device)
|
|||
device.option_add("mcd", ISA16_MCD);
|
||||
device.option_add("sad8852", ISA16_SAD8852);
|
||||
device.option_add("wd1007a", WD1007A);
|
||||
device.option_add("jc1310", JC1310);
|
||||
}
|
||||
|
|
55
src/devices/bus/isa/jc1310.cpp
Normal file
55
src/devices/bus/isa/jc1310.cpp
Normal file
|
@ -0,0 +1,55 @@
|
|||
// license:BSD-3-Clause
|
||||
// copyright-holders:AJR
|
||||
/***************************************************************************
|
||||
|
||||
Joincom Electronic JC-1310 MFM floppy disk controller
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "jc1310.h"
|
||||
|
||||
#include "cpu/mcs51/mcs51.h"
|
||||
|
||||
DEFINE_DEVICE_TYPE(JC1310, isa16_jc1310_device, "jc1310", "Joincom JC-1310 FDC")
|
||||
|
||||
isa16_jc1310_device::isa16_jc1310_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
|
||||
: device_t(mconfig, JC1310, tag, owner, clock)
|
||||
, device_isa16_card_interface(mconfig, *this)
|
||||
, m_fdc(*this, "fdc")
|
||||
{
|
||||
}
|
||||
|
||||
void isa16_jc1310_device::device_start()
|
||||
{
|
||||
}
|
||||
|
||||
void isa16_jc1310_device::prog_map(address_map &map)
|
||||
{
|
||||
map(0x0000, 0x1fff).rom().region("mcu", 0);
|
||||
}
|
||||
|
||||
void isa16_jc1310_device::ext_map(address_map &map)
|
||||
{
|
||||
map(0xc000, 0xc7ff).ram(); // CXK5816PN-10L
|
||||
}
|
||||
|
||||
void isa16_jc1310_device::device_add_mconfig(machine_config &config)
|
||||
{
|
||||
i8031_device &mcu(I8031(config, "mcu", 10_MHz_XTAL)); // P8031AH
|
||||
mcu.set_addrmap(AS_PROGRAM, &isa16_jc1310_device::prog_map);
|
||||
mcu.set_addrmap(AS_IO, &isa16_jc1310_device::ext_map);
|
||||
|
||||
WD37C65C(config, m_fdc, 16_MHz_XTAL); // WD37C65B-PL
|
||||
//m_fdc->set_clock2(9.6_MHz_XTAL);
|
||||
}
|
||||
|
||||
ROM_START(jc1310)
|
||||
ROM_REGION(0x2000, "mcu", 0) // "(C) COPYRIGHT JOINCOM ELECTRONIC CORP. 9/16/1988 JC1310"
|
||||
ROM_LOAD("jc-1310 - apr-c 89.u3", 0x0000, 0x2000, CRC(e044f5e1) SHA1(5a32d2001bb1a489657f9488136b5d621f803703)) // TMS 2764-20JL
|
||||
ROM_END
|
||||
|
||||
const tiny_rom_entry *isa16_jc1310_device::device_rom_region() const
|
||||
{
|
||||
return ROM_NAME(jc1310);
|
||||
}
|
38
src/devices/bus/isa/jc1310.h
Normal file
38
src/devices/bus/isa/jc1310.h
Normal file
|
@ -0,0 +1,38 @@
|
|||
// license:BSD-3-Clause
|
||||
// copyright-holders:AJR
|
||||
/***************************************************************************
|
||||
|
||||
Joincom Electronic JC-1310 MFM floppy disk controller
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MAME_BUS_ISA_JC1310_H
|
||||
#define MAME_BUS_ISA_JC1310_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "isa.h"
|
||||
#include "machine/upd765.h"
|
||||
|
||||
class isa16_jc1310_device : public device_t, public device_isa16_card_interface
|
||||
{
|
||||
public:
|
||||
isa16_jc1310_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
|
||||
|
||||
static constexpr feature_type unemulated_features() { return feature::DISK; }
|
||||
|
||||
protected:
|
||||
virtual void device_add_mconfig(machine_config &config) override;
|
||||
virtual const tiny_rom_entry *device_rom_region() const override;
|
||||
virtual void device_start() override;
|
||||
|
||||
private:
|
||||
void prog_map(address_map &map);
|
||||
void ext_map(address_map &map);
|
||||
|
||||
required_device<wd37c65c_device> m_fdc;
|
||||
};
|
||||
|
||||
DECLARE_DEVICE_TYPE(JC1310, isa16_jc1310_device)
|
||||
|
||||
#endif // MAME_BUS_ISA_JC1310_FDC_H
|
Loading…
Reference in a new issue