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!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Mon, 21 Mar 2005 15:38:30 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: Subject: Re: Bare metal text I/O in Ada Date: Mon, 21 Mar 2005 15:40:52 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-svvWfkwlCgFdJsHil2GJSfcp2tayWL7pAClDLbgjfDfaBpslRMjW8K9pDL8k34mQZU+4TVbLf1yU/vT!kB992pLz2mWtelXr0D90VvEbFnMaBykFK27/6cvCvt1WTF5ydUi9bqTia4hIL2hMQN2JvncGHRKi X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.31 Xref: g2news1.google.com comp.lang.ada:9695 Date: 2005-03-21T15:40:52-06:00 List-Id: 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