trunk/src/mess/drivers/mcb216.c
| r26460 | r26461 | |
| 2 | 2 | // copyright-holders:Robbbert |
| 3 | 3 | /*************************************************************************** |
| 4 | 4 | |
| 5 | | 2013-12-01 Driver for Cromemco MCB-216 SCC (Single Card Computer) |
| 5 | 2013-12-01 Driver for Cromemco MCB-216 SCC (Single Card Computer), |
| 6 | and also the earlier CB-308. |
| 7 | |
| 6 | 8 | The driver is working, just missing some hardware info (see ToDo). |
| 7 | 9 | |
| 8 | 10 | TODO: |
| r26460 | r26461 | |
| 15 | 17 | - 2000 to 23FF - standard ram |
| 16 | 18 | - 2400 to FFFF - optional whatever the user wants (expect ram) |
| 17 | 19 | |
| 18 | | When started, you must press Enter twice, then you will be in BASIC. |
| 19 | | To go to the monitor, use the QUIT command, and to return use the B |
| 20 | | command. |
| 20 | MCB-216: |
| 21 | Press Enter twice. You will see the Basic OK prompt. To get into the |
| 22 | monitor, use the QUIT command, and to return use the B command. |
| 21 | 23 | |
| 22 | 24 | The mcb216 can use an optional floppy-disk-drive unit. The only other |
| 23 | 25 | storage is paper-tape, which is expected to be attached to the terminal. |
| 24 | 26 | |
| 27 | CB-308: |
| 28 | Press Enter twice. You will see the Monitor logo. To get into the |
| 29 | BASIC (if it was fitted), enter GE400. All monitor commands must be |
| 30 | in uppercase. The only storage is paper-tape. |
| 31 | |
| 25 | 32 | ****************************************************************************/ |
| 26 | 33 | |
| 27 | 34 | #include "emu.h" |
| r26460 | r26461 | |
| 69 | 76 | AM_RANGE(0xe000, 0xefff) AM_ROM AM_REGION("roms", 0) |
| 70 | 77 | ADDRESS_MAP_END |
| 71 | 78 | |
| 72 | | // io unknown, assumed to be the same as mcb216 |
| 73 | | static ADDRESS_MAP_START(cb308_io, AS_IO, 8, mcb216_state) |
| 74 | | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 75 | | AM_RANGE(0x00, 0x00) AM_READ(status_r) |
| 76 | | AM_RANGE(0x01, 0x01) AM_READ(keyin_r) AM_DEVWRITE(TERMINAL_TAG, generic_terminal_device, write) |
| 77 | | ADDRESS_MAP_END |
| 78 | 79 | |
| 79 | | |
| 80 | 80 | /* Input ports */ |
| 81 | 81 | static INPUT_PORTS_START( mcb216 ) |
| 82 | 82 | INPUT_PORTS_END |
| r26460 | r26461 | |
| 132 | 132 | /* basic machine hardware */ |
| 133 | 133 | MCFG_CPU_ADD("maincpu", Z80, 4000000) |
| 134 | 134 | MCFG_CPU_PROGRAM_MAP(cb308_mem) |
| 135 | | MCFG_CPU_IO_MAP(cb308_io) |
| 135 | MCFG_CPU_IO_MAP(mcb216_io) |
| 136 | 136 | MCFG_MACHINE_RESET_OVERRIDE(mcb216_state, cb308) |
| 137 | 137 | |
| 138 | 138 | /* video hardware */ |
| r26460 | r26461 | |
| 148 | 148 | |
| 149 | 149 | ROM_START( cb308 ) |
| 150 | 150 | ROM_REGION(0x1000, "roms", 0) |
| 151 | | ROM_LOAD( "cb308r0", 0x0000, 0x0800, NO_DUMP ) |
| 152 | | ROM_LOAD( "cb308r1", 0x0800, 0x0800, NO_DUMP ) |
| 151 | ROM_LOAD( "cb308r0", 0x0000, 0x0400, CRC(62f50531) SHA1(3071e2ab7fc6b2ca889e4fb5cf7cc9ee8fbe53d3) ) |
| 152 | // undumped BASIC |
| 153 | ROM_LOAD( "cb308r1", 0x0400, 0x0400, NO_DUMP ) |
| 154 | ROM_LOAD( "cb308r2", 0x0800, 0x0400, NO_DUMP ) |
| 155 | ROM_LOAD( "cb308r3", 0x0c00, 0x0400, NO_DUMP ) |
| 153 | 156 | ROM_END |
| 154 | 157 | |
| 155 | 158 | /* Driver */ |