Previous 15994 Revisions Next

r12709 Thursday 25th August, 2011 at 12:29:41 UTC by Miodrag Milanović
Added skeletons for Sun 2/120 and Sun 3/150
[src/mess]mess.lst mess.mak
[src/mess/drivers]sun2.c* sun3.c*

src/mess/mess.lst
r12708r12709
18331833basic31
18341834al8800bt
18351835sun1
1836sun2
1837sun3
18361838micronic
18371839plan80
18381840pro80
src/mess/mess.mak
r12708r12709
14931493
14941494$(MESSOBJ)/sun.a:            \
14951495   $(MESS_DRIVERS)/sun1.o      \
1496   $(MESS_DRIVERS)/sun2.o      \
1497   $(MESS_DRIVERS)/sun3.o      \
14961498
14971499$(MESSOBJ)/svi.a:            \
14981500   $(MESS_MACHINE)/svi318.o   \
src/mess/drivers/sun3.c
r0r12709
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
23class sun3_state : public driver_device
24{
25public:
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
37static 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)
41ADDRESS_MAP_END
42
43/* Input ports */
44static INPUT_PORTS_START( sun3 )
45INPUT_PORTS_END
46
47
48MACHINE_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
58static MACHINE_CONFIG_START( sun3, sun3_state )
59   /* basic machine hardware */
60   MCFG_CPU_ADD("maincpu", M68020, 16670000)
61   MCFG_CPU_PROGRAM_MAP(sun3_mem)
62MACHINE_CONFIG_END
63
64/* ROM definition */
65ROM_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))
68ROM_END
69
70/* Driver */
71
72/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    COMPANY         FULLNAME       FLAGS */
73COMP( 1982, sun3,  0,       0,       sun3,      sun3,     0,  "Sun Microsystems", "Sun 3/150", GAME_NOT_WORKING | GAME_NO_SOUND)
74
src/mess/drivers/sun2.c
r0r12709
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
24class sun2_state : public driver_device
25{
26public:
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
38static 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)
42ADDRESS_MAP_END
43
44/* Input ports */
45static INPUT_PORTS_START( sun2 )
46INPUT_PORTS_END
47
48
49MACHINE_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
59static MACHINE_CONFIG_START( sun2, sun2_state )
60   /* basic machine hardware */
61   MCFG_CPU_ADD("maincpu", M68010, 16670000)
62   MCFG_CPU_PROGRAM_MAP(sun2_mem)
63MACHINE_CONFIG_END
64
65/* ROM definition */
66ROM_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))
69ROM_END
70
71/* Driver */
72
73/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    COMPANY         FULLNAME       FLAGS */
74COMP( 1982, sun2,  0,       0,       sun2,      sun2,     0,  "Sun Microsystems", "Sun 2/120", GAME_NOT_WORKING | GAME_NO_SOUND)
75

Previous 15994 Revisions Next


© 1998-2018 The MESS Team