X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Recieved: from localhost (localhost [127.0.0.1]) From: John Wright Organization: WAC To: gerritvn AT gpvno DOT co DOT za Subject: Re: Serial I/O Programming with DJGPP - (need good examples to start with) Date: Wed, 23 Feb 2011 10:24:36 -0600 User-Agent: KMail/1.13.5 (Linux/2.6.32-28-generic; KDE/4.4.5; i686; ; ) References: <201102221101 DOT 16553 DOT john AT wacontrols DOT com> In-Reply-To: Cc: djgpp AT delorie DOT com MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201102231024.37060.john@wacontrols.com> Reply-To: john AT wacontrols DOT com Sure! Maybe I have what I need right now (except for a ported version), but just don't know it. This book and examples by Mark Goodwin might be the perfect foundation that I am looking for. It points out the deficiencies of ROM-BOS calls with examples, then shows you how to create his interrupt driven "serial" toolkit step-by-step. He creates two compiled versions, one in C, and the other in C++. They both work great. His "serasm.asm" source deals with handling the ISR and the clock. Hopefully, this will shed some light on porting to DJGPP. Naturally, I'm starting at point 'A' and working toward point 'Z'. My end goal is to learn how to use PCOM, DZCOM routines in my application. I will gladly share everything that is produced from this experience. I'm trying to follow protocol for posting questions. I have seen the comment about reading and posting to the news group instead of mailing list. I will look for the HOW-TO on this. If someone can point me in the right direction that would be great! -jw On Wednesday, February 23, 2011 07:28:24 am you wrote: > On Tue, Feb 22, 2011 at 7:01 PM, John Wright wrote: > > I'm looking for some complete code examples using PCOM, DZCOM or SVASYNC > > routines. Which ever anyone might have or recommend. I have several books > > that > > I have been studying, and they all have good examples, but everything is > > based > > on MSC 6.0 or Turbo C++. > > > > The hard part is the ISR which is very DJGPP specific. And without > > interrupts you can forget to run serial comms at any reasonable baud-rate. > > I have a working implementation for the PPP portion of a commercial TCP/IP > package and are quite willing to give you the source code (for free of > course), but it is by no means a nicely structured library. If you want to > use it to port a good library, you are welcome if you will also make the > library available for free.