Previous 15994 Revisions Next

r14433 Sunday 12th February, 2012 at 09:46:23 UTC by Olivier Galibert
next: Normalize the delegates, split the different NeXT variants [O. Galibert]
[src/emu/machine]mccs1850.c mccs1850.h
[src/mess]mess.lst
[src/mess/drivers]abc1600.c apple2gs.c atarist.c ip20.c mac.c macpci.c next.c x68k.c
[src/mess/includes]abc1600.h mac.h next.h
[src/mess/machine]8530scc.c 8530scc.h mac.c nextkbd.c nextkbd.h nextmo.c nextmo.h

src/emu/machine/mccs1850.c
r14432r14433
294294{
295295}
296296
297void mccs1850_device::set_cb(cb_t _int_cb, cb_t _pse_cb, cb_t _nuc_cb)
297void mccs1850_device::set_cb(line_cb_t _int_cb, line_cb_t _pse_cb, line_cb_t _nuc_cb)
298298{
299299   int_cb = _int_cb;
300300   pse_cb = _pse_cb;
src/emu/machine/mccs1850.h
r14432r14433
4747                  public device_nvram_interface
4848{
4949public:
50   typedef delegate<void (bool state)> cb_t;
51
5250    // construction/destruction
5351    mccs1850_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
54   void set_cb(cb_t int_cb, cb_t pse_cb, cb_t nuc_cb);
52   void set_cb(line_cb_t int_cb, line_cb_t pse_cb, line_cb_t nuc_cb);
5553
5654   DECLARE_WRITE_LINE_MEMBER( ce_w );
5755   DECLARE_WRITE_LINE_MEMBER( sck_w );
r14432r14433
8583
8684   static const device_timer_id TIMER_CLOCK = 0;
8785
88   cb_t int_cb, pse_cb, nuc_cb;
86   line_cb_t int_cb, pse_cb, nuc_cb;
8987
9088   UINT8 m_ram[0x80];         // RAM
9189
src/mess/machine/nextkbd.c
r14432r14433
1414{
1515}
1616
17void nextkbd_device::set_int_change_cb(int_cb_t _int_change_cb)
17void nextkbd_device::set_int_change_cb(line_cb_t _int_change_cb)
1818{
1919   int_change_cb = _int_change_cb;
2020}
src/mess/machine/nextkbd.h
r14432r14433
99
1010class nextkbd_device : public device_t {
1111public:
12   typedef delegate<void (bool state)> int_cb_t;
13
1412   nextkbd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
15   void set_int_change_cb(int_cb_t int_change_cb);
13   void set_int_change_cb(line_cb_t int_change_cb);
1614
1715   DECLARE_ADDRESS_MAP(amap, 32);
1816   ioport_constructor device_input_ports() const;
r14432r14433
3937   enum { FIFO_SIZE = 32 };
4038   enum { KEYUP = 0x0080, KEYVALID = 0x8000 };
4139
42   int_cb_t int_change_cb;
40   line_cb_t int_change_cb;
4341   emu_timer *kbd_timer;
4442
4543   UINT32 control, control2, data, fifo_ir, fifo_iw, fifo_size;
src/mess/machine/8530scc.c
r14432r14433
2727{
2828}
2929
30void scc8530_t::set_intrq_cb(intrq_cb_t cb)
30void scc8530_t::set_intrq_cb(line_cb_t cb)
3131{
3232   intrq_cb = cb;
3333}
src/mess/machine/8530scc.h
r14432r14433
2828      IRQ_B_EXT,
2929   };
3030
31   typedef delegate<void (int state)> intrq_cb_t;
32
3331   scc8530_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
34   void set_intrq_cb(intrq_cb_t cb);
32   void set_intrq_cb(line_cb_t cb);
3533
3634   UINT8 get_reg_a(int reg);
3735   UINT8 get_reg_b(int reg);
r14432r14433
8381
8482   Chan channel[2];
8583
86   intrq_cb_t intrq_cb;
84   line_cb_t intrq_cb;
8785
8886   void updateirqs();
8987   void initchannel(int ch);
src/mess/machine/nextmo.c
r14432r14433
2222{
2323}
2424
25void nextmo_device::set_cb(cb_t _irq_cb, cb_t _drq_cb)
25void nextmo_device::set_cb(line_cb_t _irq_cb, line_cb_t _drq_cb)
2626{
2727   irq_cb = _irq_cb;
2828   drq_cb = _drq_cb;
src/mess/machine/nextmo.h
r14432r14433
88class nextmo_device : public device_t
99{
1010public:
11   typedef delegate<void (bool state)> cb_t;
12
1311   nextmo_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
1412
15   void set_cb(cb_t irq_cb, cb_t drq_cb);
13   void set_cb(line_cb_t irq_cb, line_cb_t drq_cb);
1614
1715   DECLARE_ADDRESS_MAP(map, 32);
1816
r14432r14433
4543private:
4644   UINT8 sector[0x510];
4745   UINT8 r4, r5, r6, r7;
48   cb_t irq_cb, drq_cb;
46   line_cb_t irq_cb, drq_cb;
4947   int sector_pos;
5048
5149   void check_dma_end();
src/mess/machine/mac.c
r14432r14433
302302   }
303303}
304304
305void mac_state::set_scc_interrupt(int value)
305void mac_state::set_scc_interrupt(bool value)
306306{
307307   m_scc_interrupt = value;
308308   this->field_interrupts();
src/mess/includes/mac.h
r14432r14433
350350   void set_memory_overlay(int overlay);
351351   void scc_mouse_irq( int x, int y );
352352   void nubus_slot_interrupt(UINT8 slot, UINT32 state);
353   void set_scc_interrupt(int value);
353   void set_scc_interrupt(bool value);
354354   void set_via_interrupt(int value);
355355   void set_via2_interrupt(int value);
356356   void field_interrupts();
src/mess/includes/next.h
r14432r14433
4343   required_device<nextmo_device> mo;
4444   optional_device<n82077aa_device> fdc; // 040 only
4545
46   UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
46   UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
4747
48   void setup(UINT32 scr1, int size_x, int size_y, int skip, bool color);
49
4850   READ8_MEMBER( io_r );
4951   WRITE8_MEMBER( io_w );
5052   READ32_MEMBER( rom_map_r );
r14432r14433
9294
9395   UINT32 eventc_latch;
9496
95   void scc_irq(int state);
97   void scc_irq(bool state);
9698   void keyboard_irq(bool state);
9799
98100   void scsi_irq(bool state);
r14432r14433
147149   dma_slot dma_slots[0x20];
148150   UINT32 esp;
149151
152   int screen_sx, screen_sy, screen_skip;
153   bool screen_color;
154
150155   virtual void machine_start();
151156   virtual void machine_reset();
152157
src/mess/includes/abc1600.h
r14432r14433
194194   inline UINT16 get_crtca(UINT16 ma, UINT8 ra, UINT8 column);
195195   void crtc_update_row(device_t *device, bitmap_rgb32 &bitmap, const rectangle &cliprect, UINT16 ma, UINT8 ra, UINT16 y, UINT8 x_count, INT8 cursor_x, void *param);
196196
197   void scc_irq(int status);
197   void scc_irq(bool status);
198198
199199   // memory access controller
200200   int m_ifc2;
src/mess/mess.lst
r14432r14433
18751875cosmicos
18761876a7150
18771877next
1878nextnt
1879nexttrb
1878nexts
1879nexts2
1880nextsc
1881nextst
1882nextstc
1883nextct
1884nextctc
18801885pda600
18811886mod8
18821887k1003
src/mess/drivers/macpci.c
r14432r14433
137137   MCFG_RAM_DEFAULT_SIZE("32M")
138138
139139   MCFG_VIA6522_ADD("via6522_0", C7M/10, pcimac_via6522_intf)
140//  MCFG_SCC8530_ADD("scc", C7M, scc8530_t::intrq_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
140//  MCFG_SCC8530_ADD("scc", C7M, line_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
141141    MCFG_CUDA_ADD(CUDA_341S0060, mac_cuda_interface)
142142   MCFG_QUANTUM_PERFECT_CPU("maincpu")
143143MACHINE_CONFIG_END
src/mess/drivers/atarist.c
r14432r14433
25172517   MCFG_CPU_MODIFY(M68000_TAG)
25182518   MCFG_CPU_PROGRAM_MAP(megaste_map)
25192519   MCFG_RP5C15_ADD(RP5C15_TAG, XTAL_32_768kHz, rtc_intf)
2520   MCFG_SCC8530_ADD(Z8530_TAG, Y2/4, scc8530_t::intrq_cb_t())
2520   MCFG_SCC8530_ADD(Z8530_TAG, Y2/4, line_cb_t())
25212521
25222522   /* internal ram */
25232523   MCFG_RAM_MODIFY(RAM_TAG)
src/mess/drivers/abc1600.c
r14432r14433
15491549//  SCC8530_INTERFACE( sc_intf )
15501550//-------------------------------------------------
15511551
1552void abc1600_state::scc_irq(int status)
1552void abc1600_state::scc_irq(bool status)
15531553{
15541554   m_maincpu->set_input_line(M68K_IRQ_5, status);
15551555}
r14432r14433
19271927   MCFG_Z80DMA_ADD(Z8410AB1_1_TAG, XTAL_64MHz/16, dma1_intf)
19281928   MCFG_Z80DMA_ADD(Z8410AB1_2_TAG, XTAL_64MHz/16, dma2_intf)
19291929   MCFG_Z80DART_ADD(Z8470AB1_TAG, XTAL_64MHz/16, dart_intf)
1930   MCFG_SCC8530_ADD(Z8530B1_TAG, XTAL_64MHz/16, scc8530_t::intrq_cb_t(FUNC(abc1600_state::scc_irq), static_cast<abc1600_state *>(owner)))
1930   MCFG_SCC8530_ADD(Z8530B1_TAG, XTAL_64MHz/16, line_cb_t(FUNC(abc1600_state::scc_irq), static_cast<abc1600_state *>(owner)))
19311931   MCFG_Z8536_ADD(Z8536B1_TAG, XTAL_64MHz/16, cio_intf)
19321932   MCFG_NMC9306_ADD(NMC9306_TAG)
19331933   MCFG_E0516_ADD(E050_C16PC_TAG, XTAL_32_768kHz)
src/mess/drivers/apple2gs.c
r14432r14433
234234   MCFG_APPLE2_SLOT_ADD(6, "fdc", applefdc_r, applefdc_w, 0, 0, 0, 0)
235235
236236   /* SCC */
237   MCFG_SCC8530_ADD("scc", APPLE2GS_14M/2, scc8530_t::intrq_cb_t())
237   MCFG_SCC8530_ADD("scc", APPLE2GS_14M/2, line_cb_t())
238238
239239   MCFG_LEGACY_FLOPPY_APPLE_2_DRIVES_ADD(apple2gs_floppy525_floppy_interface,15,16)
240240   MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADDITIONAL_ADD(apple2gs_floppy35_floppy_interface)
src/mess/drivers/mac.c
r14432r14433
925925   MCFG_IWM_ADD("fdc", mac_iwm_interface)
926926   MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_interface)
927927
928   MCFG_SCC8530_ADD("scc", C7M, scc8530_t::intrq_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
928   MCFG_SCC8530_ADD("scc", C7M, line_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
929929   MCFG_VIA6522_ADD("via6522_0", 1000000, mac_via6522_intf)
930930
931931   /* internal ram */
r14432r14433
10091009   MCFG_IWM_ADD("fdc", mac_iwm_interface)
10101010   MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_interface)
10111011
1012   MCFG_SCC8530_ADD("scc", C7M, scc8530_t::intrq_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
1012   MCFG_SCC8530_ADD("scc", C7M, line_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
10131013   MCFG_VIA6522_ADD("via6522_0", 783360, mac_via6522_intf)
10141014
10151015   MCFG_HARDDISK_CONFIG_ADD( "harddisk1", mac_harddisk_config )
r14432r14433
10551055   MCFG_IWM_ADD("fdc", mac_iwm_interface)
10561056   MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_interface)
10571057
1058   MCFG_SCC8530_ADD("scc", C7M, scc8530_t::intrq_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
1058   MCFG_SCC8530_ADD("scc", C7M, line_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
10591059
10601060   MCFG_VIA6522_ADD("via6522_0", C7M/10, mac_via6522_adb_intf)
10611061   MCFG_VIA6522_ADD("via6522_1", C7M/10, mac_via6522_2_intf)
r14432r14433
11071107   MCFG_IWM_ADD("fdc", mac_iwm_interface)
11081108   MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_interface)
11091109
1110   MCFG_SCC8530_ADD("scc", C7M, scc8530_t::intrq_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
1110   MCFG_SCC8530_ADD("scc", C7M, line_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
11111111
11121112   MCFG_VIA6522_ADD("via6522_0", C7M/10, mac_via6522_adb_intf)
11131113
r14432r14433
13051305   MCFG_SWIM_ADD("fdc", mac_iwm_interface)
13061306   MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_interface)
13071307
1308   MCFG_SCC8530_ADD("scc", C7M, scc8530_t::intrq_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
1308   MCFG_SCC8530_ADD("scc", C7M, line_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
13091309
13101310   MCFG_VIA6522_ADD("via6522_0", 783360, mac_via6522_adb_intf)
13111311   MCFG_VIA6522_ADD("via6522_1", 783360, mac_via6522_2_intf)
r14432r14433
13561356   MCFG_SWIM_ADD("fdc", mac_iwm_interface)
13571357   MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_interface)
13581358
1359   MCFG_SCC8530_ADD("scc", C7M, scc8530_t::intrq_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
1359   MCFG_SCC8530_ADD("scc", C7M, line_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
13601360
13611361   MCFG_VIA6522_ADD("via6522_0", 783360, mac_via6522_adb_intf)
13621362   MCFG_VIA6522_ADD("via6522_1", 783360, mac_via6522_2_intf)
r14432r14433
14271427   MCFG_SWIM_ADD("fdc", mac_iwm_interface)
14281428   MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_interface)
14291429
1430   MCFG_SCC8530_ADD("scc", C7M, scc8530_t::intrq_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
1430   MCFG_SCC8530_ADD("scc", C7M, line_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
14311431
14321432   MCFG_VIA6522_ADD("via6522_0", 783360, mac_via6522_adb_intf)
14331433   MCFG_VIA6522_ADD("via6522_1", 783360, mac_via6522_2_intf)
r14432r14433
15981598   MCFG_IWM_ADD("fdc", mac_iwm_interface)
15991599   MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_interface)
16001600
1601   MCFG_SCC8530_ADD("scc", C7M, scc8530_t::intrq_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
1601   MCFG_SCC8530_ADD("scc", C7M, line_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
16021602
16031603   MCFG_VIA6522_ADD("via6522_0", 783360, mac_via6522_adb_intf)
16041604   MCFG_VIA6522_ADD("via6522_1", 783360, mac_via6522_2_intf)
r14432r14433
16481648   MCFG_IWM_ADD("fdc", mac_iwm_interface)
16491649   MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_interface)
16501650
1651   MCFG_SCC8530_ADD("scc", C7M, scc8530_t::intrq_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
1651   MCFG_SCC8530_ADD("scc", C7M, line_cb_t(FUNC(mac_state::set_scc_interrupt), static_cast<mac_state *>(owner)))
16521652
16531653   MCFG_VIA6522_ADD("via6522_0", C7M/10, mac_via6522_adb_intf)
16541654   MCFG_VIA6522_ADD("via6522_1", C7M/10, mac_via6522_2_intf)
src/mess/drivers/next.c
r14432r14433
44
55    TODO:
66
7    - SCC
8    - mouse
9    - network
10    - optical drive
11    - floppy
12    - hdd
7   - Find out why the pager doesn't work on the mach_init loading
8     task (yes, that's the big one)
139
10   - Make command-~ work (NMI perhaps?)
11
12   - Hook up the mouse (not before the system boots though, see the first problem)
13
14   - Fix the kernel bitching at boot (non-volatile memory readback error)
15
16   - Hook up the sound output, it seems to be shared with the keyboard port somehow
17
18   - Implement more of the scc and its dma interactions so that the
19     start up test passes, but not before sound out is done (if the scc
20     test passes all the otehr test pass up to sound out which
21     infloops)
22
23   - Find out how the fdc is supposed to down its irq line after the
24     first read data when using bfd (no sense interrupt command seems
25     to be called).  Right now it stays up and that breaks the command
26     completion detector on the 68k.
27
28   - Really implement the MO, it's only faking it for the startup test right now
29
30   - Find out why netbsd goes to hell even before loading the kernel
31
1432    Memory map and other bits can be found here:
1533    http://fxr.watson.org/fxr/source/arch/next68k/include/cpu.h?v=NETBSD5#L366
1634
r14432r14433
2442#include "machine/nscsi_cd.h"
2543#include "machine/nscsi_hd.h"
2644
27UINT32 next_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
45UINT32 next_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
2846{
29   UINT32 count;
30   int x,y,xi;
47   // We don't handle partial updates, but we don't generate them either :-)
48   if(cliprect.min_x || cliprect.min_y || cliprect.max_x+1 != screen_sx || cliprect.max_y+1 != screen_sy)
49      return 0;
3150
32   count = 0;
33
34   for(y=0;y<832;y++)
35   {
36      for(x=0;x<1152;x+=16)
37      {
38         for(xi=0;xi<16;xi++)
39         {
40            UINT8 pen = (vram[count] >> (30-(xi*2))) & 0x3;
41
42            pen ^= 3;
43
44            if(cliprect.contains(x+xi, y))
45               bitmap.pix16(y, x+xi) = screen.machine().pens[pen];
51   // 0,1,2,4=0b000000, 3=2c000000, 5,8,9=0c000000
52   // 1152x832 (0,1,2,3c,4)
53   // 1120x832 (8)
54   // 832x624 (5c,9c)
55   if(screen_color) {
56      const UINT32 *vr = vram;
57      for(int y=0; y<screen_sy; y++) {
58         UINT32 *pix = reinterpret_cast<UINT32 *>(bitmap.raw_pixptr(y));
59         for(int x=0; x<screen_sx; x+=2) {
60            UINT32 v = *vr++;
61            for(int xi=0; xi<2; xi++) {
62               UINT16 pen = (v >> (16-(xi*16))) & 0xffff;
63               UINT32 r = (pen & 0xf000) >> 12;
64               UINT32 g = (pen & 0x0f00) >> 8;
65               UINT32 b = (pen & 0x00f0) >> 4;
66               UINT32 col = (r << 20) | (r << 16) | (g << 12) | (g << 8) | (b << 4) | b;
67               *pix++ = col;
68            }
4669         }
47
48         count++;
70         vr += screen_skip;
4971      }
72   } else {
73      static UINT32 colors[4] = { 0xffffff, 0xaaaaaa, 0x555555, 0x000000 };
74      const UINT32 *vr = vram;
75      for(int y=0; y<screen_sy; y++) {
76         UINT32 *pix = reinterpret_cast<UINT32 *>(bitmap.raw_pixptr(y));
77         for(int x=0; x<screen_sx; x+=16) {
78            UINT32 v = *vr++;
79            for(int xi=0; xi<16; xi++)
80               *pix++ = colors[(v >> (30-(xi*2))) & 0x3];
81         }
82         vr += screen_skip;
83      }
5084   }
5185
5286    return 0;
r14432r14433
131165   /*
132166        xxxx ---- ---- ---- ---- ---- ---- ---- slot ID
133167        ---- ---- xxxx xxxx ---- ---- ---- ---- DMA type
134        ---- ---- ---- ---- xxxx ---- ---- ---- cpu type
168        ---- ---- ---- ---- xxxx ---- ---- ---- machine type
135169        ---- ---- ---- ---- ---- xxxx ---- ---- board revision
136170        ---- ---- ---- ---- ---- ---- -xx- ---- video mem speed
137171        ---- ---- ---- ---- ---- ---- ---x x--- mem speed
138172        ---- ---- ---- ---- ---- ---- ---- -xxx cpu speed 16/20/25/33/40/50/66/80
139173
174   machine types:
175   0 NeXT_CUBE
176   1 NeXT_WARP9
177   2 NeXT_X15
178   3 NeXT_WARP9C
179   4 NeXT_Turbo
180   5 NeXT_TurboC
181   6 Unknown
182   7 Unknown
183   8 NeXT_TurboCube
184   9 NeXT_TurboCubeC
185
140186        68040-25: 00011102
141187        68040-25: 00013002 (non-turbo, color)
142188    */
r14432r14433
475521   }
476522}
477523
478WRITE32_MEMBER( next_state::dma_040_ctrl_w)
479{
480   int slot = offset >> 2;
481   int reg = offset & 3;
482   if(!reg && ACCESSING_BITS_16_23)
483      dma_do_ctrl_w(slot, data >> 16);
484}
485
486524void next_state::dma_do_ctrl_w(int slot, UINT8 data)
487525{
488526   const char *name = dma_name(slot);
r14432r14433
667705   timer_tm->adjust(attotime::from_usec(timer_vbase));
668706}
669707
670void next_state::scc_irq(int state)
708void next_state::scc_irq(bool state)
671709{
672710   irq_set(17, state);
673711}
r14432r14433
727765   dma_drq_w(1, state);
728766}
729767
768void next_state::setup(UINT32 _scr1, int size_x, int size_y, int skip, bool color)
769{
770   scr1 = _scr1;
771   screen_sx = size_x;
772   screen_sy = size_y;
773   screen_skip = skip;
774   screen_color = color;
775}
776
730777void next_state::machine_start()
731778{
732779   save_item(NAME(scr2));
r14432r14433
796843   AM_RANGE(0x0201a000, 0x0201a003) AM_MIRROR(0x300000) AM_READ(event_counter_r) // EVENTC
797844//  AM_RANGE(0x020c0000, 0x020c0004) AM_MIRROR(0x300000) BMAP
798845   AM_RANGE(0x020c0030, 0x020c0037) AM_MIRROR(0x300000) AM_READWRITE(phy_r, phy_w)
799//  AM_RANGE(0x02000000, 0x0201ffff) AM_MIRROR(0x300000) AM_READWRITE8(io_r,io_w,0xffffffff) //intentional fall-through
800846   AM_RANGE(0x04000000, 0x07ffffff) AM_RAM //work ram
801   AM_RANGE(0x0b000000, 0x0b03ffff) AM_RAM AM_BASE(vram) //vram
802847//  AM_RANGE(0x0c000000, 0x0c03ffff) video RAM w A+B-AB function
803848//  AM_RANGE(0x0d000000, 0x0d03ffff) video RAM w (1-A)B function
804849//  AM_RANGE(0x0e000000, 0x0e03ffff) video RAM w ceil(A+B) function
r14432r14433
807852//  AM_RANGE(0x14000000, 0x1403ffff) main RAM w (1-A)B function
808853//  AM_RANGE(0x18000000, 0x1803ffff) main RAM w ceil(A+B) function
809854//  AM_RANGE(0x1c000000, 0x1c03ffff) main RAM w AB function
810//  AM_RANGE(0x2c000000, 0x2c1fffff) Color VRAM
811855ADDRESS_MAP_END
812856
813static ADDRESS_MAP_START( next_040_mem, AS_PROGRAM, 32, next_state )
814   AM_RANGE(0x02000000, 0x020001ff) AM_MIRROR(0x300000) AM_READWRITE(dma_ctrl_r, dma_040_ctrl_w)
857static ADDRESS_MAP_START( next_0b_nofdc_mem, AS_PROGRAM, 32, next_state )
858   AM_RANGE(0x0b000000, 0x0b03ffff) AM_RAM AM_BASE(vram)
859
860   AM_IMPORT_FROM(next_mem)
861ADDRESS_MAP_END
862
863static ADDRESS_MAP_START( next_fdc_mem, AS_PROGRAM, 32, next_state )
815864   AM_RANGE(0x02014100, 0x02014107) AM_MIRROR(0x300000) AM_DEVICE8("fdc", n82077aa_device, amap, 0xffffffff)
816865   AM_RANGE(0x02014108, 0x0201410b) AM_MIRROR(0x300000) AM_READWRITE(fdc_control_r, fdc_control_w)
817866
818867   AM_IMPORT_FROM(next_mem)
819868ADDRESS_MAP_END
820869
870static ADDRESS_MAP_START( next_0b_mem, AS_PROGRAM, 32, next_state )
871   AM_RANGE(0x0b000000, 0x0b03ffff) AM_RAM AM_BASE(vram)
872
873   AM_IMPORT_FROM(next_fdc_mem)
874ADDRESS_MAP_END
875
876static ADDRESS_MAP_START( next_0c_mem, AS_PROGRAM, 32, next_state )
877   AM_RANGE(0x0c000000, 0x0c1fffff) AM_RAM AM_BASE(vram)
878
879   AM_IMPORT_FROM(next_fdc_mem)
880ADDRESS_MAP_END
881
882static ADDRESS_MAP_START( next_2c_mem, AS_PROGRAM, 32, next_state )
883   AM_RANGE(0x2c000000, 0x2c1fffff) AM_RAM AM_BASE(vram)
884
885   AM_IMPORT_FROM(next_fdc_mem)
886ADDRESS_MAP_END
887
888
821889/* Input ports */
822890static INPUT_PORTS_START( next )
823891INPUT_PORTS_END
824892
825static PALETTE_INIT(next)
826{
827   /* TODO: simplify this*/
828   palette_set_color(machine, 0,MAKE_RGB(0x00,0x00,0x00));
829   palette_set_color(machine, 1,MAKE_RGB(0x55,0x55,0x55));
830   palette_set_color(machine, 2,MAKE_RGB(0xaa,0xaa,0xaa));
831   palette_set_color(machine, 3,MAKE_RGB(0xff,0xff,0xff));
832}
833
834893const floppy_format_type next_state::floppy_formats[] = {
835894   FLOPPY_PC_FORMAT,
836895   FLOPPY_MFI_FORMAT,
r14432r14433
846905   SLOT_INTERFACE("harddisk", NSCSI_HARDDISK)
847906SLOT_INTERFACE_END
848907
849static MACHINE_CONFIG_START( next, next_state )
850    /* basic machine hardware */
851    MCFG_CPU_ADD("maincpu",M68030, XTAL_25MHz)
852    MCFG_CPU_PROGRAM_MAP(next_mem)
908static MACHINE_CONFIG_START( next_base, next_state )
853909
854910    /* video hardware */
855911    MCFG_SCREEN_ADD("screen", RASTER)
856912    MCFG_SCREEN_REFRESH_RATE(60)
857913    MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
858914   MCFG_SCREEN_UPDATE_DRIVER(next_state, screen_update)
859    MCFG_SCREEN_SIZE(1120, 832)
915    MCFG_SCREEN_SIZE(1120, 900)
860916    MCFG_SCREEN_VISIBLE_AREA(0, 1120-1, 0, 832-1)
861917
862    MCFG_PALETTE_LENGTH(4)
863    MCFG_PALETTE_INIT(next)
864
865918   // devices
866919   MCFG_NSCSI_BUS_ADD("scsibus")
867920   MCFG_MCCS1850_ADD("rtc", XTAL_32_768kHz,
868                 mccs1850_device::cb_t(), mccs1850_device::cb_t(), mccs1850_device::cb_t())
869   MCFG_SCC8530_ADD("scc", XTAL_25MHz, scc8530_t::intrq_cb_t(FUNC(next_state::scc_irq), static_cast<next_state *>(owner)))
870   MCFG_NEXTKBD_ADD("keyboard", nextkbd_device::int_cb_t(FUNC(next_state::keyboard_irq), static_cast<next_state *>(owner)))
921                 line_cb_t(), line_cb_t(), line_cb_t())
922   MCFG_SCC8530_ADD("scc", XTAL_25MHz, line_cb_t(FUNC(next_state::scc_irq), static_cast<next_state *>(owner)))
923   MCFG_NEXTKBD_ADD("keyboard", line_cb_t(FUNC(next_state::keyboard_irq), static_cast<next_state *>(owner)))
871924   MCFG_NSCSI_ADD("scsibus:0", next_scsi_devices, "cdrom", 0)
872925   MCFG_NSCSI_ADD("scsibus:1", next_scsi_devices, "harddisk", 0)
873926   MCFG_NSCSI_ADD("scsibus:2", next_scsi_devices, 0, 0)
r14432r14433
884937               line_cb_t(FUNC(next_state::net_tx_drq), static_cast<next_state *>(owner)),
885938               line_cb_t(FUNC(next_state::net_rx_drq), static_cast<next_state *>(owner)))
886939   MCFG_NEXTMO_ADD("mo",
887               nextmo_device::cb_t(FUNC(next_state::mo_irq), static_cast<next_state *>(owner)),
888               nextmo_device::cb_t(FUNC(next_state::mo_drq), static_cast<next_state *>(owner)))
940               line_cb_t(FUNC(next_state::mo_irq), static_cast<next_state *>(owner)),
941               line_cb_t(FUNC(next_state::mo_drq), static_cast<next_state *>(owner)))
889942
890//   MCFG_CDROM_ADD("cdrom", next_state::cdrom_intf)
891//   MCFG_HARDDISK_CONFIG_ADD("harddisk0", next_state::harddisk_intf)
892
893943   // software list
894944   MCFG_SOFTWARE_LIST_ADD("flop_list", "next")
895945MACHINE_CONFIG_END
896946
897static MACHINE_CONFIG_DERIVED( next040, next )
898   MCFG_CPU_REPLACE("maincpu", M68040, XTAL_25MHz)
899   MCFG_CPU_PROGRAM_MAP(next_040_mem)
947static MACHINE_CONFIG_DERIVED( next, next_base )
948    MCFG_CPU_ADD("maincpu",M68030, XTAL_25MHz)
949    MCFG_CPU_PROGRAM_MAP(next_0b_nofdc_mem)
950MACHINE_CONFIG_END
900951
952static MACHINE_CONFIG_DERIVED( next_fdc_base, next_base )
901953   MCFG_N82077AA_ADD("fdc", n82077aa_device::MODE_PS2)
902954   MCFG_FLOPPY_DRIVE_ADD("fd0", next_floppies, "35ed", 0, next_state::floppy_formats)
903955MACHINE_CONFIG_END
904956
957static MACHINE_CONFIG_DERIVED( nexts, next_fdc_base )
958   MCFG_CPU_ADD("maincpu", M68040, XTAL_25MHz)
959   MCFG_CPU_PROGRAM_MAP(next_0b_mem)
960MACHINE_CONFIG_END
961
962static MACHINE_CONFIG_DERIVED( nexts2, next_fdc_base )
963   MCFG_CPU_ADD("maincpu", M68040, XTAL_25MHz)
964   MCFG_CPU_PROGRAM_MAP(next_0b_mem)
965MACHINE_CONFIG_END
966
967static MACHINE_CONFIG_DERIVED( nextsc, next_fdc_base )
968   MCFG_CPU_ADD("maincpu", M68040, XTAL_25MHz)
969   MCFG_CPU_PROGRAM_MAP(next_2c_mem)
970MACHINE_CONFIG_END
971
972static MACHINE_CONFIG_DERIVED( nextst, next_fdc_base )
973   MCFG_CPU_ADD("maincpu", M68040, XTAL_33MHz)
974   MCFG_CPU_PROGRAM_MAP(next_0b_mem)
975MACHINE_CONFIG_END
976
977static MACHINE_CONFIG_DERIVED( nextstc, next_fdc_base )
978   MCFG_CPU_ADD("maincpu", M68040, XTAL_33MHz)
979   MCFG_CPU_PROGRAM_MAP(next_0c_mem)
980   MCFG_SCREEN_MODIFY("screen")
981   MCFG_SCREEN_VISIBLE_AREA(0, 832-1, 0, 624-1)
982MACHINE_CONFIG_END
983
984static MACHINE_CONFIG_DERIVED( nextct, next_fdc_base )
985   MCFG_CPU_ADD("maincpu", M68040, XTAL_33MHz)
986   MCFG_CPU_PROGRAM_MAP(next_0c_mem)
987MACHINE_CONFIG_END
988
989static MACHINE_CONFIG_DERIVED( nextctc, next_fdc_base )
990   MCFG_CPU_ADD("maincpu", M68040, XTAL_33MHz)
991   MCFG_CPU_PROGRAM_MAP(next_0c_mem)
992   MCFG_SCREEN_MODIFY("screen")
993   MCFG_SCREEN_VISIBLE_AREA(0, 832-1, 0, 624-1)
994MACHINE_CONFIG_END
995
905996/* ROM definition */
906ROM_START( next ) // 68030
907    ROM_REGION32_BE( 0x20000, "user1", ROMREGION_ERASEFF )
908   ROM_SYSTEM_BIOS( 0, "v12", "v1.2" ) // version? word at 0xC: 5AD0
909   ROMX_LOAD( "rev_1.2.bin",     0x0000, 0x10000, CRC(7070bd78) SHA1(e34418423da61545157e36b084e2068ad41c9e24), ROM_BIOS(1)) /* Label: "(C) 1990 NeXT, Inc. // All Rights Reserved. // Release 1.2 // 1142.02", underlabel exists but unknown */
910   ROM_SYSTEM_BIOS( 1, "v10", "v1.0 v41" ) // version? word at 0xC: 3090
911   ROMX_LOAD( "rev_1.0_v41.bin", 0x0000, 0x10000, CRC(54df32b9) SHA1(06e3ecf09ab67a571186efd870e6b44028612371), ROM_BIOS(2)) /* Label: "(C) 1989 NeXT, Inc. // All Rights Reserved. // Release 1.0 // 1142.00", underlabel: "MYF // 1.0.41 // 0D5C" */
912   ROM_SYSTEM_BIOS( 2, "v10p", "v1.0 prototype?" ) // version? word at 0xC: 23D9
997#define ROM_NEXT_V1 \
998    ROM_REGION32_BE( 0x20000, "user1", ROMREGION_ERASEFF ) \
999   ROM_SYSTEM_BIOS( 0, "v12", "v1.2" ) /* version? word at 0xC: 5AD0 */ \
1000   ROMX_LOAD( "rev_1.2.bin",     0x0000, 0x10000, CRC(7070bd78) SHA1(e34418423da61545157e36b084e2068ad41c9e24), ROM_BIOS(1)) /* Label: "(C) 1990 NeXT, Inc. // All Rights Reserved. // Release 1.2 // 1142.02", underlabel exists but unknown */ \
1001   ROM_SYSTEM_BIOS( 1, "v10", "v1.0 v41" ) /* version? word at 0xC: 3090 */ \
1002   ROMX_LOAD( "rev_1.0_v41.bin", 0x0000, 0x10000, CRC(54df32b9) SHA1(06e3ecf09ab67a571186efd870e6b44028612371), ROM_BIOS(2)) /* Label: "(C) 1989 NeXT, Inc. // All Rights Reserved. // Release 1.0 // 1142.00", underlabel: "MYF // 1.0.41 // 0D5C" */ \
1003   ROM_SYSTEM_BIOS( 2, "v10p", "v1.0 prototype?" ) /* version? word at 0xC: 23D9 */ \
9131004   ROMX_LOAD( "rev_1.0_proto.bin", 0x0000, 0x10000, CRC(F44974F9) SHA1(09EAF9F5D47E379CFA0E4DC377758A97D2869DDC), ROM_BIOS(3)) /* Label: "(C) 1989 NeXT, Inc. // All Rights Reserved. // Release 1.0 // 1142.00", no underlabel */
9141005
915   ROM_REGION( 0x20, "rtc", 0 )
916   ROM_LOAD( "nvram.bin", 0x00, 0x20, CRC(52162469) SHA1(f49888af63d2d2658db4f41b3345cae153f42884) )
1006#define ROM_NEXT_V2 \
1007   ROM_REGION32_BE( 0x20000, "user1", ROMREGION_ERASEFF ) \
1008   ROM_SYSTEM_BIOS( 0, "v25", "v2.5 v66" ) /* version? word at 0xC: F302 */ \
1009   ROMX_LOAD( "rev_2.5_v66.bin", 0x0000, 0x20000, CRC(f47e0bfe) SHA1(b3534796abae238a0111299fc406a9349f7fee24), ROM_BIOS(1)) \
1010   ROM_SYSTEM_BIOS( 1, "v24", "v2.4 v65" ) /* version? word at 0xC: A634 */ \
1011   ROMX_LOAD( "rev_2.4_v65.bin", 0x0000, 0x20000, CRC(74e9e541) SHA1(67d195351288e90818336c3a84d55e6a070960d2), ROM_BIOS(2)) \
1012   ROM_SYSTEM_BIOS( 2, "v21a", "v2.1a? v60?" ) /* version? word at 0xC: 894C; NOT SURE about correct rom major and v versions of this one! */ \
1013   ROMX_LOAD( "rev_2.1a_v60.bin", 0x0000, 0x20000, CRC(739D7C07) SHA1(48FFE54CF2038782A92A0850337C5C6213C98571), ROM_BIOS(3)) /* Label: "(C) 1990 NeXT Computer, Inc. // All Rights Reserved. // Release 2.1 // 2918.AB" */ \
1014   ROM_SYSTEM_BIOS( 3, "v21", "v2.1 v59" ) /* version? word at 0xC: 72FE */ \
1015   ROMX_LOAD( "rev_2.1_v59.bin", 0x0000, 0x20000, CRC(f20ef956) SHA1(09586c6de1ca73995f8c9b99870ee3cc9990933a), ROM_BIOS(4)) \
1016   ROM_SYSTEM_BIOS( 4, "v12", "v1.2 v58" ) /* version? word at 0xC: 6372 */ \
1017   ROMX_LOAD( "rev_1.2_v58.bin", 0x0000, 0x20000, CRC(B815B6A4) SHA1(97D8B09D03616E1487E69D26609487486DB28090), ROM_BIOS(5)) /* Label: "V58 // (C) 1990 NeXT, Inc. // All Rights Reserved // Release 1.2 // 1142.02" */
1018
1019#define ROM_NEXT_V3 \
1020   ROM_REGION32_BE( 0x20000, "user1", ROMREGION_ERASEFF ) \
1021   ROM_SYSTEM_BIOS( 0, "v33", "v3.3 v74" ) /* version? word at 0xC: (12)3456 */ \
1022   ROMX_LOAD( "rev_3.3_v74.bin", 0x0000, 0x20000, CRC(fbc3a2cd) SHA1(a9bef655f26f97562de366e4a33bb462e764c929), ROM_BIOS(1)) \
1023   ROM_SYSTEM_BIOS( 1, "v32", "v3.2 v72" ) /* version? word at 0xC: (01)2f31 */ \
1024   ROMX_LOAD( "rev_3.2_v72.bin", 0x0000, 0x20000, CRC(e750184f) SHA1(ccebf03ed090a79c36f761265ead6cd66fb04329), ROM_BIOS(2)) \
1025   ROM_SYSTEM_BIOS( 2, "v30", "v3.0 v70" ) /* version? word at 0xC: (01)06e8 */ \
1026   ROMX_LOAD( "rev_3.0_v70.bin", 0x0000, 0x20000, CRC(37250453) SHA1(a7e42bd6a25c61903c8ca113d0b9a624325ee6cf), ROM_BIOS(3))
1027
1028
1029ROM_START(next)
1030   ROM_NEXT_V1
9171031ROM_END
9181032
919ROM_START( nextnt ) // 68040 non-turbo
920   ROM_REGION32_BE( 0x20000, "user1", ROMREGION_ERASEFF )
921   ROM_SYSTEM_BIOS( 0, "v25", "v2.5 v66" ) // version? word at 0xC: F302
922   ROMX_LOAD( "rev_2.5_v66.bin", 0x0000, 0x20000, CRC(f47e0bfe) SHA1(b3534796abae238a0111299fc406a9349f7fee24), ROM_BIOS(1))
923   ROM_SYSTEM_BIOS( 1, "v24", "v2.4 v65" ) // version? word at 0xC: A634
924   ROMX_LOAD( "rev_2.4_v65.bin", 0x0000, 0x20000, CRC(74e9e541) SHA1(67d195351288e90818336c3a84d55e6a070960d2), ROM_BIOS(2))
925   ROM_SYSTEM_BIOS( 2, "v21a", "v2.1a? v60?" ) // version? word at 0xC: 894C; NOT SURE about correct rom major and v versions of this one!
926   ROMX_LOAD( "rev_2.1a_v60.bin", 0x0000, 0x20000, CRC(739D7C07) SHA1(48FFE54CF2038782A92A0850337C5C6213C98571), ROM_BIOS(3)) /* Label: "(C) 1990 NeXT Computer, Inc. // All Rights Reserved. // Release 2.1 // 2918.AB" */
927   ROM_SYSTEM_BIOS( 3, "v21", "v2.1 v59" ) // version? word at 0xC: 72FE
928   ROMX_LOAD( "rev_2.1_v59.bin", 0x0000, 0x20000, CRC(f20ef956) SHA1(09586c6de1ca73995f8c9b99870ee3cc9990933a), ROM_BIOS(4))
929   ROM_SYSTEM_BIOS( 4, "v12", "v1.2 v58" ) // version? word at 0xC: 6372
930   ROMX_LOAD( "rev_1.2_v58.bin", 0x0000, 0x20000, CRC(B815B6A4) SHA1(97D8B09D03616E1487E69D26609487486DB28090), ROM_BIOS(5)) /* Label: "V58 // (C) 1990 NeXT, Inc. // All Rights Reserved // Release 1.2 // 1142.02" */
1033ROM_START(nexts)
1034   ROM_NEXT_V2
1035ROM_END
9311036
932   ROM_REGION( 0x20, "rtc", 0 )
933   ROM_LOAD( "nvram-nt.bin", 0x00, 0x20, BAD_DUMP CRC(7cb74196) SHA1(faa2177c2a08a6b76a6242761a9c0a8b64c4da6e) )
1037ROM_START(nexts2)
1038   ROM_NEXT_V2
9341039ROM_END
9351040
936ROM_START( nexttrb ) // 68040 turbo
937   ROM_REGION32_BE( 0x20000, "user1", ROMREGION_ERASEFF )
938   ROM_SYSTEM_BIOS( 0, "v33", "v3.3 v74" ) // version? word at 0xC: (12)3456
939   ROMX_LOAD( "rev_3.3_v74.bin", 0x0000, 0x20000, CRC(fbc3a2cd) SHA1(a9bef655f26f97562de366e4a33bb462e764c929), ROM_BIOS(1))
940   ROM_SYSTEM_BIOS( 1, "v32", "v3.2 v72" ) // version? word at 0xC: (01)2f31
941   ROMX_LOAD( "rev_3.2_v72.bin", 0x0000, 0x20000, CRC(e750184f) SHA1(ccebf03ed090a79c36f761265ead6cd66fb04329), ROM_BIOS(2))
942   ROM_SYSTEM_BIOS( 2, "v30", "v3.0 v70" ) // version? word at 0xC: (01)06e8
943   ROMX_LOAD( "rev_3.0_v70.bin", 0x0000, 0x20000, CRC(37250453) SHA1(a7e42bd6a25c61903c8ca113d0b9a624325ee6cf), ROM_BIOS(3))
1041ROM_START(nextsc)
1042   ROM_NEXT_V2
1043ROM_END
9441044
945   ROM_REGION( 0x20, "rtc", 0 )
946   ROM_LOAD( "nvram-trb.bin", 0x00, 0x20, CRC(2516dd08) SHA1(b20afe82efee5b625fb8afda14a1d14aabc8e07e) )
1045ROM_START(nextst)
1046   ROM_NEXT_V3
9471047ROM_END
9481048
949static DRIVER_INIT(nexttrb)
1049ROM_START(nextstc)
1050   ROM_NEXT_V3
1051ROM_END
1052
1053ROM_START(nextct)
1054   ROM_NEXT_V3
1055ROM_END
1056
1057ROM_START(nextctc)
1058   ROM_NEXT_V3
1059ROM_END
1060
1061static DRIVER_INIT(next)
9501062{
9511063   next_state *state = machine.driver_data<next_state>();
952   state->scr1 = 0x00011102;
1064   state->setup(0x00010002, 1120, 832, 2, false);
1065}
9531066
954   UINT32 *rom = (UINT32 *)(machine.region("user1")->base());
955   rom[0x329c/4] = 0x70004e71; // memory test funcall
956   rom[0x32a0/4] = 0x4e712400;
957   rom[0x03f8/4] = 0x001a4e71; // rom checksum
958   rom[0x03fc/4] = 0x4e714e71;
1067static DRIVER_INIT(nexts)
1068{
1069   next_state *state = machine.driver_data<next_state>();
1070   state->setup(0x00011002, 1120, 832, 2, false);
9591071}
9601072
961static DRIVER_INIT(nextnt)
1073static DRIVER_INIT(nexts2)
9621074{
9631075   next_state *state = machine.driver_data<next_state>();
964   state->scr1 = 0x00011102;
1076   state->setup(0x00012102, 1120, 832, 2, false);
9651077}
9661078
967static DRIVER_INIT(next)
1079static DRIVER_INIT(nextsc)
9681080{
9691081   next_state *state = machine.driver_data<next_state>();
970   state->scr1 = 0x00010002;
1082   state->setup(0x00013102, 1120, 832, 16, true);
1083}
9711084
1085static DRIVER_INIT(nextst)
1086{
1087   next_state *state = machine.driver_data<next_state>();
1088   state->setup(0x00014103, 1120, 832, 2, false);
1089}
1090
1091static DRIVER_INIT(nextstc)
1092{
1093   next_state *state = machine.driver_data<next_state>();
1094   state->setup(0x00015103,  832, 624, 0, true);
1095}
1096
1097static DRIVER_INIT(nextct)
1098{
1099   next_state *state = machine.driver_data<next_state>();
1100   state->setup(0x00018103, 1120, 832, 0, false);
1101}
1102
1103static DRIVER_INIT(nextctc)
1104{
1105   next_state *state = machine.driver_data<next_state>();
1106   state->setup(0x00019103,  832, 624, 0, true);
1107}
1108
1109/* Driver */
1110
1111/*    YEAR  NAME     PARENT  COMPAT   MACHINE    INPUT    INIT    COMPANY                 FULLNAME                     FLAGS */
1112COMP( 1987, next,    0,      0,       next,      next,    next,    "Next Software Inc",   "NeXT Cube",               GAME_NOT_WORKING | GAME_NO_SOUND)
1113COMP( 1990, nexts,   0,      0,       nexts,     next,    nexts,   "Next Software Inc",   "NeXTstation",            GAME_NOT_WORKING | GAME_NO_SOUND)
1114COMP( 1990, nexts2,  nexts,  0,       nexts2,    next,    nexts2,  "Next Software Inc",   "NeXTstation (X15 variant)",   GAME_NOT_WORKING | GAME_NO_SOUND)
1115COMP( 1990, nextsc,  nexts,  0,       nextsc,    next,    nextsc,  "Next Software Inc",   "NeXTstation color",         GAME_NOT_WORKING | GAME_NO_SOUND)
1116COMP( 1990, nextst,  0,      0,       nextst,    next,    nextst,  "Next Software Inc",   "NeXTstation turbo",         GAME_NOT_WORKING | GAME_NO_SOUND)
1117COMP( 1990, nextstc, nextst, 0,       nextstc,   next,    nextstc, "Next Software Inc",   "NeXTstation turbo color",   GAME_NOT_WORKING | GAME_NO_SOUND)
1118COMP( ????, nextct,  nextst, 0,       nextct,    next,    nextct,  "Next Software Inc",   "NeXT Cube turbo",         GAME_NOT_WORKING | GAME_NO_SOUND)
1119COMP( ????, nextctc, nextst, 0,       nextctc,   next,    nextctc, "Next Software Inc",   "NeXT Cube turbo color",      GAME_NOT_WORKING | GAME_NO_SOUND)
1120
1121      /*
1122
9721123   UINT32 *rom = (UINT32 *)(machine.region("user1")->base());
9731124   rom[0x3f48/4] = 0x2f017000; // memory test funcall
9741125   rom[0x3f4c/4] = 0x4e712400;
9751126   rom[0x00b8/4] = 0x001a4e71; // rom checksum
9761127   rom[0x00bc/4] = 0x4e714e71;
977}
9781128
979/* Driver */
980
981/*    YEAR  NAME    PARENT  COMPAT   MACHINE    INPUT    INIT    COMPANY                 FULLNAME               FLAGS */
982COMP( 1987, next,   0,          0,   next,      next,    next,    "Next Software Inc",   "NeXT Computer",      GAME_NOT_WORKING | GAME_NO_SOUND)
983COMP( 1990, nextnt, next,       0,   next040,   next,    nextnt,  "Next Software Inc",   "NeXT (Non Turbo)",      GAME_NOT_WORKING | GAME_NO_SOUND)
984COMP( 1992, nexttrb,next,       0,   next040,   next,    nexttrb, "Next Software Inc",   "NeXT (Turbo)",         GAME_NOT_WORKING | GAME_NO_SOUND)
1129v74
1130   UINT32 *rom = (UINT32 *)(machine.region("user1")->base());
1131   rom[0x329c/4] = 0x70004e71; // memory test funcall
1132   rom[0x32a0/4] = 0x4e712400;
1133   rom[0x03f8/4] = 0x001a4e71; // rom checksum
1134   rom[0x03fc/4] = 0x4e714e71;
1135      */
src/mess/drivers/x68k.c
r14432r14433
27732773
27742774   MCFG_HD63450_ADD( "hd63450", dmac_interface )
27752775
2776   MCFG_SCC8530_ADD( "scc", 5000000, scc8530_t::intrq_cb_t() )
2776   MCFG_SCC8530_ADD( "scc", 5000000, line_cb_t() )
27772777
27782778   MCFG_RP5C15_ADD(RP5C15_TAG, XTAL_32_768kHz, rtc_intf)
27792779
src/mess/drivers/ip20.c
r14432r14433
623623   MCFG_SOUND_ADD( "cdda", CDDA, 0 )
624624   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
625625
626   MCFG_SCC8530_ADD("scc", 7000000, scc8530_t::intrq_cb_t())
626   MCFG_SCC8530_ADD("scc", 7000000, line_cb_t())
627627
628628   MCFG_CDROM_ADD( "cdrom",ip20_cdrom )
629629

Previous 15994 Revisions Next


© 1998-2018 The MESS Team