src/mess/drivers/next.c
| r14432 | r14433 | |
| 4 | 4 | |
| 5 | 5 | TODO: |
| 6 | 6 | |
| 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) |
| 13 | 9 | |
| 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 | |
| 14 | 32 | Memory map and other bits can be found here: |
| 15 | 33 | http://fxr.watson.org/fxr/source/arch/next68k/include/cpu.h?v=NETBSD5#L366 |
| 16 | 34 | |
| r14432 | r14433 | |
| 24 | 42 | #include "machine/nscsi_cd.h" |
| 25 | 43 | #include "machine/nscsi_hd.h" |
| 26 | 44 | |
| 27 | | UINT32 next_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 45 | UINT32 next_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
| 28 | 46 | { |
| 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; |
| 31 | 50 | |
| 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 | } |
| 46 | 69 | } |
| 47 | | |
| 48 | | count++; |
| 70 | vr += screen_skip; |
| 49 | 71 | } |
| 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 | } |
| 50 | 84 | } |
| 51 | 85 | |
| 52 | 86 | return 0; |
| r14432 | r14433 | |
| 131 | 165 | /* |
| 132 | 166 | xxxx ---- ---- ---- ---- ---- ---- ---- slot ID |
| 133 | 167 | ---- ---- xxxx xxxx ---- ---- ---- ---- DMA type |
| 134 | | ---- ---- ---- ---- xxxx ---- ---- ---- cpu type |
| 168 | ---- ---- ---- ---- xxxx ---- ---- ---- machine type |
| 135 | 169 | ---- ---- ---- ---- ---- xxxx ---- ---- board revision |
| 136 | 170 | ---- ---- ---- ---- ---- ---- -xx- ---- video mem speed |
| 137 | 171 | ---- ---- ---- ---- ---- ---- ---x x--- mem speed |
| 138 | 172 | ---- ---- ---- ---- ---- ---- ---- -xxx cpu speed 16/20/25/33/40/50/66/80 |
| 139 | 173 | |
| 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 | |
| 140 | 186 | 68040-25: 00011102 |
| 141 | 187 | 68040-25: 00013002 (non-turbo, color) |
| 142 | 188 | */ |
| r14432 | r14433 | |
| 475 | 521 | } |
| 476 | 522 | } |
| 477 | 523 | |
| 478 | | WRITE32_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 | | |
| 486 | 524 | void next_state::dma_do_ctrl_w(int slot, UINT8 data) |
| 487 | 525 | { |
| 488 | 526 | const char *name = dma_name(slot); |
| r14432 | r14433 | |
| 667 | 705 | timer_tm->adjust(attotime::from_usec(timer_vbase)); |
| 668 | 706 | } |
| 669 | 707 | |
| 670 | | void next_state::scc_irq(int state) |
| 708 | void next_state::scc_irq(bool state) |
| 671 | 709 | { |
| 672 | 710 | irq_set(17, state); |
| 673 | 711 | } |
| r14432 | r14433 | |
| 727 | 765 | dma_drq_w(1, state); |
| 728 | 766 | } |
| 729 | 767 | |
| 768 | void 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 | |
| 730 | 777 | void next_state::machine_start() |
| 731 | 778 | { |
| 732 | 779 | save_item(NAME(scr2)); |
| r14432 | r14433 | |
| 796 | 843 | AM_RANGE(0x0201a000, 0x0201a003) AM_MIRROR(0x300000) AM_READ(event_counter_r) // EVENTC |
| 797 | 844 | // AM_RANGE(0x020c0000, 0x020c0004) AM_MIRROR(0x300000) BMAP |
| 798 | 845 | 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 |
| 800 | 846 | AM_RANGE(0x04000000, 0x07ffffff) AM_RAM //work ram |
| 801 | | AM_RANGE(0x0b000000, 0x0b03ffff) AM_RAM AM_BASE(vram) //vram |
| 802 | 847 | // AM_RANGE(0x0c000000, 0x0c03ffff) video RAM w A+B-AB function |
| 803 | 848 | // AM_RANGE(0x0d000000, 0x0d03ffff) video RAM w (1-A)B function |
| 804 | 849 | // AM_RANGE(0x0e000000, 0x0e03ffff) video RAM w ceil(A+B) function |
| r14432 | r14433 | |
| 807 | 852 | // AM_RANGE(0x14000000, 0x1403ffff) main RAM w (1-A)B function |
| 808 | 853 | // AM_RANGE(0x18000000, 0x1803ffff) main RAM w ceil(A+B) function |
| 809 | 854 | // AM_RANGE(0x1c000000, 0x1c03ffff) main RAM w AB function |
| 810 | | // AM_RANGE(0x2c000000, 0x2c1fffff) Color VRAM |
| 811 | 855 | ADDRESS_MAP_END |
| 812 | 856 | |
| 813 | | static 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) |
| 857 | static 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) |
| 861 | ADDRESS_MAP_END |
| 862 | |
| 863 | static ADDRESS_MAP_START( next_fdc_mem, AS_PROGRAM, 32, next_state ) |
| 815 | 864 | AM_RANGE(0x02014100, 0x02014107) AM_MIRROR(0x300000) AM_DEVICE8("fdc", n82077aa_device, amap, 0xffffffff) |
| 816 | 865 | AM_RANGE(0x02014108, 0x0201410b) AM_MIRROR(0x300000) AM_READWRITE(fdc_control_r, fdc_control_w) |
| 817 | 866 | |
| 818 | 867 | AM_IMPORT_FROM(next_mem) |
| 819 | 868 | ADDRESS_MAP_END |
| 820 | 869 | |
| 870 | static 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) |
| 874 | ADDRESS_MAP_END |
| 875 | |
| 876 | static 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) |
| 880 | ADDRESS_MAP_END |
| 881 | |
| 882 | static 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) |
| 886 | ADDRESS_MAP_END |
| 887 | |
| 888 | |
| 821 | 889 | /* Input ports */ |
| 822 | 890 | static INPUT_PORTS_START( next ) |
| 823 | 891 | INPUT_PORTS_END |
| 824 | 892 | |
| 825 | | static 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 | | |
| 834 | 893 | const floppy_format_type next_state::floppy_formats[] = { |
| 835 | 894 | FLOPPY_PC_FORMAT, |
| 836 | 895 | FLOPPY_MFI_FORMAT, |
| r14432 | r14433 | |
| 846 | 905 | SLOT_INTERFACE("harddisk", NSCSI_HARDDISK) |
| 847 | 906 | SLOT_INTERFACE_END |
| 848 | 907 | |
| 849 | | static 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) |
| 908 | static MACHINE_CONFIG_START( next_base, next_state ) |
| 853 | 909 | |
| 854 | 910 | /* video hardware */ |
| 855 | 911 | MCFG_SCREEN_ADD("screen", RASTER) |
| 856 | 912 | MCFG_SCREEN_REFRESH_RATE(60) |
| 857 | 913 | MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
| 858 | 914 | MCFG_SCREEN_UPDATE_DRIVER(next_state, screen_update) |
| 859 | | MCFG_SCREEN_SIZE(1120, 832) |
| 915 | MCFG_SCREEN_SIZE(1120, 900) |
| 860 | 916 | MCFG_SCREEN_VISIBLE_AREA(0, 1120-1, 0, 832-1) |
| 861 | 917 | |
| 862 | | MCFG_PALETTE_LENGTH(4) |
| 863 | | MCFG_PALETTE_INIT(next) |
| 864 | | |
| 865 | 918 | // devices |
| 866 | 919 | MCFG_NSCSI_BUS_ADD("scsibus") |
| 867 | 920 | 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))) |
| 871 | 924 | MCFG_NSCSI_ADD("scsibus:0", next_scsi_devices, "cdrom", 0) |
| 872 | 925 | MCFG_NSCSI_ADD("scsibus:1", next_scsi_devices, "harddisk", 0) |
| 873 | 926 | MCFG_NSCSI_ADD("scsibus:2", next_scsi_devices, 0, 0) |
| r14432 | r14433 | |
| 884 | 937 | line_cb_t(FUNC(next_state::net_tx_drq), static_cast<next_state *>(owner)), |
| 885 | 938 | line_cb_t(FUNC(next_state::net_rx_drq), static_cast<next_state *>(owner))) |
| 886 | 939 | 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))) |
| 889 | 942 | |
| 890 | | // MCFG_CDROM_ADD("cdrom", next_state::cdrom_intf) |
| 891 | | // MCFG_HARDDISK_CONFIG_ADD("harddisk0", next_state::harddisk_intf) |
| 892 | | |
| 893 | 943 | // software list |
| 894 | 944 | MCFG_SOFTWARE_LIST_ADD("flop_list", "next") |
| 895 | 945 | MACHINE_CONFIG_END |
| 896 | 946 | |
| 897 | | static MACHINE_CONFIG_DERIVED( next040, next ) |
| 898 | | MCFG_CPU_REPLACE("maincpu", M68040, XTAL_25MHz) |
| 899 | | MCFG_CPU_PROGRAM_MAP(next_040_mem) |
| 947 | static MACHINE_CONFIG_DERIVED( next, next_base ) |
| 948 | MCFG_CPU_ADD("maincpu",M68030, XTAL_25MHz) |
| 949 | MCFG_CPU_PROGRAM_MAP(next_0b_nofdc_mem) |
| 950 | MACHINE_CONFIG_END |
| 900 | 951 | |
| 952 | static MACHINE_CONFIG_DERIVED( next_fdc_base, next_base ) |
| 901 | 953 | MCFG_N82077AA_ADD("fdc", n82077aa_device::MODE_PS2) |
| 902 | 954 | MCFG_FLOPPY_DRIVE_ADD("fd0", next_floppies, "35ed", 0, next_state::floppy_formats) |
| 903 | 955 | MACHINE_CONFIG_END |
| 904 | 956 | |
| 957 | static MACHINE_CONFIG_DERIVED( nexts, next_fdc_base ) |
| 958 | MCFG_CPU_ADD("maincpu", M68040, XTAL_25MHz) |
| 959 | MCFG_CPU_PROGRAM_MAP(next_0b_mem) |
| 960 | MACHINE_CONFIG_END |
| 961 | |
| 962 | static MACHINE_CONFIG_DERIVED( nexts2, next_fdc_base ) |
| 963 | MCFG_CPU_ADD("maincpu", M68040, XTAL_25MHz) |
| 964 | MCFG_CPU_PROGRAM_MAP(next_0b_mem) |
| 965 | MACHINE_CONFIG_END |
| 966 | |
| 967 | static MACHINE_CONFIG_DERIVED( nextsc, next_fdc_base ) |
| 968 | MCFG_CPU_ADD("maincpu", M68040, XTAL_25MHz) |
| 969 | MCFG_CPU_PROGRAM_MAP(next_2c_mem) |
| 970 | MACHINE_CONFIG_END |
| 971 | |
| 972 | static MACHINE_CONFIG_DERIVED( nextst, next_fdc_base ) |
| 973 | MCFG_CPU_ADD("maincpu", M68040, XTAL_33MHz) |
| 974 | MCFG_CPU_PROGRAM_MAP(next_0b_mem) |
| 975 | MACHINE_CONFIG_END |
| 976 | |
| 977 | static 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) |
| 982 | MACHINE_CONFIG_END |
| 983 | |
| 984 | static MACHINE_CONFIG_DERIVED( nextct, next_fdc_base ) |
| 985 | MCFG_CPU_ADD("maincpu", M68040, XTAL_33MHz) |
| 986 | MCFG_CPU_PROGRAM_MAP(next_0c_mem) |
| 987 | MACHINE_CONFIG_END |
| 988 | |
| 989 | static 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) |
| 994 | MACHINE_CONFIG_END |
| 995 | |
| 905 | 996 | /* ROM definition */ |
| 906 | | ROM_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 */ \ |
| 913 | 1004 | 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 */ |
| 914 | 1005 | |
| 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 | |
| 1029 | ROM_START(next) |
| 1030 | ROM_NEXT_V1 |
| 917 | 1031 | ROM_END |
| 918 | 1032 | |
| 919 | | ROM_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" */ |
| 1033 | ROM_START(nexts) |
| 1034 | ROM_NEXT_V2 |
| 1035 | ROM_END |
| 931 | 1036 | |
| 932 | | ROM_REGION( 0x20, "rtc", 0 ) |
| 933 | | ROM_LOAD( "nvram-nt.bin", 0x00, 0x20, BAD_DUMP CRC(7cb74196) SHA1(faa2177c2a08a6b76a6242761a9c0a8b64c4da6e) ) |
| 1037 | ROM_START(nexts2) |
| 1038 | ROM_NEXT_V2 |
| 934 | 1039 | ROM_END |
| 935 | 1040 | |
| 936 | | ROM_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)) |
| 1041 | ROM_START(nextsc) |
| 1042 | ROM_NEXT_V2 |
| 1043 | ROM_END |
| 944 | 1044 | |
| 945 | | ROM_REGION( 0x20, "rtc", 0 ) |
| 946 | | ROM_LOAD( "nvram-trb.bin", 0x00, 0x20, CRC(2516dd08) SHA1(b20afe82efee5b625fb8afda14a1d14aabc8e07e) ) |
| 1045 | ROM_START(nextst) |
| 1046 | ROM_NEXT_V3 |
| 947 | 1047 | ROM_END |
| 948 | 1048 | |
| 949 | | static DRIVER_INIT(nexttrb) |
| 1049 | ROM_START(nextstc) |
| 1050 | ROM_NEXT_V3 |
| 1051 | ROM_END |
| 1052 | |
| 1053 | ROM_START(nextct) |
| 1054 | ROM_NEXT_V3 |
| 1055 | ROM_END |
| 1056 | |
| 1057 | ROM_START(nextctc) |
| 1058 | ROM_NEXT_V3 |
| 1059 | ROM_END |
| 1060 | |
| 1061 | static DRIVER_INIT(next) |
| 950 | 1062 | { |
| 951 | 1063 | next_state *state = machine.driver_data<next_state>(); |
| 952 | | state->scr1 = 0x00011102; |
| 1064 | state->setup(0x00010002, 1120, 832, 2, false); |
| 1065 | } |
| 953 | 1066 | |
| 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; |
| 1067 | static DRIVER_INIT(nexts) |
| 1068 | { |
| 1069 | next_state *state = machine.driver_data<next_state>(); |
| 1070 | state->setup(0x00011002, 1120, 832, 2, false); |
| 959 | 1071 | } |
| 960 | 1072 | |
| 961 | | static DRIVER_INIT(nextnt) |
| 1073 | static DRIVER_INIT(nexts2) |
| 962 | 1074 | { |
| 963 | 1075 | next_state *state = machine.driver_data<next_state>(); |
| 964 | | state->scr1 = 0x00011102; |
| 1076 | state->setup(0x00012102, 1120, 832, 2, false); |
| 965 | 1077 | } |
| 966 | 1078 | |
| 967 | | static DRIVER_INIT(next) |
| 1079 | static DRIVER_INIT(nextsc) |
| 968 | 1080 | { |
| 969 | 1081 | next_state *state = machine.driver_data<next_state>(); |
| 970 | | state->scr1 = 0x00010002; |
| 1082 | state->setup(0x00013102, 1120, 832, 16, true); |
| 1083 | } |
| 971 | 1084 | |
| 1085 | static DRIVER_INIT(nextst) |
| 1086 | { |
| 1087 | next_state *state = machine.driver_data<next_state>(); |
| 1088 | state->setup(0x00014103, 1120, 832, 2, false); |
| 1089 | } |
| 1090 | |
| 1091 | static DRIVER_INIT(nextstc) |
| 1092 | { |
| 1093 | next_state *state = machine.driver_data<next_state>(); |
| 1094 | state->setup(0x00015103, 832, 624, 0, true); |
| 1095 | } |
| 1096 | |
| 1097 | static DRIVER_INIT(nextct) |
| 1098 | { |
| 1099 | next_state *state = machine.driver_data<next_state>(); |
| 1100 | state->setup(0x00018103, 1120, 832, 0, false); |
| 1101 | } |
| 1102 | |
| 1103 | static 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 */ |
| 1112 | COMP( 1987, next, 0, 0, next, next, next, "Next Software Inc", "NeXT Cube", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 1113 | COMP( 1990, nexts, 0, 0, nexts, next, nexts, "Next Software Inc", "NeXTstation", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 1114 | COMP( 1990, nexts2, nexts, 0, nexts2, next, nexts2, "Next Software Inc", "NeXTstation (X15 variant)", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 1115 | COMP( 1990, nextsc, nexts, 0, nextsc, next, nextsc, "Next Software Inc", "NeXTstation color", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 1116 | COMP( 1990, nextst, 0, 0, nextst, next, nextst, "Next Software Inc", "NeXTstation turbo", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 1117 | COMP( 1990, nextstc, nextst, 0, nextstc, next, nextstc, "Next Software Inc", "NeXTstation turbo color", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 1118 | COMP( ????, nextct, nextst, 0, nextct, next, nextct, "Next Software Inc", "NeXT Cube turbo", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 1119 | COMP( ????, nextctc, nextst, 0, nextctc, next, nextctc, "Next Software Inc", "NeXT Cube turbo color", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 1120 | |
| 1121 | /* |
| 1122 | |
| 972 | 1123 | UINT32 *rom = (UINT32 *)(machine.region("user1")->base()); |
| 973 | 1124 | rom[0x3f48/4] = 0x2f017000; // memory test funcall |
| 974 | 1125 | rom[0x3f4c/4] = 0x4e712400; |
| 975 | 1126 | rom[0x00b8/4] = 0x001a4e71; // rom checksum |
| 976 | 1127 | rom[0x00bc/4] = 0x4e714e71; |
| 977 | | } |
| 978 | 1128 | |
| 979 | | /* Driver */ |
| 980 | | |
| 981 | | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME FLAGS */ |
| 982 | | COMP( 1987, next, 0, 0, next, next, next, "Next Software Inc", "NeXT Computer", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 983 | | COMP( 1990, nextnt, next, 0, next040, next, nextnt, "Next Software Inc", "NeXT (Non Turbo)", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 984 | | COMP( 1992, nexttrb,next, 0, next040, next, nexttrb, "Next Software Inc", "NeXT (Turbo)", GAME_NOT_WORKING | GAME_NO_SOUND) |
| 1129 | v74 |
| 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 | */ |