Previous 199869 Revisions Next

r29432 Tuesday 8th April, 2014 at 05:15:35 UTC by Jonathan Gevaryahu
(MESS) cat.c: update comments a bit, disable some debug code that got left on. (n/w)
[src/mess/drivers]cat.c

trunk/src/mess/drivers/cat.c
r29431r29432
282282    data, though track 0 is just a disk "unique" identifier for the cat
283283    meaning 404480 usable bytes
284284  * (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
288286- RS232C port and Modem "port" connected to the DUART's two ports
287  These are currently optionally debug-logged but don't connect anywhere
289288- DTMF generator chip (connected to DUART 'user output' pins OP4,5,6,7)
290289- WIP: Watchdog timer/powerfail at 0x85xxxx (watchdog NMI needs to actually
291290  fire if wdt goes above a certain number, possibly 3, 7 or F?)
r29431r29432
308307  happens inside an asic) for the SVROMS (or the svram or the code roms, for
309308  that matter!)
310309- Hook Battery Low input to a dipswitch.
311- Hook pfail to a dipswitch?
310- Hook pfail to a dipswitch.
312311- Hook the floppy control register readback up properly, things seem to get
313312  confused.
314313
r29431r29432
341340#undef DEBUG_FLOPPY_DATA_R
342341#undef DEBUG_FLOPPY_STATUS_R
343342
344#define DEBUG_PRINTER_DATA_W 1
343#undef DEBUG_PRINTER_DATA_W
345344#undef DEBUG_PRINTER_CONTROL_W
346345
347346#undef DEBUG_MODEM_R
r29431r29432
353352// data sent to modem chip
354353#undef DEBUG_DUART_TXB
355354#undef DEBUG_DUART_IRQ_HANDLER
356#define DEBUG_PRN_FF 1
355#undef DEBUG_PRN_FF
357356
358357#undef DEBUG_TEST_W
359358
r29431r29432
820819    * \--------- (unused?)
821820    */
822821#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);
824824#endif
825825   if (data&0x08) m_wdt_counter = 0;
826826   m_video_enable = BIT( data, 2 );
r29431r29432
834834    * before each write to SVRAM, the forth code does NOT actually do that!
835835    *
836836    * 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)
838838    *
839839    * FEDCBA98
840840    * |||||||\-- PFAIL state (MB3771 comparator: 1: vcc = 5v; 0: vcc != 5v, hence do not write to svram!)
r29431r29432
16731673   ROMX_LOAD( "boulth1.ic5", 0x20000, 0x10000, CRC(bed1f761) SHA1(d177e1d3a39b005dd94a6bda186221d597129af4), ROM_SKIP(1) | ROM_BIOS(1))
16741674   /* This 2.40 code was compiled by Dwight Elvey based on the v2.40 source
16751675    * 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.
16771678    * It is as of yet unknown whether it is earlier or later code than the
16781679    * set above.
16791680    */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team