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: v025@academic.truman.edu (Chad R. Meiners) Subject: Re: Interrupt Calls Date: 1997/11/11 Message-ID: <3467a0ef.0@silver.truman.edu>#1/1 X-Deja-AN: 288418657 Distribution: world References: <34651851.DAA7064E@academic.truman.edu> <879126407.74snx@jvdsys.nextjk.stuyts.nl> Organization: Missouri Research and Education Network Newsgroups: comp.lang.ada Date: 1997-11-11T00:00:00+00:00 List-Id: In article <879126407.74snx@jvdsys.nextjk.stuyts.nl>, jerry@jvdsys.nextjk.stuyts.nl says... > >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 I am trying to write a package similar to your conio package. So there would be a text screen manipulation package for the NT complier. I figured since NT supports text-base dos programs all I would need to do is call the dos interrupt, but all I really need is a move cursor cursor function for my text graphics routines.