src/mess/machine/mbee.c
| r9530 | r9531 | |
| 149 | 149 | |
| 150 | 150 | static TIMER_CALLBACK( mbee256_kbd ) |
| 151 | 151 | { |
| 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 |
| 153 | 153 | pin 2 (XTL2) and is therefore unknown. If a key change is detected (up or down), the /strobe |
| 154 | 154 | line activates, sending a high to bit 1 of port 2 (one of the pio input lines). The next read of |
| 155 | 155 | 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. |
| 158 | 158 | |
| 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 | |
| 159 | 163 | UINT8 i, j; |
| 160 | 164 | UINT8 pressed[15]; |
| 161 | 165 | char kbdrow[6]; |
| r9530 | r9531 | |
| 566 | 570 | for (i = 0; i < 15; i++) mbee256_was_pressed[i] = 0; |
| 567 | 571 | mbee256_q_pos = 0; |
| 568 | 572 | mbee256_50_w(mem,0,0); // set banks to default |
| 573 | memory_set_bank(machine, "boot", 8); // boot time |
| 569 | 574 | timer_set(machine, ATTOTIME_IN_USEC(4), NULL, 0, mbee_reset); |
| 570 | | memory_set_bank(machine, "boot", 8); // boot time |
| 571 | 575 | } |
| 572 | 576 | |
| 577 | MACHINE_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 | |
| 573 | 588 | INTERRUPT_GEN( mbee_interrupt ) |
| 574 | 589 | { |
| 575 | 590 | // Due to the uncertainly and hackage here, this is commented out for now - Robbbert - 05-Oct-2010 |
| r9530 | r9531 | |
| 730 | 745 | mbee_size = 0x8000; |
| 731 | 746 | } |
| 732 | 747 | |
| 748 | DRIVER_INIT( mbeett ) |
| 749 | { |
| 750 | UINT8 *RAM = memory_region(machine, "maincpu"); |
| 751 | memory_configure_bank(machine, "boot", 0, 2, &RAM[0x0000], 0x8000); |
| 733 | 752 | |
| 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 | |
| 734 | 769 | /*********************************************************** |
| 735 | 770 | |
| 736 | 771 | Quickload |
src/mess/drivers/mbee.c
| r9530 | r9531 | |
| 14 | 14 | |
| 15 | 15 | Also thanks to the author of the "ubee512" emulator for his help. |
| 16 | 16 | |
| 17 | TeleTerm roms dumped by ejwords. The correct slots found by ubee512 author. |
| 17 | 18 | Swedish roms dumped by nama. The correct slots found by ubee512 author. |
| 18 | 19 | |
| 19 | 20 | Floppy Disk types (as used by ubee512) |
| r9530 | r9531 | |
| 183 | 184 | AM_RANGE(0xf800, 0xffff) AM_RAMBANK("bankfh") |
| 184 | 185 | ADDRESS_MAP_END |
| 185 | 186 | |
| 187 | static 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) |
| 196 | ADDRESS_MAP_END |
| 186 | 197 | |
| 187 | 198 | static ADDRESS_MAP_START(mbee_io, ADDRESS_SPACE_IO, 8) |
| 188 | 199 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| r9530 | r9531 | |
| 301 | 312 | // AM_RANGE(0x0068, 0x006f) AM_MIRROR(0xff00) Reserved for 8530 SCC (unused) |
| 302 | 313 | ADDRESS_MAP_END |
| 303 | 314 | |
| 315 | static 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 |
| 330 | ADDRESS_MAP_END |
| 331 | |
| 304 | 332 | static INPUT_PORTS_START( mbee ) |
| 305 | 333 | PORT_START("LINE0") /* IN0 KEY ROW 0 [000] */ |
| 306 | 334 | PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_KEYBOARD ) PORT_NAME("@") PORT_CODE(KEYCODE_ASTERISK) PORT_CHAR('@') PORT_CHAR('`') |
| r9530 | r9531 | |
| 787 | 815 | MDRV_MC6845_ADD("crtc", SY6545_1, XTAL_13_5MHz / 8, mbee256_crtc) |
| 788 | 816 | MACHINE_CONFIG_END |
| 789 | 817 | |
| 818 | static 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) |
| 826 | MACHINE_CONFIG_END |
| 827 | |
| 790 | 828 | /* Unused roms: |
| 791 | 829 | ROM_LOAD_OPTIONAL("net.rom", 0xe000, 0x1000, CRC(e14aac4c) SHA1(330902cf47f53c22c85003a620f7d7d3261ebb67) ) |
| 792 | 830 | customised for a certain high school. Requires pulsing at bit 3 port 0 before it runs. |
| r9530 | r9531 | |
| 973 | 1011 | ROM_REGION( 0x0800, "colorram", ROMREGION_ERASE00 ) |
| 974 | 1012 | ROM_END |
| 975 | 1013 | |
| 1014 | ROM_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 ) |
| 1037 | ROM_END |
| 1038 | |
| 976 | 1039 | ROM_START( mbeeppc ) |
| 977 | 1040 | ROM_REGION(0x10000,"maincpu", ROMREGION_ERASEFF ) |
| 978 | 1041 | ROM_LOAD("bas529b.rom", 0xa000, 0x2000, CRC(a1bd986b) SHA1(5d79f210c9042db5aefc85a0bdf45210cb9e9899) ) |
| r9530 | r9531 | |
| 1077 | 1140 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT COMPANY FULLNAME */ |
| 1078 | 1141 | COMP( 1982, mbee, 0, 0, mbee, mbee, mbee, "Applied Technology", "Microbee 16 Standard" , 0 ) |
| 1079 | 1142 | COMP( 1982, mbeeic, mbee, 0, mbeeic, mbee, mbeeic, "Applied Technology", "Microbee 32 IC" , 0 ) |
| 1080 | | COMP( 1982, mbeepc, mbee, 0, mbeepc, mbee, mbeepc, "Applied Technology", "Microbee 32 Personal Communicator" , 0 ) |
| 1081 | | COMP( 1985, mbeepc85, mbee, 0, mbeepc85, mbee, mbeepc85, "Applied Technology", "Microbee 32 PC85" , 0 ) |
| 1082 | | COMP( 1985, mbeepc85b,mbee, 0, mbeepc85b,mbee, mbeepc85, "Applied Technology", "Microbee 32 PC85 (New version)" , 0 ) |
| 1083 | | COMP( 1985, mbeepc85s,mbee, 0, mbeepc85, mbee, mbeepc85, "Applied Technology", "Microbee 32 PC85 (Swedish)" , 0 ) |
| 1084 | | COMP( 1986, mbeeppc, mbee, 0, mbeeppc, mbee, mbeeppc, "Applied Technology", "Microbee 32 Premium PC85" , 0 ) |
| 1143 | COMP( 1982, mbeepc, mbee, 0, mbeepc, mbee, mbeepc, "Applied Technology", "Microbee Personal Communicator" , 0 ) |
| 1144 | COMP( 1985, mbeepc85, mbee, 0, mbeepc85, mbee, mbeepc85, "Applied Technology", "Microbee PC85" , 0 ) |
| 1145 | COMP( 1985, mbeepc85b,mbee, 0, mbeepc85b,mbee, mbeepc85, "Applied Technology", "Microbee PC85 (New version)" , 0 ) |
| 1146 | COMP( 1985, mbeepc85s,mbee, 0, mbeepc85, mbee, mbeepc85, "Applied Technology", "Microbee PC85 (Swedish)" , 0 ) |
| 1147 | COMP( 1986, mbeeppc, mbee, 0, mbeeppc, mbee, mbeeppc, "Applied Technology", "Microbee Premium PC85" , 0 ) |
| 1148 | COMP( 1986, mbeett, mbee, 0, mbeett, mbee256, mbeett, "Applied Technology", "Microbee Teleterm" , GAME_NOT_WORKING ) |
| 1085 | 1149 | COMP( 1986, mbee56, mbee, 0, mbee56, mbee, mbee56, "Applied Technology", "Microbee 56k" , GAME_NOT_WORKING ) |
| 1086 | 1150 | COMP( 1986, mbee64, mbee, 0, mbee64, mbee, mbee64, "Applied Technology", "Microbee 64k" , GAME_NOT_WORKING ) |
| 1087 | 1151 | COMP( 1986, mbee128, mbee, 0, mbee128, mbee, mbee128, "Applied Technology", "Microbee 128k" , GAME_NOT_WORKING ) |