From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e9b3af563ee9322a X-Google-Attributes: gid103376,public From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk) Subject: Re: Interrupt Calls Date: 1997/11/10 Message-ID: <879126407.74snx@jvdsys.nextjk.stuyts.nl>#1/1 X-Deja-AN: 288840755 References: <34651851.DAA7064E@academic.truman.edu> Distribution: world Organization: *JerryWare HQ*, Leiden, Holland Newsgroups: comp.lang.ada Date: 1997-11-10T00:00:00+00:00 List-Id: In article <34651851.DAA7064E@academic.truman.edu> v025@academic.truman.edu writes: >Would anyone be able to give me an example on how to call an interrupt >in Ada. I have tried to sort through the reference manual, and I have >looked in interrupt packages. I am intending to call the dos interrupt >21h, and I am using Gnat 3.10p for NT if that makes a difference. There would be little point in supporting Interrupts on Win95 or NT, since there are no interrupts to support... However, that does not mean your are lost, there are several options, depending on which int21h calls you wanted to issue: a) There is a Ada equivalent b) There is a Win32 equivalent c) There is a MS-C RTL equivalent d) use dirty tricks using inline assembly Otherwise, you can use the GNAT DOS compiler, which will naturally support calling int21h functions. Without knowing what functionality you are looking for I cannot give more details. -- -- Jerry van Dijk | Leiden, Holland -- Consultant | Team Ada -- Ordina Finance | jdijk@acm.org