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,FREEMAIL_FROM, 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: joshhighley@hotmail.com (Josh Highley) Subject: Re: What's wrong with this simple Ada w/ assembly code? Date: 1999/03/15 Message-ID: <36ece5c1.0@silver.truman.edu>#1/1 X-Deja-AN: 455274654 References: <36ddb9aa.0@silver.truman.edu> <36ec237f.0@silver.truman.edu> Content-Type: Text/Plain; charset=US-ASCII Organization: Missouri Research and Education Network Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-03-15T00:00:00+00:00 List-Id: >This is done by means of ANSI terminal escape sequences, >using the ANSI.SYS device driver in the DOS/Win95 environment. > >This is a preferable method, because it leaves the matter of >cursor positioning to an OS-provided device driver, instead of >requiring your program to have implementation- or platform- >dependent code. > I have used the ANSI escape sequences. However, I want to get away from using them to position the cursor because 1) the user has to load the ANSI.SYS file in the CONFIG.SYS and I know too many computer illiterate people who have never even heard of either of those files and would be unsure about working with them even with step-by-step directions. 2) I use "get_immediate" and ANSI.SYS causes the input for this statement to echo to the screen, which is something I don't want to happen. 3) I believe that the ASM code would be much faster and I notice that the escape sequence to move the cursor, display ('put') a character, and then move the cursor again, is slow. Finally, I'd just like to know how to link ASM with Ada, not necessarily to just position the cursor. Thanks, Josh Highley joshhighley@hotmail.com