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-Thread: 103376,8117b19a3253190 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: "John McCormick" Newsgroups: comp.lang.ada Subject: Re: Bare metal text I/O in Ada Date: 21 Mar 2005 17:16:59 -0800 Organization: http://groups.google.com Message-ID: <1111454219.265378.227180@z14g2000cwz.googlegroups.com> References: NNTP-Posting-Host: 205.161.210.2 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1111454223 5488 127.0.0.1 (22 Mar 2005 01:17:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 22 Mar 2005 01:17:03 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=205.161.210.2; posting-account=n14-pA0AAADZTFvnzu9z5C_wf8mTjOb6 Xref: g2news1.google.com comp.lang.ada:9708 Date: 2005-03-21T17:16:59-08:00 List-Id: I do have access to the BIOS. But my application runs in protected mode. I am starting to gather up some documentation on VGA and will try to see if I can access the video memory directly. I know that I can access the I/O ports in protected mode. A silver lining to the whole thing is that the keyboard problem might make a good exercise to introduce my students to Ada interrupt handling. John Randy Brukardt wrote: > wrote in message news:M5Kdna9J29x7W6DfRVn-3g@comcast.com... > > >keyboard input and text output to EGA / VGA on a bare metal (no > > >operating system) AMD (Intel clone) platform. > > No PC-style BIOS ROM either? > > If you have access to the BIOS ROM, it's pretty easy. But the BIOS doesn't > function in protected mode, and most compilers these days are 32-bit > protected. > > One possibility would be write some code to call the BIOS, switching modes > as needed. That's how DOS-Extenders worked, and they're not that > complicated. Debugging the code might be fun, though. It certainly would be > better to access to the BIOS than to write new drivers for the keyboard and > video screen (which would essentially be a copy of the BIOS). > > I can help you with the BIOS calls needed (our text windowing package did > this for all of its I/O), but we always assumed the existence of a DOS > Extender. > > Randy Brukardt