src/mess/drivers/vk100.c
| r15675 | r15676 | |
| 8 | 8 | Todo: |
| 9 | 9 | * fix vector generator hardware enough to pass the startup self test |
| 10 | 10 | the tests are described on page 6-5 thru 6-8 of the tech reference |
| 11 | | * note that since two proms aren't dumped yet some stuff will have to be HLE'd for now |
| 12 | | btw, dump those two proms from andy's board |
| 11 | * hook up the direction and sync prom to the sync counter |
| 13 | 12 | * figure out the correct meaning of systat b register |
| 14 | | * hook up baud generator to i8251 rx and tx clocks |
| 13 | * hook up smc_5016t baud generator to i8251 rx and tx clocks |
| 15 | 14 | |
| 16 | 15 | Tony DiCenzo, now the director of standards and architecture at Oracle, was on the team that developed the VK100 |
| 17 | 16 | see http://startup.nmnaturalhistory.org/visitorstories/view.php?ii=79 |
| r15675 | r15676 | |
| 510 | 509 | #endif |
| 511 | 510 | } |
| 512 | 511 | |
| 513 | | /* port 0x6C: "BAUD" sets the dividers for the rx and tx clocks on the 8251 */ |
| 512 | /* port 0x6C: "BAUD" controls the smc 5016t baud generator which |
| 513 | * sets the dividers for the rx and tx clocks on the 8251 */ |
| 514 | 514 | WRITE8_MEMBER(vk100_state::BAUD) |
| 515 | 515 | { |
| 516 | 516 | m_BAUD = data; |
| r15675 | r15676 | |
| 574 | 574 | static ADDRESS_MAP_START(vk100_mem, AS_PROGRAM, 8, vk100_state) |
| 575 | 575 | ADDRESS_MAP_UNMAP_HIGH |
| 576 | 576 | AM_RANGE( 0x0000, 0x6fff ) AM_ROM |
| 577 | | AM_RANGE( 0x7000, 0x700f) AM_MIRROR(0x0ff0) AM_READ(vk100_keyboard_column_r) |
| 577 | AM_RANGE( 0x7000, 0x700f ) AM_MIRROR(0x0ff0) AM_READ(vk100_keyboard_column_r) |
| 578 | 578 | AM_RANGE( 0x8000, 0xbfff ) AM_RAM |
| 579 | 579 | ADDRESS_MAP_END |
| 580 | 580 | |
| r15675 | r15676 | |
| 605 | 605 | //AM_RANGE (0x74, 0x74) AM_WRITE(unknown_74) |
| 606 | 606 | //AM_RANGE (0x78, 0x78) AM_WRITE(kbdw) //KBDW ?(mirror?) |
| 607 | 607 | //AM_RANGE (0x7C, 0x7C) AM_WRITE(unknown_7C) |
| 608 | | AM_RANGE (0x40, 0x47) AM_READ(SYSTAT_A) // SYSTAT A (state machine done and last 4 bits of vram) |
| 609 | | AM_RANGE (0x48, 0x48) AM_READ(SYSTAT_B) // SYSTAT B (uart stuff and maybe dipswitches) |
| 608 | AM_RANGE (0x40, 0x47) AM_READ(SYSTAT_A) // SYSTAT A (state machine done and last 4 bits of vram, as well as dipswitches) |
| 609 | AM_RANGE (0x48, 0x48) AM_READ(SYSTAT_B) // SYSTAT B (uart stuff) |
| 610 | 610 | AM_RANGE(0x50, 0x50) AM_DEVREAD("i8251", i8251_device, data_r) // UART O |
| 611 | 611 | AM_RANGE(0x51, 0x51) AM_DEVREAD("i8251", i8251_device, status_r) // UAR |
| 612 | 612 | //AM_RANGE (0x58, 0x58) AM_READ(unknown_58) |
| r15675 | r15676 | |
| 634 | 634 | PORT_DIPSETTING( 0x10, "Even" ) |
| 635 | 635 | PORT_DIPSETTING( 0x08, "Odd" ) |
| 636 | 636 | PORT_DIPSETTING( 0x18, "Do Not Use This Setting" ) |
| 637 | | PORT_DIPNAME( 0xe0, 0xc0, "Default Baud Rate" ) PORT_DIPLOCATION("SW:!6,!7,!8") |
| 637 | PORT_DIPNAME( 0xe0, 0x00, "Default Baud Rate" ) PORT_DIPLOCATION("SW:!6,!7,!8") |
| 638 | 638 | PORT_DIPSETTING( 0x00, "110" ) |
| 639 | 639 | PORT_DIPSETTING( 0x80, "300" ) |
| 640 | 640 | PORT_DIPSETTING( 0x40, "600" ) |
| r15675 | r15676 | |
| 886 | 886 | { |
| 887 | 887 | DEVCB_NULL, // in_rxd_cb |
| 888 | 888 | DEVCB_NULL, // out_txd_cb |
| 889 | | //DEVCB_DRIVER_LINE_MEMBER(vk100_state, i8251_rx), // in_rxd_cb |
| 890 | | //DEVCB_DRIVER_LINE_MEMBER(vk100_state, i8251_tx), // out_txd_cb |
| 889 | //TODO: DEVCB_DRIVER_LINE_MEMBER(vk100_state, i8251_rx), // in_rxd_cb |
| 890 | //TODO: DEVCB_DRIVER_LINE_MEMBER(vk100_state, i8251_tx), // out_txd_cb |
| 891 | 891 | DEVCB_NULL, // in_dsr_cb |
| 892 | 892 | DEVCB_NULL, // out_dtr_cb |
| 893 | 893 | DEVCB_NULL, // out_rts_cb |
| r15675 | r15676 | |
| 924 | 924 | MACHINE_CONFIG_END |
| 925 | 925 | |
| 926 | 926 | /* ROM definition */ |
| 927 | | /* according to http://www.computer.museum.uq.edu.au/pdf/EK-VK100-TM-001%20VK100%20Technical%20Manual.pdf page 5-10 (pdf pg 114), |
| 928 | | The 4 firmware roms should go from 0x0000-0x1fff, 0x2000-0x3fff, 0x4000-0x5fff and 0x6000-0x63ff; The last rom is actually a little bit longer and goes to 6fff. |
| 927 | /* according to http://www.computer.museum.uq.edu.au/pdf/EK-VK100-TM-001%20VK100%20Technical%20Manual.pdf |
| 928 | page 5-10 (pdf pg 114), The 4 firmware roms should go from 0x0000-0x1fff, |
| 929 | 0x2000-0x3fff, 0x4000-0x5fff and 0x6000-0x63ff; The last rom is actually a |
| 930 | little bit longer and goes to 6fff. The data goes 6000-67ff and the 6800-6ff |
| 931 | area is blank. |
| 929 | 932 | */ |
| 930 | 933 | ROM_START( vk100 ) |
| 931 | 934 | ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF ) |
| 932 | | ROM_LOAD( "23-031e4-00.rom1.ic51", 0x0000, 0x2000, CRC(c8596398) SHA1(a8dc833dcdfb7550c030ac3d4143e266b1eab03a)) |
| 933 | | ROM_LOAD( "23-017e4-00.rom2.ic52", 0x2000, 0x2000, CRC(e857a01e) SHA1(914b2c51c43d0d181ffb74e3ea59d74e70ab0813)) |
| 934 | | ROM_LOAD( "23-018e4-00.rom3.ic53", 0x4000, 0x2000, CRC(b3e7903b) SHA1(8ad6ed25cd9b04a9968aa09ab69ba526d35ca550)) |
| 935 | | ROM_LOAD( "23-190e2-00.rom4.ic54", 0x6000, 0x1000, CRC(ad596fa5) SHA1(b30a24155640d32c1b47a3a16ea33cd8df2624f6)) |
| 935 | ROM_LOAD( "23-031e4-00.rom1.e53", 0x0000, 0x2000, CRC(c8596398) SHA1(a8dc833dcdfb7550c030ac3d4143e266b1eab03a)) |
| 936 | ROM_LOAD( "23-017e4-00.rom2.e52", 0x2000, 0x2000, CRC(e857a01e) SHA1(914b2c51c43d0d181ffb74e3ea59d74e70ab0813)) |
| 937 | ROM_LOAD( "23-018e4-00.rom3.e51", 0x4000, 0x2000, CRC(b3e7903b) SHA1(8ad6ed25cd9b04a9968aa09ab69ba526d35ca550)) |
| 938 | ROM_LOAD( "23-190e2-00.rom4.e50", 0x6000, 0x1000, CRC(ad596fa5) SHA1(b30a24155640d32c1b47a3a16ea33cd8df2624f6)) |
| 936 | 939 | |
| 937 | 940 | ROM_REGION( 0x8000, "vram", ROMREGION_ERASE00 ) // 32k of vram |
| 938 | 941 | |
| r15675 | r15676 | |
| 970 | 973 | * in the tech manual. see figure 5-23. |
| 971 | 974 | * addr bits: 76543210 |
| 972 | 975 | * ||||\\\\-- To sync counter, which counts 0xC 0x3 0x2 0x1 0x0 0x5 0x4 0xB 0xA 0x9 0x8 0xD in that order |
| 973 | | * ||\\---- ?VG_MODE? |
| 974 | | * |\------ CARRY_IN |
| 975 | | * \------- ? |
| 976 | * ||\\------ ?VG_MODE? |
| 977 | * |\-------- CARRY_IN |
| 978 | * \--------- ? |
| 976 | 979 | * |
| 977 | 980 | * data bits: 76543210 |
| 978 | 981 | * |||||||\-- ? MAYBE WRT L |
| r15675 | r15676 | |
| 994 | 997 | * |||\------ ERROR CARRY (strobed in by STROBE L from the error counter's adder) |
| 995 | 998 | * ||\------- Y0 (the otherwise unused lsb of the Y register, used for bresenham) |
| 996 | 999 | * |\-------- feedback bit from d5 gated by vclk |
| 997 | | * \--------- GND/UNUSED? |
| 1000 | * \--------- GND; the second half of the prom is blank (0x00) |
| 998 | 1001 | * data bits: 76543210 |
| 999 | 1002 | * |||||||\-- ENA X (enables change on X counter) |
| 1000 | 1003 | * ||||||\--- ENA Y (enables change on Y counter) |
| r15675 | r15676 | |
| 1005 | 1008 | * |\-------- UNUSED? |
| 1006 | 1009 | * \--------- UNUSED? |
| 1007 | 1010 | */ |
| 1008 | | ROM_LOAD( "wb8141_059b1.tbp18s22n.pr5.ic108", 0x0200, 0x0100, NO_DUMP) // label verified from andy's board |
| 1011 | ROM_LOAD( "wb8141_059b1.tbp18s22.pr5.ic108", 0x0200, 0x0100, CRC(4b63857a) SHA1(3217247d983521f0b0499b5c4ef6b5de9844c465)) // label verified from andy's board |
| 1009 | 1012 | /* this is the "SYNC ROM" == mb6331 (32x8, 82s123) |
| 1010 | 1013 | * It generates the ram RAS/CAS and a few other signals, see figure 5-20 on page 5-32 |
| 1011 | 1014 | * The exact pins for each signal are not documented. |
| r15675 | r15676 | |
| 1022 | 1025 | * |\-------- ? ra\__selects which slot of the 8x4 register file (du, dvm, dir, or wops) is selected |
| 1023 | 1026 | * \--------- ? rb/ |
| 1024 | 1027 | */ |
| 1025 | | ROM_LOAD( "wb8214_297a1.74s288.pr6.ic89", 0x0300, 0x0100, NO_DUMP) // label verified from nigwil's and andy's board |
| 1028 | ROM_LOAD( "wb8-14_297a1.74s288.pr6.ic89", 0x0300, 0x0020, CRC(e2f7c566) SHA1(a4c3dc5d07667141ad799168a862cb3c489b4934)) // label verified from nigwil's and andy's board |
| 1026 | 1029 | ROM_END |
| 1027 | 1030 | |
| 1028 | 1031 | /* Driver */ |