diff options
Diffstat (limited to 'src/mame/drivers/fidel_eag68k.cpp')
-rw-r--r-- | src/mame/drivers/fidel_eag68k.cpp | 849 |
1 files changed, 0 insertions, 849 deletions
diff --git a/src/mame/drivers/fidel_eag68k.cpp b/src/mame/drivers/fidel_eag68k.cpp deleted file mode 100644 index 333d2f28136..00000000000 --- a/src/mame/drivers/fidel_eag68k.cpp +++ /dev/null @@ -1,849 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:hap -// thanks-to:Berger, yoyo_chessboard -/****************************************************************************** - -Fidelity 68000-based Elite Avant Garde driver -For 6502-based EAG, see fidel_elite.cpp - -Excel 68000 I/O is very similar to EAG, so it's handled in this driver as well - -TODO: -- unemulated waitstates with DTACK -- EAG USART is not emulated -- V10 CPU emulation is too slow, MAME 68040 opcode timing is same as 68030 but in - reality it is much faster, same goes for V11 of course (see note below) -- V11 CPU should be M68EC060, not yet emulated. Now using M68EC040 in its place -- V11 beeper is too high pitched, related to wrong CPU type too? - maybe waitstates or clock divider on I/O access. - -Currently(May 2020) when compared to the real chesscomputers, to get closer to the -actual speed, overclock V10 and V11 to 230%. This can be done by starting MAME -with the -cheat option and going to the Slider Controls menu, hold Ctrl and press -Right to overclock maincpu. - -******************************************************************************* - -Excel 68000 (model 6094) overview: -- 16KB RAM(2*SRM2264C-10 @ U8/U9), 64KB ROM(2*AT27C256-15DC @ U6/U7) -- HD68HC000P12 CPU, 12MHz XTAL -- PCB label 510-1129A01 -- PCB has edge connector for module, but no external slot - -There's room for 2 SIMMs at U22 and U23, unpopulated in Excel 68000 and Mach III. -Mach II has 2*64KB DRAM with a MB1422A DRAM controller @ 25MHz. -Mach III has wire mods from U22/U23 to U8/U9(2*8KB + 2*32KB piggybacked). -Mach IV has 2*256KB DRAM, and a daughterboard(510.1123B01) for the 68020 + 32KB RAM. - -I/O is via TTL, overall very similar to EAG. - -fex68km4 continuously tests RAM at boot and displays "512", this is normal. -To start, hold New Game or Clear. - -******************************************************************************* - -Elite Avant Garde (EAG, model 6114) ------------------------------------ - -There are 5 versions of model 6114(V1 to V5): - -V1: 128KB DRAM, no EEPROM -V2: 128KB DRAM -V3: 512KB DRAM -V4: 1MB DRAM -V5: 128KB+16KB DRAM, dual-CPU! (2*68K @ 16MHz) - -V6-V11 are on model 6117. Older 1986 model 6081/6088/6089 uses a 6502 CPU. - -Hardware info: --------------- -- MC68HC000P12F 16MHz CPU, 16MHz XTAL -- MB1422A DRAM Controller, 25MHz XTAL near, 4 DRAM slots - (V2: slot 2 & 3 64KB, V3: slot 2 & 3 256KB) -- 2*27C512 64KB EPROM, 2*KM6264AL-10 8KB SRAM, 2*AT28C64X 8KB EEPROM -- OKI M82C51A-2 USART, 4.9152MHz XTAL -- other special: magnet sensors, external module slot, serial port - -IRQ source is a 4,9152MHz quartz crystal (Y3) connected to a 74HC4060 (U8, -ripple counter/divider). From Q13 output (counter=8192) we obtain the IRQ signal -applied to IPL1 of 68000 (pin 24) 4,9152 MHz / 8192 = 600 Hz. - -The module slot pinout is different from SCC series. The data on those appears -to be compatible with EAG though and will load fine with an adapter. - -The USART allows for a serial connection between the chess computer and another -device, for example a PC. Fidelity released a DOS tool called EAGLINK which -featured PC printer support, complete I/O control, detailed information while -the program is 'thinking', etc. - -Memory map: (of what is known) ------------ -000000-01FFFF: 128KB ROM -104000-107FFF: 16KB SRAM -200000-2FFFFF: hashtable DRAM (max. 1MB) -300000-30000F W hi d0: NE591: 7seg data -300000-30000F W lo d0: NE591: LED data -300000-30000F R lo d7: 74259: keypad rows 0-7 -400000-400007 W lo d0: 74259,74145/7442: led/keypad mux, buzzer out -400000-4????? R hi: external module slot -700002-700003 R lo d7: 74251: keypad row 8 -604000-607FFF: 16KB EEPROM - -******************************************************************************* - -Elite Avant Garde (EAG, model 6117) ------------------------------------ - -There are 6 versions of model 6117(V6 to V11). From a programmer's point of view, -the hardware is very similar to model 6114. - -V6: 68020, 512KB hashtable RAM -V7: 68020, 1MB h.RAM -V8: 2*68020, 512KB+128KB h.RAM -V9: 68030, 1MB h.RAM -V10: 68040, 1MB h.RAM -V11: 68060, 2MB h.RAM, high speed - -V7 Hardware info: ------------------ -- MC68020RC25E CPU, 25MHz XTAL - this PCB was overclocked, original was 20MHz so let's use that -- 4*AS7C164-20PC 8KB SRAM, 2*KM684000ALG-7L 512KB CMOS SRAM -- 2*27C512? 64KB EPROM, 2*HM6264LP-15 8KB SRAM, 2*AT28C64B 8KB EEPROM, 2*GAL16V8C -- same as 6114: M82C51A, NE555, SN74HC4060, module slot, chessboard, .. - -V7 Memory map: --------------- -000000-01FFFF: 128KB ROM -104000-107FFF: 16KB SRAM (unused?) -200000-2FFFFF: hashtable SRAM -300000-30000x: see model 6114 -400000-40000x: see model 6114 -700000-70000x: see model 6114 -604000-607FFF: 16KB EEPROM -800000-807FFF: 32KB SRAM - -V10 Hardware info: ------------------- -- 68040 CPU, 25MHz -- other: assume same or very similar to V11(see below) - -The ROM dump came from the V11(see below). Built-in factory test proves -that this program is a V10. Hold TB button immediately after power-on and -press it for a sequence of tests: -1) all LEDs on -2) F40C: V10 program version -3) 38b9: V10 ROM checksum -4) xxxx: external module ROM checksum (0000 if no module present) -5) xxxx: user settings (stored in EEPROM) -6) xxxx: " -7) 1024: hashtable RAM size -8) return to game - -V11 Hardware info: ------------------- -- MC68EC060RC75 CPU, 36MHz XTAL(36MHz bus, 72MHz CPU), CPU cooler required -- 4*CXK5863AP-20 8KB SRAM, 4*K6X4008C1F-DF55 512KB CMOS SRAM -- 4*M27C256B 32KB EPROM, 2*AT28C64 8KB EEPROM, 5*GAL16V8D -- NEC D71051C USART, assume 8MHz, on quick glance it's same as the OKI USART -- same as 6114: NE555, SN74HC4060, module slot, chessboard, .. - -This is a custom overclocked V10, manufactured by Wilfried Bucke. PCB is marked: -"CHESS HW DESIGN COPYRIGHT 22-10-2002: REVA03 510.1136A01/510.1144B01 COMPONENT SIDE" -There are two versions of this, one with a 66MHz CPU, one with a 72MHz CPU. -Maybe other differences too? - -V1x Memory map: ---------------- -000000-01FFFF: 128KB ROM -200000-3FFFFF: hashtable SRAM (less on V10?) -B0000x-xxxxxx: see V7, -800000 - -******************************************************************************/ - -#include "emu.h" - -#include "bus/generic/slot.h" -#include "bus/generic/carts.h" -#include "cpu/m68000/m68000.h" -#include "machine/gen_latch.h" -#include "machine/ram.h" -#include "machine/nvram.h" -#include "machine/timer.h" -#include "machine/sensorboard.h" -#include "sound/dac.h" -#include "video/pwm.h" - -#include "softlist.h" -#include "speaker.h" - -// internal artwork -#include "fidel_ex_68k.lh" // clickable -#include "fidel_eag_68k.lh" // clickable - - -namespace { - -// EAG / shared - -class eag_state : public driver_device -{ -public: - eag_state(const machine_config &mconfig, device_type type, const char *tag) : - driver_device(mconfig, type, tag), - m_maincpu(*this, "maincpu"), - m_irq_on(*this, "irq_on"), - m_ram(*this, "ram"), - m_board(*this, "board"), - m_display(*this, "display"), - m_dac(*this, "dac"), - m_inputs(*this, "IN.%u", 0), - m_rotate(true) - { } - - // machine configs - void eagv2(machine_config &config); - void eagv3(machine_config &config); - void eagv5(machine_config &config); - void eagv7(machine_config &config); - void eagv9(machine_config &config); - void eagv10(machine_config &config); - void eagv11(machine_config &config); - - void init_eag(); - -protected: - virtual void machine_start() override; - void eag_base(machine_config &config); - - // devices/pointers - required_device<m68000_base_device> m_maincpu; - optional_device<timer_device> m_irq_on; - optional_device<ram_device> m_ram; - required_device<sensorboard_device> m_board; - required_device<pwm_display_device> m_display; - required_device<dac_bit_interface> m_dac; - optional_ioport_array<2> m_inputs; - - // address maps - void eag_map(address_map &map); - void eagv7_map(address_map &map); - void eagv10_map(address_map &map); - - // periodic interrupts - template<int Line> TIMER_DEVICE_CALLBACK_MEMBER(irq_on) { m_maincpu->set_input_line(Line, ASSERT_LINE); } - template<int Line> TIMER_DEVICE_CALLBACK_MEMBER(irq_off) { m_maincpu->set_input_line(Line, CLEAR_LINE); } - - // I/O handlers - void update_display(); - virtual void mux_w(offs_t offset, u8 data); - u8 input1_r(offs_t offset); - u8 input2_r(); - void leds_w(offs_t offset, u8 data); - void digit_w(offs_t offset, u8 data); - - bool m_rotate; - u8 m_select = 0; - u8 m_7seg_data = 0; - u8 m_led_data = 0; -}; - -void eag_state::machine_start() -{ - // register for savestates - save_item(NAME(m_select)); - save_item(NAME(m_7seg_data)); - save_item(NAME(m_led_data)); -} - -// EAG V5 - -class eagv5_state : public eag_state -{ -public: - eagv5_state(const machine_config &mconfig, device_type type, const char *tag) : - eag_state(mconfig, type, tag), - m_subcpu(*this, "subcpu"), - m_mainlatch(*this, "mainlatch"), - m_sublatch(*this, "sublatch") - { } - - // machine configs - void eagv5(machine_config &config); - -private: - // devices/pointers - required_device<cpu_device> m_subcpu; - required_device<generic_latch_8_device> m_mainlatch; - required_device<generic_latch_8_device> m_sublatch; - - // address maps - void main_map(address_map &map); - void sub_map(address_map &map); - - // I/O handlers - void reset_subcpu_w(u8 data); - u8 main_ack_r(); - u8 sub_ack_r(); -}; - -// Excel 68000 - -class excel68k_state : public eag_state -{ -public: - excel68k_state(const machine_config &mconfig, device_type type, const char *tag) : - eag_state(mconfig, type, tag) - { - m_rotate = false; - } - - // machine configs - void fex68k(machine_config &config); - void fex68km2(machine_config &config); - void fex68km3(machine_config &config); - void fex68km4(machine_config &config); - -private: - // address maps - void fex68k_map(address_map &map); - void fex68km2_map(address_map &map); - void fex68km3_map(address_map &map); - void fex68km4_map(address_map &map); -}; - - - -/****************************************************************************** - I/O -******************************************************************************/ - -// TTL/generic - -void eag_state::update_display() -{ - // Excel 68000: 4*7seg leds, 8*8 chessboard leds - // EAG: 8*7seg leds(2 panels), (8+1)*8 chessboard leds - u8 seg_data = bitswap<8>(m_7seg_data,0,1,3,2,7,5,6,4); - m_display->matrix(1 << m_select, m_led_data << 8 | seg_data); -} - -void eag_state::mux_w(offs_t offset, u8 data) -{ - // a1-a3,d0: 74259 - u8 mask = 1 << offset; - m_select = (m_select & ~mask) | ((data & 1) ? mask : 0); - - // 74259 Q0-Q3: 74145 A-D (Q4-Q7 N/C) - m_select &= 0xf; - - // 74145 0-8: input mux, digit/led select - // 74145 9: speaker out - m_dac->write(BIT(1 << m_select, 9)); - update_display(); -} - -u8 eag_state::input1_r(offs_t offset) -{ - u8 data = 0; - - // a1-a3,d7: multiplexed inputs (active low) - // read chessboard sensors - if (m_select < 8) - { - // EAG chessboard is rotated 90 degrees - if (m_rotate) - data = m_board->read_rank(m_select, true); - else - data = m_board->read_file(m_select); - } - - // read button panel - else if (m_select == 8) - data = m_inputs[0]->read(); - - return (data >> offset & 1) ? 0 : 0x80; -} - -u8 eag_state::input2_r() -{ - // d7: 3 more buttons on EAG - return (BIT(m_inputs[1]->read(), m_select)) ? 0x80 : 0; -} - -void eag_state::leds_w(offs_t offset, u8 data) -{ - // a1-a3,d0: led data - m_led_data = (m_led_data & ~(1 << offset)) | ((data & 1) << offset); - update_display(); -} - -void eag_state::digit_w(offs_t offset, u8 data) -{ - // a1-a3,d0(d8): digit segment data - m_7seg_data = (m_7seg_data & ~(1 << offset)) | ((data & 1) << offset); - update_display(); -} - - -// EAG V5 - -void eagv5_state::reset_subcpu_w(u8 data) -{ - // reset subcpu, from trigger to monostable 555 (R1=47K, C1=1uF) - m_subcpu->pulse_input_line(INPUT_LINE_RESET, attotime::from_msec(52)); -} - -u8 eagv5_state::main_ack_r() -{ - // d8,d9: latches ack state - return (m_mainlatch->pending_r() << 1 ^ 2) | m_sublatch->pending_r(); -} - -u8 eagv5_state::sub_ack_r() -{ - // d8,d9: latches ack state - return (m_sublatch->pending_r() << 1 ^ 2) | m_mainlatch->pending_r(); -} - - - -/****************************************************************************** - Address Maps -******************************************************************************/ - -// Excel 68000 - -void excel68k_state::fex68k_map(address_map &map) -{ - map(0x000000, 0x00ffff).rom(); - map(0x000000, 0x00000f).mirror(0x00fff0).w(FUNC(excel68k_state::leds_w)).umask16(0x00ff); - map(0x000000, 0x00000f).mirror(0x00fff0).w(FUNC(excel68k_state::digit_w)).umask16(0xff00); - map(0x044000, 0x047fff).ram(); - map(0x100000, 0x10000f).mirror(0x03fff0).r(FUNC(excel68k_state::input1_r)).umask16(0x00ff); - map(0x140000, 0x14000f).mirror(0x03fff0).w(FUNC(excel68k_state::mux_w)).umask16(0x00ff); -} - -void excel68k_state::fex68km2_map(address_map &map) -{ - fex68k_map(map); - map(0x200000, 0x21ffff).ram(); -} - -void excel68k_state::fex68km3_map(address_map &map) -{ - fex68k_map(map); - map(0x200000, 0x20ffff).ram(); -} - -void excel68k_state::fex68km4_map(address_map &map) -{ - map(0x00000000, 0x0000ffff).rom(); - map(0x00000000, 0x0000000f).mirror(0x00fff0).w(FUNC(excel68k_state::leds_w)).umask32(0x00ff00ff); - map(0x00000000, 0x0000000f).mirror(0x00fff0).w(FUNC(excel68k_state::digit_w)).umask32(0xff00ff00); - map(0x00044000, 0x00047fff).ram(); // unused? - map(0x00100000, 0x0010000f).mirror(0x03fff0).r(FUNC(excel68k_state::input1_r)).umask32(0x00ff00ff); - map(0x00140000, 0x0014000f).mirror(0x03fff0).w(FUNC(excel68k_state::mux_w)).umask32(0x00ff00ff); - map(0x00200000, 0x0027ffff).ram(); - map(0x00400000, 0x00407fff).ram(); -} - - -// EAG - -void eag_state::init_eag() -{ - // eag_map: DRAM slots at $200000-$2fffff - V1/V2/V5: 128K, V3: 512K, V4: 1M - m_maincpu->space(AS_PROGRAM).install_ram(0x200000, 0x200000 + m_ram->size() - 1, m_ram->pointer()); -} - -void eag_state::eag_map(address_map &map) -{ - map(0x000000, 0x01ffff).rom(); - map(0x104000, 0x107fff).ram(); - map(0x300000, 0x30000f).mirror(0x000010).w(FUNC(eag_state::digit_w)).umask16(0xff00).nopr(); - map(0x300000, 0x30000f).mirror(0x000010).rw(FUNC(eag_state::input1_r), FUNC(eag_state::leds_w)).umask16(0x00ff); - map(0x400000, 0x400007).w(FUNC(eag_state::mux_w)).umask16(0x00ff); - map(0x400000, 0x407fff).r("cartslot", FUNC(generic_slot_device::read_rom)).umask16(0xff00); - map(0x604000, 0x607fff).ram().share("nvram"); - map(0x700003, 0x700003).r(FUNC(eag_state::input2_r)); -} - -void eagv5_state::main_map(address_map &map) -{ - eag_map(map); - map(0x500000, 0x500000).r(m_sublatch, FUNC(generic_latch_8_device::read)).w(m_mainlatch, FUNC(generic_latch_8_device::write)); - map(0x500002, 0x500002).rw(FUNC(eagv5_state::main_ack_r), FUNC(eagv5_state::reset_subcpu_w)); -} - -void eagv5_state::sub_map(address_map &map) -{ - map(0x000000, 0x00ffff).rom(); - map(0x000001, 0x000001).mirror(0x00fffe).w(m_sublatch, FUNC(generic_latch_8_device::write)); - map(0x044000, 0x047fff).ram(); - map(0x140000, 0x140000).r(FUNC(eagv5_state::sub_ack_r)); - map(0x140001, 0x140001).r(m_mainlatch, FUNC(generic_latch_8_device::read)); -} - -void eag_state::eagv7_map(address_map &map) -{ - map(0x000000, 0x01ffff).rom(); - map(0x104000, 0x107fff).ram(); - map(0x200000, 0x2fffff).ram(); - map(0x300000, 0x30000f).mirror(0x000010).w(FUNC(eag_state::digit_w)).umask32(0xff00ff00).nopr(); - map(0x300000, 0x30000f).mirror(0x000010).rw(FUNC(eag_state::input1_r), FUNC(eag_state::leds_w)).umask32(0x00ff00ff); - map(0x400000, 0x400007).w(FUNC(eag_state::mux_w)).umask32(0x00ff00ff); - map(0x400000, 0x407fff).r("cartslot", FUNC(generic_slot_device::read_rom)).umask32(0xff00ff00); - map(0x604000, 0x607fff).ram().share("nvram"); - map(0x700003, 0x700003).r(FUNC(eag_state::input2_r)); - map(0x800000, 0x807fff).ram(); -} - -void eag_state::eagv10_map(address_map &map) -{ - map(0x00000000, 0x0001ffff).rom(); - map(0x00200000, 0x003fffff).ram(); - map(0x00b00000, 0x00b0000f).mirror(0x00000010).w(FUNC(eag_state::digit_w)).umask32(0xff00ff00).nopr(); - map(0x00b00000, 0x00b0000f).mirror(0x00000010).rw(FUNC(eag_state::input1_r), FUNC(eag_state::leds_w)).umask32(0x00ff00ff); - map(0x00c00000, 0x00c00007).w(FUNC(eag_state::mux_w)).umask32(0x00ff00ff); - map(0x00c00000, 0x00c07fff).r("cartslot", FUNC(generic_slot_device::read_rom)).umask32(0xff00ff00); - map(0x00e04000, 0x00e07fff).ram().share("nvram"); - map(0x00f00003, 0x00f00003).r(FUNC(eag_state::input2_r)); - map(0x01000000, 0x0101ffff).ram(); -} - - - -/****************************************************************************** - Input Ports -******************************************************************************/ - -static INPUT_PORTS_START( excel68k ) - PORT_START("IN.0") - PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_DEL) PORT_NAME("Clear") - PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_NAME("Move / Pawn") - PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD) PORT_NAME("Hint / Knight") - PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD) PORT_NAME("Take Back / Bishop") - PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD) PORT_NAME("Level / Rook") - PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_NAME("Options / Queen") - PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_NAME("Verify / King") - PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) PORT_CODE(KEYCODE_N) PORT_NAME("New Game") -INPUT_PORTS_END - -static INPUT_PORTS_START( eag ) - PORT_START("IN.0") - PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_6) PORT_CODE(KEYCODE_6_PAD) PORT_NAME("PB / King") - PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_5) PORT_CODE(KEYCODE_5_PAD) PORT_NAME("PV / Queen") - PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_4) PORT_CODE(KEYCODE_4_PAD) PORT_NAME("TM / Rook") - PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_3) PORT_CODE(KEYCODE_3_PAD) PORT_NAME("ST / Bishop") - PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_2) PORT_CODE(KEYCODE_2_PAD) PORT_NAME("TB / Knight") - PORT_BIT(0x20, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_1) PORT_CODE(KEYCODE_1_PAD) PORT_NAME("LV / Pawn") - PORT_BIT(0x40, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_O) PORT_NAME("Option") - PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_V) PORT_NAME("RV") - - PORT_START("IN.1") - PORT_BIT(0x01, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_DEL) PORT_NAME("CL") - PORT_BIT(0x02, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_M) PORT_NAME("DM") - PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYPAD) PORT_CODE(KEYCODE_R) PORT_CODE(KEYCODE_N) PORT_NAME("New Game") -INPUT_PORTS_END - - - -/****************************************************************************** - Machine Configs -******************************************************************************/ - -void excel68k_state::fex68k(machine_config &config) -{ - /* basic machine hardware */ - M68000(config, m_maincpu, 12_MHz_XTAL); // HD68HC000P12 - m_maincpu->set_addrmap(AS_PROGRAM, &excel68k_state::fex68k_map); - - const attotime irq_period = attotime::from_hz(600); // 556 timer (22nF, 91K + 20K POT @ 14.8K, 0.1K), ideal is 600Hz (measured 580Hz, 604Hz, 632Hz) - TIMER(config, m_irq_on).configure_periodic(FUNC(excel68k_state::irq_on<M68K_IRQ_2>), irq_period); - m_irq_on->set_start_delay(irq_period - attotime::from_nsec(1525)); // active for 1.525us - TIMER(config, "irq_off").configure_periodic(FUNC(excel68k_state::irq_off<M68K_IRQ_2>), irq_period); - - SENSORBOARD(config, m_board).set_type(sensorboard_device::BUTTONS); - m_board->init_cb().set(m_board, FUNC(sensorboard_device::preset_chess)); - m_board->set_delay(attotime::from_msec(150)); - - /* video hardware */ - PWM_DISPLAY(config, m_display).set_size(8, 16); - m_display->set_segmask(0x55, 0x7f); - config.set_default_layout(layout_fidel_ex_68k); - - /* sound hardware */ - SPEAKER(config, "speaker").front_center(); - DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); -} - -void excel68k_state::fex68km2(machine_config &config) -{ - fex68k(config); - - /* basic machine hardware */ - m_maincpu->set_addrmap(AS_PROGRAM, &excel68k_state::fex68km2_map); -} - -void excel68k_state::fex68km3(machine_config &config) -{ - fex68k(config); - - /* basic machine hardware */ - m_maincpu->set_clock(16_MHz_XTAL); // factory overclock - m_maincpu->set_addrmap(AS_PROGRAM, &excel68k_state::fex68km3_map); -} - -void excel68k_state::fex68km4(machine_config &config) -{ - fex68k(config); - - /* basic machine hardware */ - M68020(config.replace(), m_maincpu, 20_MHz_XTAL); // XC68020RC16 or MC68020RC20E - m_maincpu->set_addrmap(AS_PROGRAM, &excel68k_state::fex68km4_map); - - m_irq_on->set_start_delay(attotime::from_hz(600) - attotime::from_usec(10)); // irq active for 10us -} - -void eag_state::eag_base(machine_config &config) -{ - /* basic machine hardware */ - M68000(config, m_maincpu, 16_MHz_XTAL); - m_maincpu->disable_interrupt_mixer(); - m_maincpu->set_addrmap(AS_PROGRAM, &eag_state::eag_map); - - const attotime irq_period = attotime::from_hz(4.9152_MHz_XTAL/0x2000); // 4060 Q13, 600Hz - TIMER(config, m_irq_on).configure_periodic(FUNC(eag_state::irq_on<M68K_IRQ_IPL1>), irq_period); - m_irq_on->set_start_delay(irq_period - attotime::from_nsec(8250)); // active for 8.25us - TIMER(config, "irq_off").configure_periodic(FUNC(eag_state::irq_off<M68K_IRQ_IPL1>), irq_period); - - NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1); - - SENSORBOARD(config, m_board).set_type(sensorboard_device::MAGNETS); - m_board->init_cb().set(m_board, FUNC(sensorboard_device::preset_chess)); - m_board->set_delay(attotime::from_msec(150)); - - /* video hardware */ - PWM_DISPLAY(config, m_display).set_size(9, 16); - m_display->set_segmask(0x1ef, 0x7f); - config.set_default_layout(layout_fidel_eag_68k); - - /* sound hardware */ - SPEAKER(config, "speaker").front_center(); - DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); - - /* cartridge */ - GENERIC_CARTSLOT(config, "cartslot", generic_plain_slot, "fidel_scc"); - SOFTWARE_LIST(config, "cart_list").set_original("fidel_scc"); -} - -void eag_state::eagv2(machine_config &config) -{ - eag_base(config); - - /* basic machine hardware */ - RAM(config, m_ram).set_extra_options("128K, 512K, 1M"); - m_ram->set_default_size("128K"); - m_ram->set_default_value(0); -} - -void eag_state::eagv3(machine_config &config) -{ - eagv2(config); - - /* basic machine hardware */ - m_ram->set_default_size("512K"); -} - -void eagv5_state::eagv5(machine_config &config) -{ - eagv2(config); - - /* basic machine hardware */ - m_maincpu->set_addrmap(AS_PROGRAM, &eagv5_state::main_map); - - M68000(config, m_subcpu, 16_MHz_XTAL); - m_subcpu->set_addrmap(AS_PROGRAM, &eagv5_state::sub_map); - m_subcpu->set_periodic_int(FUNC(eagv5_state::irq2_line_hold), attotime::from_hz(16_MHz_XTAL/0x4000)); // 4060 Q14, ~1kHz - - GENERIC_LATCH_8(config, m_mainlatch); - GENERIC_LATCH_8(config, m_sublatch); - m_sublatch->data_pending_callback().set_inputline(m_maincpu, M68K_IRQ_IPL0); - - // gen_latch syncs on write, but this is still needed with tight cpu comms - // (not that it locks up or anything, but it will calculate moves much slower if timing is off) - config.set_perfect_quantum(m_maincpu); -} - -void eag_state::eagv7(machine_config &config) -{ - eag_base(config); - - /* basic machine hardware */ - M68020(config.replace(), m_maincpu, 20_MHz_XTAL); // also seen with 25MHz XTAL - m_maincpu->disable_interrupt_mixer(); - m_maincpu->set_addrmap(AS_PROGRAM, &eag_state::eagv7_map); -} - -void eag_state::eagv9(machine_config &config) -{ - eagv7(config); - - /* basic machine hardware */ - M68030(config.replace(), m_maincpu, 32_MHz_XTAL); // also seen with 40MHz XTAL - m_maincpu->disable_interrupt_mixer(); - m_maincpu->set_addrmap(AS_PROGRAM, &eag_state::eagv7_map); -} - -void eag_state::eagv10(machine_config &config) -{ - eagv7(config); - - /* basic machine hardware */ - M68040(config.replace(), m_maincpu, 25_MHz_XTAL); - m_maincpu->disable_interrupt_mixer(); - m_maincpu->set_addrmap(AS_PROGRAM, &eag_state::eagv10_map); -} - -void eag_state::eagv11(machine_config &config) -{ - eagv7(config); - - /* basic machine hardware */ - M68EC040(config.replace(), m_maincpu, 36_MHz_XTAL*2); // wrong! should be M68EC060 - m_maincpu->set_addrmap(AS_PROGRAM, &eag_state::eagv10_map); - m_maincpu->set_periodic_int(FUNC(eag_state::irq2_line_hold), attotime::from_hz(600)); - - config.device_remove("irq_on"); // 8.25us is too long - config.device_remove("irq_off"); -} - - - -/****************************************************************************** - ROM Definitions -******************************************************************************/ - -ROM_START( fex68k ) // model 6094, PCB label 510.1120B01 - ROM_REGION16_BE( 0x10000, "maincpu", 0 ) - ROM_LOAD16_BYTE("e3_yellow.u6", 0x00000, 0x08000, CRC(a8a27714) SHA1(bc42a561eb39dd389c7831f1a25ad260510085d8) ) // AT27C256-15 - ROM_LOAD16_BYTE("o4_red.u7", 0x00001, 0x08000, CRC(560a14b7) SHA1(11f2375255bfa229314697f103e891ba1cf0c715) ) // " -ROM_END - -ROM_START( fex68ka ) - ROM_REGION16_BE( 0x10000, "maincpu", 0 ) - ROM_LOAD16_BYTE("e3_yellow.u6", 0x00000, 0x08000, CRC(7dc60d05) SHA1(e47b4d4e64c4cac6c5a94a900c9f2dd017f849ce) ) - ROM_LOAD16_BYTE("o4_red.u7", 0x00001, 0x08000, CRC(4b738583) SHA1(ff506296ea460c7ed852339d2ab24aaae01730d8) ) -ROM_END - -ROM_START( fex68kb ) - ROM_REGION16_BE( 0x10000, "maincpu", 0 ) - ROM_LOAD16_BYTE("e3_yellow.u6", 0x00000, 0x08000, CRC(d9f252f5) SHA1(205cdbadb58a4cdd486d4e40d2fe6a5209d2f8a4) ) - ROM_LOAD16_BYTE("o4_red.u7", 0x00001, 0x08000, CRC(3bf8b3d7) SHA1(6ce419c63159501d2349abfd1e142e38e5466fbc) ) -ROM_END - -ROM_START( fex68km2 ) // model 6097, PCB label 510.1120B01 - ROM_REGION16_BE( 0x10000, "maincpu", 0 ) - ROM_LOAD16_BYTE("e6_yellow.u6", 0x00000, 0x08000, CRC(2e65e7ad) SHA1(4f3aec12041c9014d5d700909bac66bae1f9eadf) ) // 27c256 - ROM_LOAD16_BYTE("o7_red.u7", 0x00001, 0x08000, CRC(4c20334a) SHA1(2e575b88c41505cc89599d2fc13e1e84fe474469) ) // " -ROM_END - -ROM_START( fex68km2a ) // model 6097, PCB label 510.1120B01 - ROM_REGION16_BE( 0x10000, "maincpu", 0 ) - ROM_LOAD16_BYTE("e7_yellow.u6", 0x00000, 0x08000, CRC(7c88f53b) SHA1(80fdeed90f1388053110c3bc385bc50c2884b11a) ) // 27c256 - ROM_LOAD16_BYTE("o8_red.u7", 0x00001, 0x08000, CRC(26da3424) SHA1(e0cec467bf1249ce89a27c45f5013859e6581ecd) ) // " -ROM_END - -ROM_START( fex68km3 ) // model 6098, PCB label 510.1120B01 - ROM_REGION16_BE( 0x10000, "maincpu", 0 ) - ROM_LOAD16_BYTE("me_white.u6", 0x00000, 0x08000, CRC(4b14cd9f) SHA1(4d41196900a71bf0699dae50f4726acc0ed3dced) ) // 27c256 - ROM_LOAD16_BYTE("mo_yellow.u7", 0x00001, 0x08000, CRC(b96b0b5f) SHA1(281145be802efb38ed764aecb26b511dcd71cb87) ) // " -ROM_END - -ROM_START( fex68km4 ) // model 6110, PCB label 510.1120B01 - ROM_REGION( 0x10000, "maincpu", 0 ) - ROM_LOAD16_BYTE("68020_even_master_2325.u6", 0x00000, 0x08000, CRC(13ea816c) SHA1(98d00fc382ddcbccb0a47c3f8d7fc73f30a15fbd) ) - ROM_LOAD16_BYTE("68020_odd_master_2325.u7", 0x00001, 0x08000, CRC(d24c7b54) SHA1(3204fd600786792a618965715990c44890cc7119) ) -ROM_END - - -ROM_START( feagv2 ) - ROM_REGION16_BE( 0x20000, "maincpu", 0 ) - ROM_LOAD16_BYTE("6114_e5_yellow.u22", 0x00000, 0x10000, CRC(f9c7bada) SHA1(60e545f829121b9a4f1100d9e85ac83797715e80) ) // 27c512 - ROM_LOAD16_BYTE("6114_o5_green.u19", 0x00001, 0x10000, CRC(04f97b22) SHA1(8b2845dd115498f7b385e8948eca6a5893c223d1) ) // " -ROM_END - -ROM_START( feagv3 ) - ROM_REGION16_BE( 0x20000, "maincpu", 0 ) - ROM_LOAD16_BYTE("elite_1.6_e.u22", 0x00000, 0x10000, CRC(c8b89ccc) SHA1(d62e0a72f54b793ab8853468a81255b62f874658) ) - ROM_LOAD16_BYTE("elite_1.6_o.u19", 0x00001, 0x10000, CRC(904c7061) SHA1(742110576cf673321440bc81a4dae4c949b49e38) ) -ROM_END - -ROM_START( feagv5 ) - ROM_REGION16_BE( 0x20000, "maincpu", 0 ) // PCB label 510.1136A01 - ROM_LOAD16_BYTE("master_e", 0x00000, 0x10000, CRC(e424bddc) SHA1(ff03656addfe5c47f06df2efb4602f43a9e19d96) ) - ROM_LOAD16_BYTE("master_o", 0x00001, 0x10000, CRC(33a00894) SHA1(849460332b1ac10d452ca3631eb99f5597511b73) ) - - ROM_REGION16_BE( 0x10000, "subcpu", 0 ) // PCB label 510.1138B01 - ROM_LOAD16_BYTE("slave_e", 0x00000, 0x08000, CRC(eea4de52) SHA1(a64ca8a44b431e2fa7f00e44cab7e6aa2d4a9403) ) - ROM_LOAD16_BYTE("slave_o", 0x00001, 0x08000, CRC(35fe2fdf) SHA1(731da12ee290bad9bc03cffe281c8cc48e555dfb) ) -ROM_END - -ROM_START( feagv7 ) - ROM_REGION( 0x20000, "maincpu", 0 ) - ROM_LOAD16_BYTE("eag-v7b", 0x00000, 0x10000, CRC(f2f68b63) SHA1(621e5073e9c5083ac9a9b467f3ef8aa29beac5ac) ) - ROM_LOAD16_BYTE("eag-v7a", 0x00001, 0x10000, CRC(506b688f) SHA1(0a091c35d0f01166b57f964b111cde51c5720d58) ) -ROM_END - -ROM_START( feagv7a ) - ROM_REGION( 0x20000, "maincpu", 0 ) - ROM_LOAD16_BYTE("eag-v7b", 0x00000, 0x10000, CRC(44baefbf) SHA1(dbc24340d7e3013cc8f111ebb2a59169c5dcb8e8) ) - ROM_LOAD16_BYTE("eag-v7a", 0x00001, 0x10000, CRC(951a7857) SHA1(dad21b049fd4f411a79d4faefb922c1277569c0e) ) -ROM_END - -ROM_START( feagv9 ) - ROM_REGION( 0x20000, "maincpu", 0 ) - ROM_LOAD16_BYTE("eag-v9b", 0x00000, 0x10000, CRC(60523199) SHA1(a308eb6b782732af1ab2fd0ed8b046de7a8dd24b) ) - ROM_LOAD16_BYTE("eag-v9a", 0x00001, 0x10000, CRC(255c63c0) SHA1(8aa0397bdb3731002f5b066cd04ec62531267e22) ) -ROM_END - -ROM_START( feagv10 ) - ROM_REGION( 0x20000, "maincpu", 0 ) - ROM_LOAD32_BYTE("16", 0x00000, 0x08000, CRC(8375d61f) SHA1(e042f6f01480c59ee09a458cf34f135664479824) ) // 27c256 - ROM_LOAD32_BYTE("17", 0x00001, 0x08000, CRC(bfd14916) SHA1(115af6dfd29ddd8ad6d2ce390f8ecc4d60de6fce) ) // " - ROM_LOAD32_BYTE("18", 0x00002, 0x08000, CRC(9341dcaf) SHA1(686bd4799e89ffaf11a813d4cf5a2aedd4c2d97a) ) // " - ROM_LOAD32_BYTE("19", 0x00003, 0x08000, CRC(a70c5468) SHA1(7f6b4f46577d5cfdaa84d387c7ce35d941e5bbc7) ) // " -ROM_END - -ROM_START( feagv11 ) - ROM_REGION( 0x20000, "maincpu", 0 ) - ROM_LOAD32_BYTE("16", 0x00000, 0x08000, CRC(8375d61f) SHA1(e042f6f01480c59ee09a458cf34f135664479824) ) // 27c256 - ROM_LOAD32_BYTE("17", 0x00001, 0x08000, CRC(bfd14916) SHA1(115af6dfd29ddd8ad6d2ce390f8ecc4d60de6fce) ) // " - ROM_LOAD32_BYTE("18", 0x00002, 0x08000, CRC(9341dcaf) SHA1(686bd4799e89ffaf11a813d4cf5a2aedd4c2d97a) ) // " - ROM_LOAD32_BYTE("19", 0x00003, 0x08000, CRC(a70c5468) SHA1(7f6b4f46577d5cfdaa84d387c7ce35d941e5bbc7) ) // " -ROM_END - -} // anonymous namespace - - -/****************************************************************************** - Drivers -******************************************************************************/ - -// YEAR NAME PARENT CMP MACHINE INPUT CLASS INIT COMPANY, FULLNAME, FLAGS -CONS( 1987, fex68k, 0, 0, fex68k, excel68k, excel68k_state, empty_init, "Fidelity Electronics", "Excel 68000 (set 1)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1987, fex68ka, fex68k, 0, fex68k, excel68k, excel68k_state, empty_init, "Fidelity Electronics", "Excel 68000 (set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1987, fex68kb, fex68k, 0, fex68k, excel68k, excel68k_state, empty_init, "Fidelity Electronics", "Excel 68000 (set 3)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1988, fex68km2, fex68k, 0, fex68km2, excel68k, excel68k_state, empty_init, "Fidelity Electronics", "Excel 68000 Mach II (rev. C+, set 1)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1988, fex68km2a, fex68k, 0, fex68km2, excel68k, excel68k_state, empty_init, "Fidelity Electronics", "Excel 68000 Mach II (rev. C+, set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1988, fex68km3, fex68k, 0, fex68km3, excel68k, excel68k_state, empty_init, "Fidelity Electronics", "Excel 68000 Mach III Master", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1989, fex68km4, fex68k, 0, fex68km4, excel68k, excel68k_state, empty_init, "Fidelity Electronics", "Excel 68000 Mach IV 68020 Master 2325", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) - -CONS( 1989, feagv2, 0, 0, eagv2, eag, eag_state, init_eag, "Fidelity Electronics", "Elite Avant Garde (model 6114-2)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1989, feagv3, feagv2, 0, eagv3, eag, eag_state, init_eag, "Fidelity Electronics", "Elite Avant Garde (model 6114-3)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1989, feagv5, feagv2, 0, eagv5, eag, eagv5_state, init_eag, "Fidelity Electronics", "Elite Avant Garde (model 6114-5)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1990, feagv7, feagv2, 0, eagv7, eag, eag_state, empty_init, "Fidelity Electronics", "Elite Avant Garde (model 6117-7, set 1)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1990, feagv7a, feagv2, 0, eagv7, eag, eag_state, empty_init, "Fidelity Electronics", "Elite Avant Garde (model 6117-7, set 2)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1990, feagv9, feagv2, 0, eagv9, eag, eag_state, empty_init, "Fidelity Electronics", "Elite Avant Garde (model 6117-9)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK ) -CONS( 1990, feagv10, feagv2, 0, eagv10, eag, eag_state, empty_init, "Fidelity Electronics", "Elite Avant Garde (model 6117-10)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_TIMING ) -CONS( 2002, feagv11, feagv2, 0, eagv11, eag, eag_state, empty_init, "hack (Wilfried Bucke)", "Elite Avant Garde (model 6117-11)", MACHINE_SUPPORTS_SAVE | MACHINE_CLICKABLE_ARTWORK | MACHINE_IMPERFECT_TIMING ) |