Mail Archives: djgpp/2001/11/02/17:09:13
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 -