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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c9d5fc258548b22a,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!l11g2000yqb.googlegroups.com!not-for-mail From: Syntax Issues Newsgroups: comp.lang.ada Subject: How do I write directly to a memory address? Date: Wed, 2 Feb 2011 21:52:48 -0800 (PST) Organization: http://groups.google.com Message-ID: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> NNTP-Posting-Host: 65.50.108.230 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1296712368 7237 127.0.0.1 (3 Feb 2011 05:52:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 3 Feb 2011 05:52:48 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l11g2000yqb.googlegroups.com; posting-host=65.50.108.230; posting-account=iBd8kwoAAADZsnwFNFLVlwsLLxwDLPUm User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:17804 Date: 2011-02-02T21:52:48-08:00 List-Id: I am planning to start learning lower-level programming with ada, however, I was unable to find a solid tutorial on writing directly to a memory address or interfacing with assembly. Does anyone know where I can find a reference to some tutorials/information? Below is an example of code I would like to be able to implement. ... unsigned int print(char *message, unsigned int line) { char *vidmem = (char *) 0xb8000; unsigned int i= 0; i=(line*80*2); while(*message!=0) // 24h { vidmem[i]= *message; *message++; i++; vidmem[i]= 0x7; i++; }; return(1); }; ...