trunk/src/mess/drivers/cat.c
| r29431 | r29432 | |
| 282 | 282 | data, though track 0 is just a disk "unique" identifier for the cat |
| 283 | 283 | meaning 404480 usable bytes |
| 284 | 284 | * (Once the floppy is working I'd declare the system working) |
| 285 | | - WIP: Centronics port (not sure what is wrong right now, ip4 is never reading |
| 286 | | as high meaning nothing works; does our centronics implementation correctly |
| 287 | | assert BUSY at all?) |
| 285 | - Centronics port finishing touches: verify where the paper out, slct/err, and IPP pins map in memory |
| 288 | 286 | - RS232C port and Modem "port" connected to the DUART's two ports |
| 287 | These are currently optionally debug-logged but don't connect anywhere |
| 289 | 288 | - DTMF generator chip (connected to DUART 'user output' pins OP4,5,6,7) |
| 290 | 289 | - WIP: Watchdog timer/powerfail at 0x85xxxx (watchdog NMI needs to actually |
| 291 | 290 | fire if wdt goes above a certain number, possibly 3, 7 or F?) |
| r29431 | r29432 | |
| 308 | 307 | happens inside an asic) for the SVROMS (or the svram or the code roms, for |
| 309 | 308 | that matter!) |
| 310 | 309 | - Hook Battery Low input to a dipswitch. |
| 311 | | - Hook pfail to a dipswitch? |
| 310 | - Hook pfail to a dipswitch. |
| 312 | 311 | - Hook the floppy control register readback up properly, things seem to get |
| 313 | 312 | confused. |
| 314 | 313 | |
| r29431 | r29432 | |
| 341 | 340 | #undef DEBUG_FLOPPY_DATA_R |
| 342 | 341 | #undef DEBUG_FLOPPY_STATUS_R |
| 343 | 342 | |
| 344 | | #define DEBUG_PRINTER_DATA_W 1 |
| 343 | #undef DEBUG_PRINTER_DATA_W |
| 345 | 344 | #undef DEBUG_PRINTER_CONTROL_W |
| 346 | 345 | |
| 347 | 346 | #undef DEBUG_MODEM_R |
| r29431 | r29432 | |
| 353 | 352 | // data sent to modem chip |
| 354 | 353 | #undef DEBUG_DUART_TXB |
| 355 | 354 | #undef DEBUG_DUART_IRQ_HANDLER |
| 356 | | #define DEBUG_PRN_FF 1 |
| 355 | #undef DEBUG_PRN_FF |
| 357 | 356 | |
| 358 | 357 | #undef DEBUG_TEST_W |
| 359 | 358 | |
| r29431 | r29432 | |
| 820 | 819 | * \--------- (unused?) |
| 821 | 820 | */ |
| 822 | 821 | #ifdef DEBUG_GA2OPR_W |
| 823 | | fprintf(stderr, "GA2 OPR (video ena/inv, watchdog, and phone relay) reg write: offset %06X, data %04X\n", 0x840000+(offset<<1), data); |
| 822 | if (data != 0x001C) |
| 823 | fprintf(stderr, "GA2 OPR (video ena/inv, watchdog, and phone relay) reg write: offset %06X, data %04X\n", 0x840000+(offset<<1), data); |
| 824 | 824 | #endif |
| 825 | 825 | if (data&0x08) m_wdt_counter = 0; |
| 826 | 826 | m_video_enable = BIT( data, 2 ); |
| r29431 | r29432 | |
| 834 | 834 | * before each write to SVRAM, the forth code does NOT actually do that! |
| 835 | 835 | * |
| 836 | 836 | * 76543210 |
| 837 | | * ??????\\-- Watchdog count? (counts upward? if this reaches <some unknown number greater than 2> the watchdog fires? writing bit 3 set to opr above resets this) |
| 837 | * ??????\\-- Watchdog count? (counts upward? if this reaches <some unknown number greater than 3> the watchdog fires? writing bit 3 set to opr above resets this) |
| 838 | 838 | * |
| 839 | 839 | * FEDCBA98 |
| 840 | 840 | * |||||||\-- PFAIL state (MB3771 comparator: 1: vcc = 5v; 0: vcc != 5v, hence do not write to svram!) |
| r29431 | r29432 | |
| 1673 | 1673 | ROMX_LOAD( "boulth1.ic5", 0x20000, 0x10000, CRC(bed1f761) SHA1(d177e1d3a39b005dd94a6bda186221d597129af4), ROM_SKIP(1) | ROM_BIOS(1)) |
| 1674 | 1674 | /* This 2.40 code was compiled by Dwight Elvey based on the v2.40 source |
| 1675 | 1675 | * code disks recovered around 2004. It does NOT exactly match the above |
| 1676 | | * set exactly but has a few small differences. |
| 1676 | * set exactly but has a few small differences. One of the printer drivers |
| 1677 | * may have been replaced by Dwight with an HP PCL4 driver. |
| 1677 | 1678 | * It is as of yet unknown whether it is earlier or later code than the |
| 1678 | 1679 | * set above. |
| 1679 | 1680 | */ |