Newsgroups: comp.os.msdos.djgpp From: elj AT sky1 DOT elj DOT org (Edwin Johnson) Subject: Re: Interrupt handled RS232 References: <5137-Fri02Nov2001111121+0200-eliz AT is DOT elta DOT co DOT il> Message-ID: User-Agent: slrn/0.9.7.0 (Linux) NNTP-Posting-Host: 32.100.53.25 Date: 2 Nov 2001 21:47:11 GMT X-Trace: 2 Nov 2001 21:47:11 GMT, 32.100.53.25 Organization: Global Network Services - Remote Access Mail & News Services Lines: 28 X-Complaints-To: abuse AT prserv DOT net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I have the protected mode handler working, so the long post of code can be ignored for now. As of yet the real mode handler doesn't work, but I suspect it has to do with my transferring it to low memory, which I don't understand fully. The mistake in the PM handler was that I was passing the interrupt 'number' (4) for serial port #1 rather than the value of 12 (0xc) since the interrupts start at a base of 8. When I started thinking like an assembler programmer, in which the int 21h calls do just that, I decided that was the error. Actually, this error was echoed in an example that I had and I assumed it was coded correctly. On Fri, 02 Nov 2001 11:11:21 +0200, Eli Zaretskii wrote: > Please post the important parts here. In particular, the code which > installs the interrupt handler is the crucial detail. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Edwin Johnson ....... elj AT shreve DOT net ~ ~ http://www.shreve.net/~elj ~ ~ ~ ~ "Once you have flown, you will walk the ~ ~ earth with your eyes turned skyward, ~ ~ for there you have been, there you long ~ ~ to return." -- da Vinci ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~