www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/11/02/17:09:13

Newsgroups: comp.os.msdos.djgpp
From: elj AT sky1 DOT elj DOT org (Edwin Johnson)
Subject: Re: Interrupt handled RS232
References: <slrn9u2jt7 DOT se DOT elj AT sky1 DOT elj DOT org> <5137-Fri02Nov2001111121+0200-eliz AT is DOT elta DOT co DOT il>
Message-ID: <slrn9u5g6a.2sj.elj@sky1.elj.org>
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 <eliz AT is DOT elta DOT co DOT il> 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                 ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019