Previous 15994 Revisions Next

r15676 Thursday 26th July, 2012 at 09:28:52 UTC by Jonathan Gevaryahu
VK100: Add the two previously-missing PROMs (not hooked up yet); Update notes a bit, correct location for the main roms according to tech manual (it turns out you count from the lower right corner upward, not upper right downward). [Lord Nightmare, Balrog, Andy V.]
[src/mess/drivers]vk100.c

src/mess/drivers/vk100.c
r15675r15676
88        Todo:
99              * fix vector generator hardware enough to pass the startup self test
1010                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
1312              * 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
1514
1615 Tony DiCenzo, now the director of standards and architecture at Oracle, was on the team that developed the VK100
1716 see http://startup.nmnaturalhistory.org/visitorstories/view.php?ii=79
r15675r15676
510509#endif
511510}
512511
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 */
514514WRITE8_MEMBER(vk100_state::BAUD)
515515{
516516   m_BAUD = data;
r15675r15676
574574static ADDRESS_MAP_START(vk100_mem, AS_PROGRAM, 8, vk100_state)
575575   ADDRESS_MAP_UNMAP_HIGH
576576   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)
578578   AM_RANGE( 0x8000, 0xbfff ) AM_RAM
579579ADDRESS_MAP_END
580580
r15675r15676
605605   //AM_RANGE (0x74, 0x74) AM_WRITE(unknown_74)
606606   //AM_RANGE (0x78, 0x78) AM_WRITE(kbdw)   //KBDW ?(mirror?)
607607   //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)
610610   AM_RANGE(0x50, 0x50) AM_DEVREAD("i8251", i8251_device, data_r) // UART O
611611   AM_RANGE(0x51, 0x51) AM_DEVREAD("i8251", i8251_device, status_r) // UAR
612612   //AM_RANGE (0x58, 0x58) AM_READ(unknown_58)
r15675r15676
634634      PORT_DIPSETTING( 0x10, "Even" )
635635      PORT_DIPSETTING( 0x08, "Odd" )
636636      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")
638638      PORT_DIPSETTING( 0x00, "110" )
639639      PORT_DIPSETTING( 0x80, "300" )
640640      PORT_DIPSETTING( 0x40, "600" )
r15675r15676
886886{
887887   DEVCB_NULL, // in_rxd_cb
888888   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
891891   DEVCB_NULL, // in_dsr_cb
892892   DEVCB_NULL, // out_dtr_cb
893893   DEVCB_NULL, // out_rts_cb
r15675r15676
924924MACHINE_CONFIG_END
925925
926926/* 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),
928The 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
928page 5-10 (pdf pg 114), The 4 firmware roms should go from 0x0000-0x1fff,
9290x2000-0x3fff, 0x4000-0x5fff and 0x6000-0x63ff; The last rom is actually a
930little bit longer and goes to 6fff. The data goes 6000-67ff and the 6800-6ff
931area is blank.
929932*/
930933ROM_START( vk100 )
931934   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))
936939
937940   ROM_REGION( 0x8000, "vram", ROMREGION_ERASE00 ) // 32k of vram
938941
r15675r15676
970973    * in the tech manual. see figure 5-23.
971974    * addr bits: 76543210
972975    *            ||||\\\\-- 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    *            \--------- ?
976979    *
977980    * data bits: 76543210
978981    *            |||||||\-- ? MAYBE WRT L
r15675r15676
994997    *            |||\------ ERROR CARRY (strobed in by STROBE L from the error counter's adder)
995998    *            ||\------- Y0 (the otherwise unused lsb of the Y register, used for bresenham)
996999    *            |\-------- feedback bit from d5 gated by vclk
997    *            \--------- GND/UNUSED?
1000    *            \--------- GND; the second half of the prom is blank (0x00)
9981001    * data bits: 76543210
9991002    *            |||||||\-- ENA X (enables change on X counter)
10001003    *            ||||||\--- ENA Y (enables change on Y counter)
r15675r15676
10051008    *            |\-------- UNUSED?
10061009    *            \--------- UNUSED?
10071010    */
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
10091012   /* this is the "SYNC ROM" == mb6331 (32x8, 82s123)
10101013    * It generates the ram RAS/CAS and a few other signals, see figure 5-20 on page 5-32
10111014    * The exact pins for each signal are not documented.
r15675r15676
10221025    *            |\-------- ? ra\__selects which slot of the 8x4 register file (du, dvm, dir, or wops) is selected
10231026    *            \--------- ? rb/
10241027    */
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
10261029ROM_END
10271030
10281031/* Driver */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team