This is an enhancement to Wojtek Zabolotny's C2 programmer.  There are two
significant enhancements:
1) I have included the source code for a new program, c2mon.c, which
   demonstrates how to perform debugging operations with the C2 interface.
   It is very crude as far as programs go (there's no user interaction), but
   the source code shows how to perform any debugging task you may need.
2) In order to support some undocumented behaviors of the C2 interface, I
   needed to enhance Wojtek's driver and schematic.  The enhancements allow
   for sending and receiving short C2CK pulses.

In addition to the C2CK enhancements, I also added Plug and Play (PNP) support
to the driver so that it would work on my PC (I don't know if my PC hardware
is different or if my 2.6.12 kernel requires it).

Instead of trying to make c2mon useful as a stand-alone program, I am starting
to integrate c2mon into SDCDB, the debugger that comes with the SDCC compiler.
(Currently, SDCDB only knows how to interface with the uCsim simulator.)
Until I finish that project, hopefully the c2mon.c sample code will be useful.

Matt Otto
matt@klox.net
