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,28db79a4b238c104 X-Google-Attributes: gid103376,public From: dale@cs.rmit.edu.au (Dale Stanbrough) Subject: Re: What's wrong with this simple Ada w/ assembly code? Date: 1999/03/16 Message-ID: #1/1 X-Deja-AN: 455412501 References: <36ddb9aa.0@silver.truman.edu> <36ec237f.0@silver.truman.edu> X-Complaints-To: abuse@cs.rmit.edu.au X-Trace: emu.cs.rmit.edu.au 921538726 1903 144.205.16.58 (15 Mar 1999 22:58:46 GMT) Organization: Department of Computer Science, RMIT NNTP-Posting-Date: 15 Mar 1999 22:58:46 GMT Newsgroups: comp.lang.ada Date: 1999-03-15T22:58:46+00:00 List-Id: Josh Highley wrote: "The program I'm writing is a simple text based program intended to run in a DOS window. 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? 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. 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?" If you want to devote your program to DOS (or at least learn how to layer your programs so that you end up with platform specific code) the best way to handle this is to declare a 2d array that matches the video memory, and then simply map it to the real video memory via an address clause. If you want the code email me, and i'll hunt around and find it. Dale