diff options
Diffstat (limited to 'src/mess/drivers/sun1.c')
-rw-r--r-- | src/mess/drivers/sun1.c | 170 |
1 files changed, 0 insertions, 170 deletions
diff --git a/src/mess/drivers/sun1.c b/src/mess/drivers/sun1.c deleted file mode 100644 index df26989dbaa..00000000000 --- a/src/mess/drivers/sun1.c +++ /dev/null @@ -1,170 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Miodrag Milanovic -/*************************************************************************** - - Sun-1 Models - ------------ - - Sun-1 - - Processor(s): 68000 - Notes: Large black desktop boxes with 17" monitors. - Uses the original Stanford-designed video board - and a parallel microswitch keyboard (type 1) and - parallel mouse (Sun-1). - - 100 - Processor(s): 68000 @ 10MHz - Bus: Multibus, serial - Notes: Uses a design similar to original SUN (Stanford - University Network) CPU. The version 1.5 CPU can - take larger RAMs. - - 100U - Processor(s): 68010 @ 10MHz - CPU: 501-1007 - Bus: Multibus, serial - Notes: "Brain transplant" for 100 series. Replaced CPU - and memory boards with first-generation Sun-2 - CPU and memory boards so original customers - could run SunOS 1.x. Still has parallel kb/mouse - interface so type 1 keyboards and Sun-1 mice - could be connected. - - 170 - Processor(s): 68010? - Bus: Multibus? - Chassis type: rackmount - Notes: Server. Slightly different chassis design than - 2/170's - - - Documentation: - http://www.bitsavers.org/pdf/sun/sun1/800-0345_Sun-1_System_Ref_Man_Jul82.pdf - (page 39,40 of pdf contain memory map) - - 04/12/2009 Skeleton driver. - - 04/04/2011 Modernised, added terminal keyboard. - -****************************************************************************/ - -#include "emu.h" -#include "cpu/m68000/m68000.h" -#include "machine/z80dart.h" -#include "machine/terminal.h" - -#define TERMINAL_TAG "terminal" - -class sun1_state : public driver_device -{ -public: - sun1_state(const machine_config &mconfig, device_type type, const char *tag) - : driver_device(mconfig, type, tag), - m_maincpu(*this, "maincpu"), - m_terminal(*this, TERMINAL_TAG), - m_p_ram(*this, "p_ram") - { - } - - required_device<cpu_device> m_maincpu; - required_device<generic_terminal_device> m_terminal; - DECLARE_READ16_MEMBER(sun1_upd7201_r); - DECLARE_WRITE16_MEMBER(sun1_upd7201_w); - DECLARE_WRITE8_MEMBER(kbd_put); - virtual void machine_reset(); - required_shared_ptr<UINT16> m_p_ram; - UINT8 m_term_data; -}; - - - -// Just hack to show output since upd7201 is not implemented yet - -READ16_MEMBER( sun1_state::sun1_upd7201_r ) -{ - UINT16 ret; - if (offset == 0) - { - ret = m_term_data << 8; - m_term_data = 0; - } - else - ret = 0xfeff | (m_term_data ? 0x100 : 0); - - return ret; -} - -WRITE16_MEMBER( sun1_state::sun1_upd7201_w ) -{ - if (offset == 0) - m_terminal->write(space, 0, data >> 8); -} - -static ADDRESS_MAP_START(sun1_mem, AS_PROGRAM, 16, sun1_state) - ADDRESS_MAP_UNMAP_HIGH - AM_RANGE(0x00000000, 0x001fffff) AM_RAM AM_SHARE("p_ram") // 512 KB RAM / ROM at boot - AM_RANGE(0x00200000, 0x00203fff) AM_ROM AM_REGION("user1",0) - AM_RANGE(0x00600000, 0x00600007) AM_READWRITE( sun1_upd7201_r, sun1_upd7201_w ) -ADDRESS_MAP_END - -/* Input ports */ -static INPUT_PORTS_START( sun1 ) -INPUT_PORTS_END - - -void sun1_state::machine_reset() -{ - UINT8* user1 = memregion("user1")->base(); - - memcpy((UINT8*)m_p_ram.target(),user1,0x4000); - - m_maincpu->reset(); - m_term_data = 0; -} - - -WRITE8_MEMBER( sun1_state::kbd_put ) -{ - m_term_data = data; -} - -static MACHINE_CONFIG_START( sun1, sun1_state ) - /* basic machine hardware */ - MCFG_CPU_ADD("maincpu", M68000, XTAL_10MHz) - MCFG_CPU_PROGRAM_MAP(sun1_mem) - - /* video hardware */ - MCFG_DEVICE_ADD(TERMINAL_TAG, GENERIC_TERMINAL, 0) - MCFG_GENERIC_TERMINAL_KEYBOARD_CB(WRITE8(sun1_state, kbd_put)) -MACHINE_CONFIG_END - -/* ROM definition */ -ROM_START( sun1 ) - ROM_REGION( 0x4000, "user1", ROMREGION_ERASEFF ) - ROM_LOAD16_BYTE( "v10.8.bin", 0x0001, 0x2000, CRC(3528a0f8) SHA1(be437dd93d1a44eccffa6f5e05935119482beab0)) - ROM_LOAD16_BYTE( "v10.0.bin", 0x0000, 0x2000, CRC(1ad4c52a) SHA1(4bc1a19e8f202378d5d7baa8b95319275c040a6d)) - - ROM_REGION( 0x4000, "diag", ROMREGION_ERASEFF ) - ROM_LOAD16_BYTE( "8mhzdiag.8.bin", 0x0001, 0x2000, CRC(808a549e) SHA1(d2aba014a5507c1538f2c1a73e1d2524f28034f4)) - ROM_LOAD16_BYTE( "8mhzdiag.0.bin", 0x0000, 0x2000, CRC(7a92d506) SHA1(5df3800f7083293fc01bb6a7e7538ad425bbebfb)) - - ROM_REGION( 0x10000, "gfx", ROMREGION_ERASEFF ) - ROM_LOAD( "gfxu605.g4.bin", 0x0000, 0x0200, CRC(274b7b3d) SHA1(40d8be2cfcbd03512a05925991bb5030d5d4b5e9)) - ROM_LOAD( "gfxu308.g21.bin", 0x0200, 0x0200, CRC(35a6eed8) SHA1(25cb2dd8e5343cd7927c3045eb4cb96dc9935a37)) - ROM_LOAD( "gfxu108.g20.bin", 0x0400, 0x0200, CRC(ecee335e) SHA1(5f4d32dc918af15872cd6e700a04720caeb6c657)) - ROM_LOAD( "gfxu105.g0.bin", 0x0600, 0x0200, CRC(8e1a24b3) SHA1(dad2821c3a3137ad69e78b6fc29ab582e5d78646)) - ROM_LOAD( "gfxu104.g1.bin", 0x0800, 0x0200, CRC(86f7a483) SHA1(8eb3778f5497741cd4345e81ff1a903c9a63c8bb)) - ROM_LOAD( "gfxu307.g61.bin", 0x0a00, 0x0020, CRC(b190f25d) SHA1(80fbdc843f1eb68a2d3713499f04d99dab88ce83)) - ROM_LOAD( "gfxu107.g60.bin", 0x0a20, 0x0020, CRC(425d3a98) SHA1(9ae4ce3761c2f995d00bed8d752c55224d274062)) - - ROM_REGION( 0x10000, "cpu", ROMREGION_ERASEFF ) - ROM_LOAD( "cpuu503.p2.bin", 0x0000, 0x0200, CRC(12d9a6be) SHA1(fca99f9c5afc630ac67cbd4e5ba4e5242b826848)) - ROM_LOAD( "cpuu602.p1.bin", 0x0200, 0x0020, CRC(ee1e5a14) SHA1(0d3346cb3b647fa2475bd7b4fa36ea6ecfdaf805)) - ROM_LOAD( "cpuu502.p0.bin", 0x0220, 0x0020, CRC(20eb1183) SHA1(9b268792b28d858d6b6a1b6c4148af88a8d6b735)) -ROM_END - -/* Driver */ - -/* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ -COMP( 1982, sun1, 0, 0, sun1, sun1, driver_device, 0, "Sun Microsystems", "Sun-1", MACHINE_NOT_WORKING | MACHINE_NO_SOUND) |