JQ> Okay, I know that the first 1024 bytes contain the interrupt vector
JQ>table, and the interrupt vector table points to addresses in memory for
each
JQ>interrupt. I was wondering this, how does an interrupt really work? More
JQ>specificly, what does the contents of each segment:offset in the interrupt
JQ>vector table point to? Could I simply edit the interrupt vector table to
JQ>point to my own .COM file in memory, or is it accomplished differently.
In pure real mode, that should work. However, in protected mode, and
ossibly
in V86 mode (which includes when EMM386 is running, though that may not be
he
only one that puts the computer into V86 mode), writing there directly can
screw up the computer. A safer alternative, especially when you might be in
protected mode, is to call DOS Int 21h function 25h/35h to get or set an
interrupt, respectively. In protected mode, the interrupts are handled a bit
differently and I don't fully understand it. If someone else could explain
that, including some of the formats for some of the protected mode registers
and instructions, I wouldn't mind it...
((Cloud))
MauveCloud@juno.com
* OLX 2.2 * If this were an actual tagline, it would be funny.
--- PCBoard (R) v15.3/M 10
---------------
* Origin: Next time, Dial The Wrong Number! (209) 943-1880 (1:208/205)
|