Board index » delphi » Interrupts ? Please help me !!!

Interrupts ? Please help me !!!

I was looking through a book an I came across interrupts. They sound pretty awesome. If someone would be kind enough to tell me good book on interrupts or something so I can make a program to mess with interrupts.

 

Re:Interrupts ? Please help me !!!


Quote
Joshua Wallis wrote:
> I was looking through a book an I came across interrupts. They sound
> pretty awesome. If someone would be kind enough to tell me good book
> on interrupts or something so I can make a program to mess with
> interrupts.

IMHO this question belongs to news:comp.lang.asm.x86 as interrupts are
not particular to Turbo Pascal.

Basically, a program can invoke a software interrupt by using the int
instruction followed by a 1-byte parameter ($CD imm8) which determines
the interrupt to be called. The processor multiplies this value with 4
and looks up the double word located in the interrupt vector table at
the offset defined by the result of the multiplication.
The processor saves the current CS:IP register pair as well as the
flags, jumps to the address defined by the double word (it consists of
segment and offset) and continues execution until it encounters an iret,
in which case it restores the previously saved information from the
stack and returns control to the calling program.
The interrupt handler may return results in a predefined memory area or
directy in registers or the flags.
Into ($CE) and Int3 ($CC) are two special forms of software interrupts.

Any book dealing with assembly should contain a description of
interrupts and how they work.

Re:Interrupts ? Please help me !!!


JRS:  In article <38FC8509.16CAB...@mail.dotcom.fr> of Tue, 18 Apr 2000
17:53:45 seen in news:comp.lang.pascal.borland, Frederic Bonroy

Quote
<fbon...@mail.dotcom.fr> wrote:
>Joshua Wallis wrote:

>> I was looking through a book an I came across interrupts. They sound
>> pretty awesome. If someone would be kind enough to tell me good book
>> on interrupts or something so I can make a program to mess with
>> interrupts.

>IMHO this question belongs to news:comp.lang.asm.x86 as interrupts are
>not particular to Turbo Pascal.

>Basically,
> ...

On the PC, there are two sorts of interrupts; software, used by programs
to communicate with the OS, and hardware, used by external devices to
attract attention to themselves.

It is a great pity that the term "interrupt" is used for both; the
former should be termed "system calls" or suchlike.  The esteemed LSI-11
(IIRC) had two related instructions; one for system calls or other
software-initiated purposes, and one specifically to simulate a hardware
interrupt (or something like that; I've long forgotten details).

It is not clear to me which Joshua is asking about.

The concept of hardware interrupts is language-independent; it can be
treated perfectly well in Pascal terms, and the implementation has
features to support them.

http://www.merlyn.demon.co.uk/programs/int70at2.pas   shows hardware
interrupts in use, though without explanation.

--
? John Stockton, Surrey, UK.  j...@merlyn.demon.co.uk   Turnpike v4.00   MIME. ?
 Web <URL: http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links.
 PAS, EXE in <URL: http://www.merlyn.demon.co.uk/programs/> - see 00index.txt.
 Do not Mail News to me.    Before a reply, quote with ">" or "> " (SoRFC1036)

Re:Interrupts ? Please help me !!!


Hi there.

Take a look at the page

http://www.delorie.com/djgpp/doc/rbinter/ix/index.html

here you have a good list over interrupts used in PC.

Also there are a book with the title: PC-assambler
language, by Peter Norton.
If you have problem finding that book sent me a mail.

Good luck

hs...@qatar.net.qa

* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is Beautiful

Re:Interrupts ? Please help me !!!


I found my old book from the shelf, here you have the
correct title:

Assembly Language for the PC.
ISBN : 1-56686-016-4
By : John Socha and Peter Norton

* Sent from AltaVista http://www.altavista.com Where you can also find related Web Pages, Images, Audios, Videos, News, and Shopping.  Smart is Beautiful

Other Threads