src/mess/drivers/sun3.c
| r0 | r12709 | |
| 1 | /*************************************************************************** |
| 2 | |
| 3 | Sun 3/150 |
| 4 | |
| 5 | Processor(s): 68020 @ 16.67MHz, 68881, Sun-3 MMU, 8 hardware |
| 6 | contexts, 2 MIPS |
| 7 | CPU: 501-1074/1094/1163/1164/1208 |
| 8 | Chassis type: deskside |
| 9 | Bus: VME, 6 slots |
| 10 | Memory: 16M physical (documented), 256M virtual, 270ns cycle |
| 11 | |
| 12 | |
| 13 | 25/08/2009 Skeleton driver. |
| 14 | |
| 15 | ****************************************************************************/ |
| 16 | #define ADDRESS_MAP_MODERN |
| 17 | |
| 18 | #include "emu.h" |
| 19 | #include "cpu/m68000/m68000.h" |
| 20 | |
| 21 | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 22 | |
| 23 | class sun3_state : public driver_device |
| 24 | { |
| 25 | public: |
| 26 | sun3_state(const machine_config &mconfig, device_type type, const char *tag) |
| 27 | : driver_device(mconfig, type, tag), |
| 28 | m_maincpu(*this, "maincpu") |
| 29 | { } |
| 30 | |
| 31 | required_device<cpu_device> m_maincpu; |
| 32 | virtual void machine_reset(); |
| 33 | |
| 34 | UINT16* m_p_ram; |
| 35 | }; |
| 36 | |
| 37 | static ADDRESS_MAP_START(sun3_mem, AS_PROGRAM, 32, sun3_state) |
| 38 | ADDRESS_MAP_UNMAP_HIGH |
| 39 | AM_RANGE(0x00000000, 0x00ffffff) AM_RAM AM_BASE(m_p_ram) // 16MB |
| 40 | AM_RANGE(0x0fef0000, 0x0fefffff) AM_ROM AM_REGION("user1",0) |
| 41 | ADDRESS_MAP_END |
| 42 | |
| 43 | /* Input ports */ |
| 44 | static INPUT_PORTS_START( sun3 ) |
| 45 | INPUT_PORTS_END |
| 46 | |
| 47 | |
| 48 | MACHINE_RESET_MEMBER(sun3_state) |
| 49 | { |
| 50 | UINT8* user1 = machine().region("user1")->base(); |
| 51 | |
| 52 | memcpy((UINT8*)m_p_ram,user1,0x10000); |
| 53 | |
| 54 | machine().device("maincpu")->reset(); |
| 55 | } |
| 56 | |
| 57 | |
| 58 | static MACHINE_CONFIG_START( sun3, sun3_state ) |
| 59 | /* basic machine hardware */ |
| 60 | MCFG_CPU_ADD("maincpu", M68020, 16670000) |
| 61 | MCFG_CPU_PROGRAM_MAP(sun3_mem) |
| 62 | MACHINE_CONFIG_END |
| 63 | |
| 64 | /* ROM definition */ |
| 65 | ROM_START( sun3 ) |
| 66 | ROM_REGION32_BE( 0x10000, "user1", ROMREGION_ERASEFF ) |
| 67 | ROM_LOAD( "sun3-carrera-rev-3.0.bin", 0x0000, 0x10000, CRC(fee6e4d6) SHA1(440d532e1848298dba0f043de710bb0b001fb675)) |
| 68 | ROM_END |
| 69 | |
| 70 | /* Driver */ |
| 71 | |
| 72 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 73 | COMP( 1982, sun3, 0, 0, sun3, sun3, 0, "Sun Microsystems", "Sun 3/150", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 74 | |
src/mess/drivers/sun2.c
| r0 | r12709 | |
| 1 | /*************************************************************************** |
| 2 | |
| 3 | Sun 2/120 |
| 4 | |
| 5 | Processor(s): 68010 @ 10MHz |
| 6 | CPU: 501-1007/1051 |
| 7 | Chassis type: deskside |
| 8 | Bus: Multibus, 9 slots |
| 9 | Memory: 7M physical with mono video, 8M without |
| 10 | Notes: First machines in deskside chassis. Serial |
| 11 | microswitch keyboard (type 2), Mouse Systems |
| 12 | optical mouse (Sun-2). |
| 13 | |
| 14 | 25/08/2009 Skeleton driver. |
| 15 | |
| 16 | ****************************************************************************/ |
| 17 | #define ADDRESS_MAP_MODERN |
| 18 | |
| 19 | #include "emu.h" |
| 20 | #include "cpu/m68000/m68000.h" |
| 21 | |
| 22 | #define MACHINE_RESET_MEMBER(name) void name::machine_reset() |
| 23 | |
| 24 | class sun2_state : public driver_device |
| 25 | { |
| 26 | public: |
| 27 | sun2_state(const machine_config &mconfig, device_type type, const char *tag) |
| 28 | : driver_device(mconfig, type, tag), |
| 29 | m_maincpu(*this, "maincpu") |
| 30 | { } |
| 31 | |
| 32 | required_device<cpu_device> m_maincpu; |
| 33 | virtual void machine_reset(); |
| 34 | |
| 35 | UINT16* m_p_ram; |
| 36 | }; |
| 37 | |
| 38 | static ADDRESS_MAP_START(sun2_mem, AS_PROGRAM, 16, sun2_state) |
| 39 | ADDRESS_MAP_UNMAP_HIGH |
| 40 | AM_RANGE(0x00000000, 0x007fffff) AM_RAM AM_BASE(m_p_ram) // 8MB |
| 41 | AM_RANGE(0x00ef0000, 0x00ef7fff) AM_ROM AM_REGION("user1",0) |
| 42 | ADDRESS_MAP_END |
| 43 | |
| 44 | /* Input ports */ |
| 45 | static INPUT_PORTS_START( sun2 ) |
| 46 | INPUT_PORTS_END |
| 47 | |
| 48 | |
| 49 | MACHINE_RESET_MEMBER(sun2_state) |
| 50 | { |
| 51 | UINT8* user1 = machine().region("user1")->base(); |
| 52 | |
| 53 | memcpy((UINT8*)m_p_ram,user1,0x8000); |
| 54 | |
| 55 | machine().device("maincpu")->reset(); |
| 56 | } |
| 57 | |
| 58 | |
| 59 | static MACHINE_CONFIG_START( sun2, sun2_state ) |
| 60 | /* basic machine hardware */ |
| 61 | MCFG_CPU_ADD("maincpu", M68010, 16670000) |
| 62 | MCFG_CPU_PROGRAM_MAP(sun2_mem) |
| 63 | MACHINE_CONFIG_END |
| 64 | |
| 65 | /* ROM definition */ |
| 66 | ROM_START( sun2 ) |
| 67 | ROM_REGION( 0x8000, "user1", ROMREGION_ERASEFF ) |
| 68 | ROM_LOAD16_WORD_SWAP( "sun2-multi-rev-r.bin", 0x0000, 0x8000, CRC(4df0df77) SHA1(4d6bcf09ddc9cc8f5823847b8ea88f98fe4a642e)) |
| 69 | ROM_END |
| 70 | |
| 71 | /* Driver */ |
| 72 | |
| 73 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 74 | COMP( 1982, sun2, 0, 0, sun2, sun2, 0, "Sun Microsystems", "Sun 2/120", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 75 | |