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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6a4dfe772544eb65 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-19 10:56:58 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!attbi_s54.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Low Level Ada References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 24.6.135.22 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s54 1069268216 24.6.135.22 (Wed, 19 Nov 2003 18:56:56 GMT) NNTP-Posting-Date: Wed, 19 Nov 2003 18:56:56 GMT Organization: Comcast Online Date: Wed, 19 Nov 2003 18:56:56 GMT Xref: archiver1.google.com comp.lang.ada:2691 Date: 2003-11-19T18:56:56+00:00 List-Id: > For instance, let's say I want to create an Array that would hold characters > with the goal to send it to the video card directly (address $B800). You can use an address clause to put an object (eg an array) anywhere and then just do normal assignment operations. So if you declare type Display_Strings is array(Integer range <>) of Char_Attribute_Pairs; Screen : Display_Strings(1 .. 24*80); for Screen'address use 16#B800#; you can Screen(1) := ('a',Blinking); or Screen(Start .. Start+Last-1) := Work_Buffer(1 .. Last); Note of course that if you are running on a Windows machine 16#B800# is a virtual memory address, not a hardware one. In that case you would need: Video_Memory_Address: constant System.Address := Beg_Of_Windows(16#B800); for Screen'address use Video_Memory_Address;