src/mess/drivers/pdp11.c
| r12976 | r12977 | |
| 2 | 2 | |
| 3 | 3 | PDP-11 |
| 4 | 4 | |
| 5 | Unibus models |
| 6 | ================== |
| 7 | PDP-11/20 and PDP-11/15 — The original, non-microprogrammed processor; |
| 8 | designed by Jim O'Loughlin. Floating point was supported by |
| 9 | peripheral options using various data formats. |
| 10 | PDP-11/35 and PDP-11/40 — A microprogrammed successor to the PDP-11/20; |
| 11 | the design team was led by Jim O'Loughlin. |
| 12 | PDP-11/45, PDP-11/50, and PDP-11/55 — A much faster microprogrammed processor |
| 13 | that could use up to 256 kB of semiconductor memory instead of or in |
| 14 | addition to core memory. First model to support an optional FP11 |
| 15 | floating-point coprocessor, which established the format used in |
| 16 | later models. |
| 17 | PDP-11/70 — The 11/45 architecture expanded to allow 4 MB of physical memory |
| 18 | segregated onto a private memory bus, 2 kB of cache memory, and much |
| 19 | faster I/O devices connected via the Massbus.[9] |
| 20 | PDP-11/05 and PDP-11/10 — A cost-reduced successor to the PDP-11/20. |
| 21 | PDP-11/34 and PDP-11/04 — Cost-reduced follow-on products to the 11/35 |
| 22 | and 11/05; the PDP-11/34 concept was created by Bob Armstrong. |
| 23 | The 11/34 supported up to 256 kB of Unibus memory. The PDP-11/34a |
| 24 | supported a fast floating-point option, and the 11/34c supported a |
| 25 | cache memory option. |
| 26 | PDP-11/60 — A PDP-11 with user-writable microcontrol store; this was |
| 27 | designed by another team led by Jim O'Loughlin. |
| 28 | PDP-11/44 — Replacement for the 11/45 and 11/70 that supported optional cache |
| 29 | memory and floating-point processor, and included a sophisticated serial |
| 30 | console interface and support for 4 MB of physical memory. The design |
| 31 | team was managed by John Sofio. This was the last PDP-11 processor to |
| 32 | be constructed using discrete logic gates; later models were all |
| 33 | microprogrammed. |
| 34 | PDP-11/24 — First VLSI PDP-11 for Unibus, using the "Fonz-11" (F11) chip set |
| 35 | with a Unibus adapter. |
| 36 | PDP-11/84 — Using the VLSI "Jaws-11" (J11) chip set with a Unibus adapter. |
| 37 | PDP-11/94 — J11-based, faster than 11/84. |
| 38 | |
| 39 | Q-bus models |
| 40 | ============== |
| 41 | PDP-11/03 (also known as the LSI-11/03) — The first LSI PDP-11, this system |
| 42 | used a chipset from Western Digital and supported 60 kB of memory. |
| 43 | PDP-11/23 — Second generation of LSI (F-11). Early units supported |
| 44 | only 248 kB of memory. |
| 45 | PDP-11/23+/MicroPDP-11/23 — Improved 11/23 with more functions on the |
| 46 | (larger) processor card. |
| 47 | MicroPDP-11/73 — The third generation LSI-11, this system used the |
| 48 | faster "Jaws-11" (J-11) chip set and supported up to 4 MB of memory. |
| 49 | MicroPDP-11/53 — Slower 11/73 with on-board memory. |
| 50 | MicroPDP-11/83 — Faster 11/73 with PMI (private memory interconnect). |
| 51 | MicroPDP-11/93 — Faster 11/83; final DEC Q-Bus PDP-11 model. |
| 52 | KXJ11 - QBUS card (M7616) with PDP-11 based peripheral processor and |
| 53 | DMA controller. Based on a J11 CPU equipped with 512 kB of RAM, |
| 54 | 64 kB of ROM, and parallel and serial interfaces. |
| 55 | Mentec M100 — Mentec redesign of the 11/93, with J-11 chipset at 19.66 MHz, |
| 56 | four on-board serial ports, 1-4 MB of on-board memory, and optional FPU. |
| 57 | Mentec M11 — Processor upgrade board; microcode implementation of PDP-11 |
| 58 | instruction set by Mentec, using the TI 8832 ALU and TI 8818 |
| 59 | microsequencer from Texas Instruments. |
| 60 | Mentec M1 — Processor upgrade board; microcode implementation of |
| 61 | PDP-11 instruction set by Mentec, using Atmel 0.35 µm ASIC.[10] |
| 62 | Quickware QED-993 — High performance PDP-11/93 processor upgrade board. |
| 63 | DECserver 500 and 550 LAT terminal servers DSRVS-BA using the KDJ11-SB chipset |
| 64 | |
| 5 | 65 | 23/02/2009 Skeleton driver. |
| 6 | 66 | |
| 7 | 67 | ****************************************************************************/ |
| r12976 | r12977 | |
| 69 | 129 | AM_RANGE( 0xf000, 0xffff ) AM_RAM |
| 70 | 130 | ADDRESS_MAP_END |
| 71 | 131 | |
| 132 | #define M9312_PORT_CONFSETTING \ |
| 133 | PORT_CONFSETTING ( 0x00, "'DL' BOOT prom for RL11 controller") \ |
| 134 | PORT_CONFSETTING ( 0x01, "'DM' BOOT prom for RK06/07 controller") \ |
| 135 | PORT_CONFSETTING ( 0x02, "'DX' BOOT prom for RX01 compatible controller") \ |
| 136 | PORT_CONFSETTING ( 0x03, "'DP/DB' BOOT prom for RP02/03,RP04/5/6 RM02/3 controller") \ |
| 137 | PORT_CONFSETTING ( 0x04, "'DK/DT' BOOT prom for RRK03/05,TU55/56 controllers") \ |
| 138 | PORT_CONFSETTING ( 0x05, "'MM' BOOT prom for TU16/E16 TM02/3 controllers") \ |
| 139 | PORT_CONFSETTING ( 0x06, "'MT' BOOT prom for TU10/TS03 controller") \ |
| 140 | PORT_CONFSETTING ( 0x07, "'DS' BOOT prom for RS03/RS04 controller") \ |
| 141 | PORT_CONFSETTING ( 0x08, "'PR/TT' BOOT prom for PC05,LO SPD RDR controllers") \ |
| 142 | PORT_CONFSETTING ( 0x09, "'CT' BOOT prom for TA11/TU60 controller") \ |
| 143 | PORT_CONFSETTING ( 0x0a, "'RS' BOOT prom for RS11, RS64 controller") \ |
| 144 | PORT_CONFSETTING ( 0x0b, "'CR' BOOT prom for CR11 card reader") \ |
| 145 | PORT_CONFSETTING ( 0x0c, "'MS' BOOT prom for TS11/TS04/TU80 compatible controller") \ |
| 146 | PORT_CONFSETTING ( 0x0d, "'DD' BOOT prom for TU58 DECtapeII serial tape controller") \ |
| 147 | PORT_CONFSETTING ( 0x0e, "'DU' BOOT prom for MSCP compatible controller") \ |
| 148 | PORT_CONFSETTING ( 0x0f, "'XX' Unknown 1/3") \ |
| 149 | PORT_CONFSETTING ( 0x10, "'XX' Unknown 2/3") \ |
| 150 | PORT_CONFSETTING ( 0x11, "'XX' Unknown 3/3") \ |
| 151 | PORT_CONFSETTING ( 0x12, "'DY' BOOT prom for RX02 compatible controller") \ |
| 152 | PORT_CONFSETTING ( 0x13, "'XM' DECNET 1/3 (DECnet DDCMP DMC11/DMR11)") \ |
| 153 | PORT_CONFSETTING ( 0x14, "'XM' DECNET 2/3 (DECnet DDCMP DMC11/DMR11)") \ |
| 154 | PORT_CONFSETTING ( 0x15, "'XM' DECNET 3/3 (DECnet DDCMP DMC11/DMR11)") \ |
| 155 | PORT_CONFSETTING ( 0x16, "'XU' DECNET 1/3 (DECnet DDCMP DU11)") \ |
| 156 | PORT_CONFSETTING ( 0x17, "'XU' DECNET 2/3 (DECnet DDCMP DU11)") \ |
| 157 | PORT_CONFSETTING ( 0x18, "'XU' DECNET 3/3 (DECnet DDCMP DU11)") \ |
| 158 | PORT_CONFSETTING ( 0x19, "'XW' DECNET 1/3 (DECnet DDCMP DUP11)") \ |
| 159 | PORT_CONFSETTING ( 0x1a, "'XW' DECNET 2/3 (DECnet DDCMP DUP11)") \ |
| 160 | PORT_CONFSETTING ( 0x1b, "'XW' DECNET 3/3 (DECnet DDCMP DUP11)") \ |
| 161 | PORT_CONFSETTING ( 0x1c, "'XL' DECNET 1/3 (DECnet DDCMP DL11-E)") \ |
| 162 | PORT_CONFSETTING ( 0x1d, "'XL' DECNET 2/3 (DECnet DDCMP DL11-E)") \ |
| 163 | PORT_CONFSETTING ( 0x1e, "'XL' DECNET 3/3 (DECnet DDCMP DL11-E)") \ |
| 164 | PORT_CONFSETTING ( 0x1f, "'XE' DEUNA DECnet Ethernet") \ |
| 165 | PORT_CONFSETTING ( 0x20, "'MU' TMSCP tapes, including TK50, TU81") \ |
| 166 | |
| 72 | 167 | /* Input ports */ |
| 73 | 168 | static INPUT_PORTS_START( pdp11 ) |
| 169 | PORT_START( "CONSPROM" ) |
| 170 | PORT_CONFNAME ( 0x01, 0, "Console PROM" ) |
| 171 | PORT_CONFSETTING ( 0x00, "11/04/05/34/35/40/45/50/55" ) |
| 172 | PORT_CONFSETTING ( 0x01, "11/60-70" ) |
| 173 | PORT_START( "DEVPROM1" ) |
| 174 | PORT_CONFNAME ( 0x2f, 0x02, "Device 1 PROM" ) |
| 175 | M9312_PORT_CONFSETTING |
| 176 | PORT_START( "DEVPROM2" ) |
| 177 | PORT_CONFNAME ( 0x2f, 0x00, "Device 2 PROM" ) |
| 178 | M9312_PORT_CONFSETTING |
| 179 | PORT_START( "DEVPROM3" ) |
| 180 | PORT_CONFNAME ( 0x2f, 0x0d, "Device 3 PROM" ) |
| 181 | M9312_PORT_CONFSETTING |
| 182 | PORT_START( "DEVPROM4" ) |
| 183 | PORT_CONFNAME ( 0x2f, 0x08, "Device 4 PROM" ) |
| 184 | M9312_PORT_CONFSETTING |
| 74 | 185 | INPUT_PORTS_END |
| 75 | 186 | |
| 76 | 187 | |
| r12976 | r12977 | |
| 101 | 212 | } |
| 102 | 213 | } |
| 103 | 214 | |
| 104 | | static MACHINE_RESET(pdp11ub2) |
| 215 | static void load9312prom(UINT8 *desc, UINT8 *src, int size) |
| 105 | 216 | { |
| 106 | | // Load M9312 |
| 107 | | UINT8* user1 = machine.region("user1")->base(); |
| 108 | | UINT8* maincpu = machine.region("maincpu")->base(); |
| 109 | | int i; |
| 110 | | |
| 111 | 217 | // 3 2 1 8 |
| 112 | 218 | // 7 6 5 4 |
| 113 | 219 | // ~11 ~10 9 0 |
| 114 | 220 | // 15 14 13 ~12 |
| 115 | | for(i=0;i<0x100;i++) { |
| 116 | | UINT8 nib1 = user1[i*4+0]; |
| 117 | | UINT8 nib2 = user1[i*4+1]; |
| 118 | | UINT8 nib3 = user1[i*4+2]; |
| 119 | | UINT8 nib4 = user1[i*4+3]; |
| 221 | for(int i=0;i<size;i++) { |
| 222 | UINT8 nib1 = src[i*4+0]; |
| 223 | UINT8 nib2 = src[i*4+1]; |
| 224 | UINT8 nib3 = src[i*4+2]; |
| 225 | UINT8 nib4 = src[i*4+3]; |
| 120 | 226 | |
| 121 | | maincpu[0xea00 + i*2 + 0] = (nib2 << 4) + ((nib1 & 0x0e) | (nib3 & 1)); |
| 122 | | maincpu[0xea00 + i*2 + 1] = ((nib4 ^ 0x01)<<4) + ((nib1 & 0x01) | ((nib3 ^ 0x0c) & 0x0e)); |
| 227 | desc[i*2 + 0] = (nib2 << 4) + ((nib1 & 0x0e) | (nib3 & 1)); |
| 228 | desc[i*2 + 1] = ((nib4 ^ 0x01)<<4) + ((nib1 & 0x01) | ((nib3 ^ 0x0c) & 0x0e)); |
| 123 | 229 | } |
| 230 | } |
| 124 | 231 | |
| 125 | | cpu_set_reg(machine.device("maincpu"), T11_PC, 0xea10); // diag*/ |
| 126 | | //cpu_set_reg(machine.device("maincpu"), T11_PC, 0xea64); // no-diag |
| 232 | static MACHINE_RESET(pdp11ub2) |
| 233 | { |
| 234 | // Load M9312 |
| 235 | UINT8* user1 = machine.region("consproms")->base() + input_port_read(machine,"CONSPROM") * 0x0400; |
| 236 | UINT8* maincpu = machine.region("maincpu")->base(); |
| 237 | |
| 238 | //0165000 EA00 |
| 239 | load9312prom(maincpu + 0165000,user1,0x100); |
| 240 | cpu_set_reg(machine.device("maincpu"), T11_PC, 0165020); // diag*/ |
| 241 | //cpu_set_reg(machine.device("maincpu"), T11_PC, 0165144); // no-diag |
| 242 | |
| 243 | //0173000 F600 |
| 244 | load9312prom(maincpu + 0173000,machine.region("devproms")->base() + input_port_read(machine,"DEVPROM1") * 0x0200,0x080); |
| 245 | //0173200 F680 |
| 246 | load9312prom(maincpu + 0173200,machine.region("devproms")->base() + input_port_read(machine,"DEVPROM2") * 0x0200,0x080); |
| 247 | //0173400 F700 |
| 248 | load9312prom(maincpu + 0173400,machine.region("devproms")->base() + input_port_read(machine,"DEVPROM3") * 0x0200,0x080); |
| 249 | //0173600 F780 |
| 250 | load9312prom(maincpu + 0173600,machine.region("devproms")->base() + input_port_read(machine,"DEVPROM4") * 0x0200,0x080); |
| 251 | |
| 127 | 252 | } |
| 128 | 253 | |
| 129 | 254 | static MACHINE_RESET(pdp11qb) |
| r12976 | r12977 | |
| 189 | 314 | |
| 190 | 315 | ROM_START( pdp11ub2 ) |
| 191 | 316 | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) |
| 192 | | ROM_REGION( 0x1000, "user1", ROMREGION_ERASEFF ) |
| 193 | | ROM_LOAD( "23-248f1.bin", 0x0000, 0x0400, CRC(ecda1a6d) SHA1(b2bf770dda349fdd469235871564280baf06301d)) |
| 194 | | //ROM_LOAD( "23-616f1-1666.bin", 0x0000, 0x0400, CRC(a3dfb5aa) SHA1(7f06c624ae3fbb49535258b8722b5a3c548da3ba)) |
| 317 | ROM_REGION( 0x800, "consproms", ROMREGION_ERASEFF ) |
| 318 | ROM_LOAD( "23-248f1.bin", 0x0000, 0x0400, CRC(ecda1a6d) SHA1(b2bf770dda349fdd469235871564280baf06301d)) // M9312 11/04/05/34/35/40/45/50/55 Console/Diagnostic PROM |
| 319 | ROM_LOAD( "23-616f1.bin", 0x0400, 0x0400, CRC(a3dfb5aa) SHA1(7f06c624ae3fbb49535258b8722b5a3c548da3ba)) // M9312 11/60-70 Diagnostic/Console ROM |
| 320 | ROM_REGION( 0x4200, "devproms", ROMREGION_ERASEFF ) |
| 321 | ROM_LOAD( "23-751a9.bin", 0x0000, 0x0200, CRC(15bebc6a) SHA1(a621c5b1cebebbb110ee646a8c36ee4c606e269b)) // M9312 'DL' BOOT prom for RL11 controller |
| 322 | ROM_LOAD( "23-752a9.bin", 0x0200, 0x0200, CRC(6cf1f859) SHA1(7c876eda2f0d74d6f5d876256c28dbd56c405ca7)) // M9312 'DM' BOOT prom for RK06/07 controller |
| 323 | ROM_LOAD( "23-753a9.bin", 0x0400, 0x0200, CRC(f4c4b40c) SHA1(a0bdb922c722d439f35ba8149a8f657ffcc8fb54)) // M9312 'DX' BOOT prom for RX01 compatible controller |
| 324 | ROM_LOAD( "23-755a9.bin", 0x0600, 0x0200, CRC(ed06b35c) SHA1(d972c6a743d73ce9244d2bcfdd40eea2bb22e717)) // M9312 'DP/DB' BOOT prom for RP02/03,RP04/5/6 RM02/3 controller |
| 325 | ROM_LOAD( "23-756a9.bin", 0x0800, 0x0200, CRC(12271ab2) SHA1(f0ff42a8fd839dd75d6c1a25cc82d0933fd09dbc)) // M9312 'DK/DT' BOOT prom for RRK03/05,TU55/56 controllers |
| 326 | ROM_LOAD( "23-757a9.bin", 0x0a00, 0x0200, CRC(af251aab) SHA1(4d760ec3f6ff5f4e2cafcb44b275183872b69cb6)) // M9312 'MM' BOOT prom for TU16/E16 TM02/3 controllers |
| 327 | ROM_LOAD( "23-758a9.bin", 0x0c00, 0x0200, CRC(b71e8878) SHA1(f45c47c702c94a70c36732c12173ce60d0be1a11)) // M9312 'MT' BOOT prom for TU10/TS03 controller |
| 328 | ROM_LOAD( "23-759a9.bin", 0x0e00, 0x0200, CRC(29a93448) SHA1(0b549170c6a3f49c1587adb6cc691786111c0dd3)) // M9312 'DS' BOOT prom for RS03/RS04 controller |
| 329 | ROM_LOAD( "23-760a9.bin", 0x1000, 0x0200, CRC(ea093648) SHA1(3875a0147c43db1a5a381bbe85937a5628e6220c)) // M9312 'PR/TT' BOOT prom for PC05,LO SPD RDR controllers |
| 330 | ROM_LOAD( "23-761a9.bin", 0x1200, 0x0200, CRC(4310ebe8) SHA1(a3144f96819ea57acfac5de5e19961294e7d4ad9)) // M9312 'CT' BOOT prom for TA11/TU60 controller |
| 331 | ROM_LOAD( "23-762a9.bin", 0x1400, 0x0200, NO_DUMP) // M9312 'RS' BOOT prom for RS11, RS64 controller |
| 332 | ROM_LOAD( "23-763a9.bin", 0x1600, 0x0200, NO_DUMP) // M9312 'CR' BOOT prom for CR11 card reader |
| 333 | ROM_LOAD( "23-764a9.bin", 0x1800, 0x0200, CRC(7c8b7ed4) SHA1(ba0c9f03027eb3dafcc0936e877637d3c9947f94)) // M9312 'MS' BOOT prom for TS11/TS04/TU80 compatible controller |
| 334 | ROM_LOAD( "23-765a9.bin", 0x1a00, 0x0200, CRC(702dfeb2) SHA1(0d37bdd3846de4b104b8968a0e83ed81abd7f9ae)) // M9312 'DD' BOOT prom for TU58 DECtapeII serial tape controller |
| 335 | ROM_LOAD( "23-767a9.bin", 0x1c00, 0x0200, CRC(4b94e3fa) SHA1(3cf92c2f64f95e8cc3abb8af2526cc65ce53ca8a)) // M9312 'DU' BOOT prom for MSCP compatible controller |
| 336 | ROM_LOAD( "23-786a9.bin", 0x1e00, 0x0200, CRC(a5326664) SHA1(238f97fc5b2b540948ea1e27a4cd1dcf18255b21)) // M9312 'XX' Unknown 1/3 |
| 337 | ROM_LOAD( "23-787a9.bin", 0x2000, 0x0200, CRC(025debf9) SHA1(8ea2faf2e2d78be0ad2f77e61bae0dfb9c3b4b01)) // M9312 'XX' Unknown 2/3 |
| 338 | ROM_LOAD( "23-788a9.bin", 0x2200, 0x0200, CRC(3c7ed364) SHA1(519ffac2e4878490128e754a0473502c767a94e2)) // M9312 'XX' Unknown 3/3 |
| 339 | ROM_LOAD( "23-811a9.bin", 0x2400, 0x0200, CRC(9aa8499a) SHA1(11b040e0908d7492dcc450cbb72d76633dd687ca)) // M9312 'DY' BOOT prom for RX02 compatible controller |
| 340 | ROM_LOAD( "23-862a9.bin", 0x2600, 0x0200, CRC(38dbd994) SHA1(c5db671e6b70f3b4d345a02b46e0ea7566160d04)) // M9312 'XM' DECNET 1/3 (DECnet DDCMP DMC11/DMR11) |
| 341 | ROM_LOAD( "23-863a9.bin", 0x2800, 0x0200, CRC(bbef2f41) SHA1(f472b7a8bd4c0a49dc3ec38f886755910f73fe66)) // M9312 'XM' DECNET 2/3 (DECnet DDCMP DMC11/DMR11) |
| 342 | ROM_LOAD( "23-864a9.bin", 0x2a00, 0x0200, CRC(85cc17dc) SHA1(371dbd3c672fe4b1819762c3082c4217a7597547)) // M9312 'XM' DECNET 3/3 (DECnet DDCMP DMC11/DMR11) |
| 343 | ROM_LOAD( "23-865a9.bin", 0x2c00, 0x0200, NO_DUMP) // M9312 'XU' DECNET 1/3 (DECnet DDCMP DU11) |
| 344 | ROM_LOAD( "23-866a9.bin", 0x2e00, 0x0200, NO_DUMP) // M9312 'XU' DECNET 2/3 (DECnet DDCMP DU11) |
| 345 | ROM_LOAD( "23-867a9.bin", 0x3000, 0x0200, NO_DUMP) // M9312 'XU' DECNET 3/3 (DECnet DDCMP DU11) |
| 346 | ROM_LOAD( "23-868a9.bin", 0x3200, 0x0200, NO_DUMP) // M9312 'XW' DECNET 1/3 (DECnet DDCMP DUP11) |
| 347 | ROM_LOAD( "23-869a9.bin", 0x3400, 0x0200, NO_DUMP) // M9312 'XW' DECNET 2/3 (DECnet DDCMP DUP11) |
| 348 | ROM_LOAD( "23-870a9.bin", 0x3600, 0x0200, NO_DUMP) // M9312 'XW' DECNET 3/3 (DECnet DDCMP DUP11) |
| 349 | ROM_LOAD( "23-926a9.bin", 0x3800, 0x0200, NO_DUMP) // M9312 'XL' DECNET 1/3 (DECnet DDCMP DL11-E) |
| 350 | ROM_LOAD( "23-927a9.bin", 0x3a00, 0x0200, NO_DUMP) // M9312 'XL' DECNET 2/3 (DECnet DDCMP DL11-E) |
| 351 | ROM_LOAD( "23-928a9.bin", 0x3c00, 0x0200, NO_DUMP) // M9312 'XL' DECNET 3/3 (DECnet DDCMP DL11-E) |
| 352 | ROM_LOAD( "23-e22a9.bin", 0x3e00, 0x0200, NO_DUMP) // M9312 'XE' DEUNA DECnet Ethernet |
| 353 | ROM_LOAD( "23-e39a9.bin", 0x4000, 0x0200, CRC(4b94e3fa) SHA1(3cf92c2f64f95e8cc3abb8af2526cc65ce53ca8a)) // M9312 'MU' TMSCP tapes, including TK50, TU81 |
| 354 | |
| 195 | 355 | ROM_END |
| 196 | 356 | |
| 197 | 357 | ROM_START( pdp11qb ) |