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,f70efc7fd84399b9 X-Google-Attributes: gid103376,public From: tmoran@bix.com (Tom Moran) Subject: Re: Graphics in ADA Date: 1999/03/03 Message-ID: <36dcb334.33950576@news.pacbell.net>#1/1 X-Deja-AN: 450625754 References: <350D2.6016$sv1.12204700@firenze.visi.net> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.pbi.net 920434615 207.214.211.55 (Tue, 02 Mar 1999 20:16:55 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Tue, 02 Mar 1999 20:16:55 PDT Newsgroups: comp.lang.ada Date: 1999-03-03T00:00:00+00:00 List-Id: >Does anyone know how to implement VGA graphics in ADA? In 16 bit DOS, 32 bit DOS, Windows xxx? Try http://stad.dsl.nl/~jvandyk >access the graphics memory of the computer. But, alas, I also cannot find >any information on how to access memory locations in ADA. You need an address representation clause, eg, CRT : array(0 .. 479, 0 .. 639) of Pixels; for CRT'address use (segment=>16#A000#, offset=>0); (This address clause is from memory for 16 bit DOS, Other OSes have different memory structures, of course.) There's also the little matter of doing IO operations to the graphics card, which will involve calling something like Output(Port=>16#3F8#, Value=>16#81#), depending on what your compiler vendor has supplied in the library, or doing calls to the BIOS, again dependent on your vendor supplied library. If you actually need 16 bit DOS routines, and have access to Compuserve (now part of AOL), look in the VESA section - there's a (very old) Ada 83 driver and example programs. If you are running on Windows, the whole style of graphics is different.