Previous 15994 Revisions Next

r9531 Sunday 7th November, 2010 at 05:21:33 UTC by Robbbert
[MBEE] Added Teleterm computer. It has video and keyboard problems.
[src/mess]messdriv.c
[src/mess/drivers]mbee.c
[src/mess/includes]mbee.h
[src/mess/machine]mbee.c

src/mess/machine/mbee.c
r9530r9531
149149
150150static TIMER_CALLBACK( mbee256_kbd )
151151{
152    /* Keyboard scanner is a '3870' chip. Its speed of operation is determined by a 15k resistor on
152    /* Keyboard scanner is a Mostek M3870 chip. Its speed of operation is determined by a 15k resistor on
153153    pin 2 (XTL2) and is therefore unknown. If a key change is detected (up or down), the /strobe
154154    line activates, sending a high to bit 1 of port 2 (one of the pio input lines). The next read of
155155    port 18 will clear this line, and read the key scancode. It will also signal the 3870 that the key
156    data has been read, on pin 38 (/extint). The 3870 can cache up to 9 keys. With no data sheet
157    available, the following is a guess. */
156    data has been read, on pin 38 (/extint). The 3870 can cache up to 9 keys. With no rom dump
157    available, the following is a guess.
158158
159    The 3870 (MK3870) 8-bit microcontroller is a single chip implementation of Fairchild F8 (Mostek 3850).
160    It includes up to 4 KB of mask-programmable ROM, 64 bytes of scratchpad RAM and up to 64 bytes
161    of executable RAM. The MCU also integrates 32-bit I/O and a programmable timer. */
162
159163   UINT8 i, j;
160164   UINT8 pressed[15];
161165   char kbdrow[6];
r9530r9531
566570   for (i = 0; i < 15; i++) mbee256_was_pressed[i] = 0;
567571   mbee256_q_pos = 0;
568572   mbee256_50_w(mem,0,0); // set banks to default
573   memory_set_bank(machine, "boot", 8); // boot time
569574   timer_set(machine, ATTOTIME_IN_USEC(4), NULL, 0, mbee_reset);
570   memory_set_bank(machine, "boot", 8); // boot time
571575}
572576
577MACHINE_RESET( mbeett )
578{
579   UINT8 i;
580   mbee_rtc = machine->device<mc146818_device>("rtc");
581   for (i = 0; i < 15; i++) mbee256_was_pressed[i] = 0;
582   mbee256_q_pos = 0;
583   machine_reset_common(machine);
584   memory_set_bank(machine, "boot", 1);
585   timer_set(machine, ATTOTIME_IN_USEC(4), NULL, 0, mbee_reset);
586}
587
573588INTERRUPT_GEN( mbee_interrupt )
574589{
575590// Due to the uncertainly and hackage here, this is commented out for now - Robbbert - 05-Oct-2010
r9530r9531
730745   mbee_size = 0x8000;
731746}
732747
748DRIVER_INIT( mbeett )
749{
750   UINT8 *RAM = memory_region(machine, "maincpu");
751   memory_configure_bank(machine, "boot", 0, 2, &RAM[0x0000], 0x8000);
733752
753   RAM = memory_region(machine, "telcomrom");
754   memory_configure_bank(machine, "telcom", 0, 2, &RAM[0x0000], 0x1000);
755
756   RAM = memory_region(machine, "pakrom");
757   memory_configure_bank(machine, "pak", 0, 16, &RAM[0x0000], 0x2000);
758
759   memory_set_bank(machine, "pak", 5);
760   memory_set_bank(machine, "telcom", 0);
761
762   timer_pulse(machine, ATTOTIME_IN_HZ(1),NULL,0,mbee_rtc_irq);   /* timer for rtc */
763   timer_pulse(machine, ATTOTIME_IN_HZ(25),NULL,0,mbee256_kbd);   /* timer for kbd */
764
765   mbee_size = 0x8000;
766}
767
768
734769/***********************************************************
735770
736771    Quickload
src/mess/includes/mbee.h
r9530r9531
4545DRIVER_INIT( mbee64 );
4646DRIVER_INIT( mbee128 );
4747DRIVER_INIT( mbee256 );
48DRIVER_INIT( mbeett );
4849MACHINE_RESET( mbee );
4950MACHINE_RESET( mbee56 );
5051MACHINE_RESET( mbee64 );
5152MACHINE_RESET( mbee128 );
5253MACHINE_RESET( mbee256 );
54MACHINE_RESET( mbeett );
5355WRITE8_HANDLER( mbee_04_w );
5456WRITE8_HANDLER( mbee_06_w );
5557READ8_HANDLER( mbee_07_r );
src/mess/messdriv.c
r9530r9531
890890   DRIVER( sc80 )
891891
892892   /* Microbee Systems */
893   DRIVER( mbee )     /* Microbee 16 Standard or Plus    */
893   DRIVER( mbee )      /* Microbee 16 Standard or Plus    */
894894   DRIVER( mbeeic )   /* Microbee 32 IC      */
895895   DRIVER( mbeepc )   /* Microbee 32 PC      */
896   DRIVER( mbeepc85 )  /* Microbee 32 PC85  */
897   DRIVER( mbeepc85b )  /* Microbee 32 PC85 (Business version) */
898   DRIVER( mbeepc85s )  /* Microbee 32 PC85 (Swedish) */
899   DRIVER( mbeeppc )   /* Microbee 32 PPC85    */
896   DRIVER( mbeepc85 )   /* Microbee 32 PC85  */
897   DRIVER( mbeepc85b )   /* Microbee 32 PC85 (Business version) */
898   DRIVER( mbeepc85s )   /* Microbee 32 PC85 (Swedish) */
899   DRIVER( mbeeppc )   /* Microbee 32 PPC85    */
900   DRIVER( mbeett )   /* Microbee Teleterm */
900901   DRIVER( mbee56 )   /* Microbee 56K (CP/M)    */
901902   DRIVER( mbee64 )   /* Microbee 64K (CP/M)    */
902903   DRIVER( mbee128 )   /* Microbee 128K (CP/M)    */
src/mess/drivers/mbee.c
r9530r9531
1414
1515    Also thanks to the author of the "ubee512" emulator for his help.
1616
17    TeleTerm roms dumped by ejwords. The correct slots found by ubee512 author.
1718    Swedish roms dumped by nama. The correct slots found by ubee512 author.
1819
1920    Floppy Disk types (as used by ubee512)
r9530r9531
183184   AM_RANGE(0xf800, 0xffff) AM_RAMBANK("bankfh")
184185ADDRESS_MAP_END
185186
187static ADDRESS_MAP_START(mbeett_mem, ADDRESS_SPACE_PROGRAM, 8)
188   AM_RANGE(0x0000, 0x0fff) AM_RAMBANK("boot")
189   AM_RANGE(0x1000, 0x7fff) AM_RAM
190   AM_RANGE(0x8000, 0x9fff) AM_ROM
191   AM_RANGE(0xa000, 0xbfff) AM_RAM
192   AM_RANGE(0xc000, 0xdfff) AM_ROMBANK("pak")
193   AM_RANGE(0xe000, 0xefff) AM_ROMBANK("telcom")
194   AM_RANGE(0xf000, 0xf7ff) AM_READWRITE(mbeeppc_low_r, mbeeppc_low_w)
195   AM_RANGE(0xf800, 0xffff) AM_READWRITE(mbeeppc_high_r, mbeeppc_high_w)
196ADDRESS_MAP_END
186197
187198static ADDRESS_MAP_START(mbee_io, ADDRESS_SPACE_IO, 8)
188199   ADDRESS_MAP_GLOBAL_MASK(0xff)
r9530r9531
301312   // AM_RANGE(0x0068, 0x006f) AM_MIRROR(0xff00) Reserved for 8530 SCC (unused)
302313ADDRESS_MAP_END
303314
315static ADDRESS_MAP_START(mbeett_io, ADDRESS_SPACE_IO, 8)
316   ADDRESS_MAP_UNMAP_HIGH
317   AM_RANGE(0x0000, 0x0003) AM_MIRROR(0xff00) AM_DEVREADWRITE("z80pio", z80pio_ba_cd_r, z80pio_ba_cd_w)
318   AM_RANGE(0x0004, 0x0004) AM_MIRROR(0xff00) AM_WRITE(mbee_04_w)
319   AM_RANGE(0x0006, 0x0006) AM_MIRROR(0xff00) AM_WRITE(mbee_06_w)
320   AM_RANGE(0x0007, 0x0007) AM_MIRROR(0xff00) AM_READ(mbee_07_r)
321   AM_RANGE(0x0008, 0x0008) AM_MIRROR(0xff00) AM_READWRITE(mbeeic_08_r, mbeeic_08_w)
322   AM_RANGE(0x000b, 0x000b) AM_MIRROR(0xff00) AM_READWRITE(mbee_0b_r, mbee_0b_w)
323   AM_RANGE(0x000c, 0x000c) AM_MIRROR(0xff00) AM_READWRITE(m6545_status_r, m6545_index_w)
324   AM_RANGE(0x000d, 0x000d) AM_MIRROR(0xff00) AM_READWRITE(m6545_data_r, m6545_data_w)
325   AM_RANGE(0x0018, 0x001b) AM_MIRROR(0xff00) AM_READ(mbee256_18_r)
326   AM_RANGE(0x001c, 0x001f) AM_MIRROR(0xff00) AM_READWRITE(mbeeppc_1c_r,mbee256_1c_w)
327   AM_RANGE(0x000a, 0x000a) AM_MIRROR(0xfe10) AM_READWRITE(mbeepc_telcom_low_r, mbeeic_0a_w)
328   AM_RANGE(0x010a, 0x010a) AM_MIRROR(0xfe10) AM_READWRITE(mbeepc_telcom_high_r, mbeeic_0a_w)
329   // AM_RANGE(0x0068, 0x006f) AM_MIRROR(0xff00) 8530 SCC
330ADDRESS_MAP_END
331
304332static INPUT_PORTS_START( mbee )
305333   PORT_START("LINE0") /* IN0 KEY ROW 0 [000] */
306334   PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("@") PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR('@') PORT_CHAR('`')
r9530r9531
787815   MDRV_MC6845_ADD("crtc", SY6545_1, XTAL_13_5MHz / 8, mbee256_crtc)
788816MACHINE_CONFIG_END
789817
818static MACHINE_CONFIG_DERIVED( mbeett, mbeeppc )
819   MDRV_CPU_MODIFY( "maincpu" )
820   MDRV_CPU_PROGRAM_MAP(mbeett_mem)
821   MDRV_CPU_IO_MAP(mbeett_io)
822   MDRV_MACHINE_RESET( mbeett )
823   MDRV_MC146818_ADD( "rtc", MC146818_STANDARD )
824   MDRV_DEVICE_REMOVE("crtc")
825   MDRV_MC6845_ADD("crtc", SY6545_1, XTAL_13_5MHz / 8, mbee256_crtc)
826MACHINE_CONFIG_END
827
790828/* Unused roms:
791829    ROM_LOAD_OPTIONAL("net.rom", 0xe000,  0x1000, CRC(e14aac4c) SHA1(330902cf47f53c22c85003a620f7d7d3261ebb67) )
792830    customised for a certain high school. Requires pulsing at bit 3 port 0 before it runs.
r9530r9531
9731011   ROM_REGION( 0x0800, "colorram", ROMREGION_ERASE00 )
9741012ROM_END
9751013
1014ROM_START( mbeett )
1015   ROM_REGION(0x10000,"maincpu", ROMREGION_ERASEFF)
1016   ROM_LOAD("kernel_106.rom",        0x8000,  0x2000, CRC(5ab9cb1d) SHA1(a1fb971622f85c4d866b91cb4bec6d75757e8c5f) )
1017
1018   ROM_REGION(0x2000, "telcomrom", 0)
1019   ROM_LOAD("wm_106.rom",            0x0000,  0x2000, CRC(77e0b355) SHA1(1db6769cd6b12e1c335c83f17f8c139986c87758) )
1020
1021   ROM_REGION(0x20000, "pakrom", ROMREGION_ERASEFF)
1022   ROM_LOAD("tv_470311.rom",         0x2000,  0x2000, CRC(2c4c2dcb) SHA1(77cd75166a389cb2d1d8abf00b1ddd077ce98354) ) // 1
1023   ROM_CONTINUE( 0x12000, 0x2000 )
1024   ROM_LOAD("tw_103.rom",            0x4000,  0x2000, CRC(881edb4b) SHA1(f6e30a12b1537bd55b69d1319799b150e80a471b) ) // 2
1025   ROM_CONTINUE( 0x14000, 0x2000 )
1026   ROM_LOAD("oside_107.rom",         0x6000,  0x2000, CRC(05d99aba) SHA1(4f88d63025f99bcc54d6f2abc20a699c97384f68) ) // 3
1027   ROM_CONTINUE( 0x16000, 0x1000 )
1028   ROM_LOAD("test_105.rom",          0x8000,  0x2000, CRC(b69aa618) SHA1(49de8cbad59f549c7ad9f8efc9beee0cfcd901fe) ) // 4
1029
1030   ROM_REGION(0x9800, "gfx", 0)
1031   ROM_LOAD("charrom.bin",           0x1000,  0x1000, CRC(1f9fcee4) SHA1(e57ac94e03638075dde68a0a8c834a4f84ba47b0) )
1032   ROM_RELOAD( 0x0000, 0x1000 )
1033
1034   ROM_REGION( 0x0800, "videoram", ROMREGION_ERASE00 )
1035   ROM_REGION( 0x0800, "colorram", ROMREGION_ERASE00 )
1036   ROM_REGION( 0x0800, "attrib", ROMREGION_ERASE00 )
1037ROM_END
1038
9761039ROM_START( mbeeppc )
9771040   ROM_REGION(0x10000,"maincpu", ROMREGION_ERASEFF )
9781041   ROM_LOAD("bas529b.rom",           0xa000,  0x2000, CRC(a1bd986b) SHA1(5d79f210c9042db5aefc85a0bdf45210cb9e9899) )
r9530r9531
10771140/*    YEAR  NAME      PARENT    COMPAT  MACHINE   INPUT     INIT       COMPANY         FULLNAME */
10781141COMP( 1982, mbee,     0,   0,   mbee,     mbee,     mbee,         "Applied Technology",  "Microbee 16 Standard" , 0 )
10791142COMP( 1982, mbeeic,   mbee,   0,   mbeeic,   mbee,     mbeeic,       "Applied Technology",  "Microbee 32 IC" , 0 )
1080COMP( 1982, mbeepc,   mbee,   0,   mbeepc,   mbee,     mbeepc,       "Applied Technology",  "Microbee 32 Personal Communicator" , 0 )
1081COMP( 1985, mbeepc85, mbee,   0,   mbeepc85, mbee,     mbeepc85,      "Applied Technology",  "Microbee 32 PC85" , 0 )
1082COMP( 1985, mbeepc85b,mbee,   0,   mbeepc85b,mbee,     mbeepc85,      "Applied Technology",  "Microbee 32 PC85 (New version)" , 0 )
1083COMP( 1985, mbeepc85s,mbee,   0,   mbeepc85, mbee,     mbeepc85,      "Applied Technology",  "Microbee 32 PC85 (Swedish)" , 0 )
1084COMP( 1986, mbeeppc,  mbee,   0,   mbeeppc,  mbee,     mbeeppc,      "Applied Technology",  "Microbee 32 Premium PC85" , 0 )
1143COMP( 1982, mbeepc,   mbee,   0,   mbeepc,   mbee,     mbeepc,       "Applied Technology",  "Microbee Personal Communicator" , 0 )
1144COMP( 1985, mbeepc85, mbee,   0,   mbeepc85, mbee,     mbeepc85,      "Applied Technology",  "Microbee PC85" , 0 )
1145COMP( 1985, mbeepc85b,mbee,   0,   mbeepc85b,mbee,     mbeepc85,      "Applied Technology",  "Microbee PC85 (New version)" , 0 )
1146COMP( 1985, mbeepc85s,mbee,   0,   mbeepc85, mbee,     mbeepc85,      "Applied Technology",  "Microbee PC85 (Swedish)" , 0 )
1147COMP( 1986, mbeeppc,  mbee,   0,   mbeeppc,  mbee,     mbeeppc,      "Applied Technology",  "Microbee Premium PC85" , 0 )
1148COMP( 1986, mbeett,   mbee,   0,   mbeett,   mbee256,  mbeett,      "Applied Technology",  "Microbee Teleterm" , GAME_NOT_WORKING )
10851149COMP( 1986, mbee56,   mbee,   0,   mbee56,   mbee,     mbee56,       "Applied Technology",  "Microbee 56k" , GAME_NOT_WORKING )
10861150COMP( 1986, mbee64,   mbee,   0,   mbee64,   mbee,     mbee64,       "Applied Technology",  "Microbee 64k" , GAME_NOT_WORKING )
10871151COMP( 1986, mbee128,  mbee,   0,   mbee128,  mbee,     mbee128,       "Applied Technology",  "Microbee 128k" , GAME_NOT_WORKING )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team