comp.lang.ada
 help / color / mirror / Atom feed
From: jerry@jvdsys.stuyts.nl (Jerry van Dijk)
Subject: Re: What's wrong with this simple Ada w/ assembly code?
Date: 1999/03/15
Date: 1999-03-15T00:00:00+00:00	[thread overview]
Message-ID: <F8nM08.CJ@jvdsys.stuyts.nl> (raw)
In-Reply-To: 36ec237f.0@silver.truman.edu

Josh Highley (joshhighley@hotmail.com) wrote:

: The program I'm writing is a simple text based program intended to run 
: in a DOS window.

If you are using the NT version of GNAT, it does produce console based 
programs by default, but this is _not_ DOS code. To write a DOS program
you need to use a DOS version of GNAT.

:  I don't know about you other people, but I'm only a 
: sophomore CS major who hasn't had the classes or the time to try writing 
: Ada programs for Windows, although I'd like to :)  Having said this, can 
: I use interrupts?

No, there are _no_ interrupts in Windows.

:   I'm using ASM to position the cursor because the other Ada packages 
: I've tried aren't very fast at moving the cursor to several different 
: areas of the screen quickly.

Well, my NT_Console package is about as fast as the console will go, using
ASM doesn't help since you would still be calling the same slow Win32 API
functions.

:    There's also some other things I'd like to 
: try with ASM and Ada, if nothing else, just for fun and to see if I 
: myself can make it work.
:   Would MASM produce the correct 32 bit object code?

No, MASM produces microsoft type object (.obj) files, while GNAT expects a
coff (.o) file. Either use the Ada facilities for inline assembly (see gnat
documentation for info) or write directly for the 'as' assembler.
Be warned though that this assembler uses a completely diffent syntax than
MASM does.

--
-- Jerry van Dijk | Leiden, Holland
-- Team Ada       | jdijk@acm.org
-- see http://stad.dsl.nl/~jvandyk




  parent reply	other threads:[~1999-03-15  0:00 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-03  0:00 What's wrong with this simple Ada w/ assembly code? Josh Highley
1999-03-04  0:00 ` robert_dewar
1999-03-04  0:00   ` Mike Silva
1999-03-04  0:00     ` robert_dewar
1999-03-05  0:00       ` Mike Silva
1999-03-05  0:00         ` Ed Falis
1999-03-04  0:00     ` Josh Highley
1999-03-04  0:00     ` Samuel Mize
1999-03-04  0:00       ` Tom Moran
1999-03-05  0:00         ` robert_dewar
1999-03-05  0:00           ` Tom Moran
1999-03-08  0:00     ` Matthew Heaney
1999-03-04  0:00 ` Tom Moran
1999-03-04  0:00   ` robert_dewar
1999-03-06  0:00 ` Nick Roberts
1999-03-06  0:00   ` David Botton
1999-03-07  0:00   ` Tom Moran
1999-03-07  0:00 ` Jerry van Dijk
1999-03-07  0:00   ` Tom Moran
1999-03-08  0:00     ` Jerry van Dijk
1999-03-14  0:00   ` Josh Highley
1999-03-14  0:00     ` David C. Hoos, Sr.
1999-03-15  0:00       ` Josh Highley
1999-03-15  0:00     ` Jerry van Dijk [this message]
     [not found]       ` <36ef2175.4732984@news.pacbell.net>
1999-03-17  0:00         ` Jerry van Dijk
1999-03-16  0:00     ` Dale Stanbrough
1999-03-16  0:00       ` Jerry van Dijk
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox