comp.lang.ada
 help / color / mirror / Atom feed
From: "Carroll-Tech" <andrew@carroll-tech.net>
To: <comp.lang.ada@ada-france.org>
Subject: Re: Hardware Interrupts
Date: Sat, 21 Feb 2004 20:01:02 -0700
Date: 2004-02-21T20:01:02-07:00	[thread overview]
Message-ID: <mailman.7.1077417739.327.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: 20040222005514.BF2284C40CF@lovelace.ada-france.org


> From: tmoran@acm.org
> Subject: system calls, was Re: Hardware Interrupts
>
> > task Interrupt_handler is
> > ...
> > I want to call the BIOS interrupt (INT11h) to get the equipment list
[snip]
>   BTW, what machine has a BIOS INT11h call?
Good question!  I'm just going by the information in Kip R. Irvine's book
"Assembly Language For Intel-Based Computers", third edition.
I also found the same information in a book called "DOS 5: A Developer's
Guide" by Al Williams (page 163).  This book does say 80286 - 80486.
So...it must be pretty old.

> ------------------------------
> From: sk <noname@myob.com>
> Subject: Re: Hardware Interrupts
>
> andrew@carroll-tech.net:
>
>  > procedure getequipment is
[snip]
> I don't know any answers to your questions. What I do
> remember about any assembly calls to BIOS interrupts
> is that you have to set up the registers with parameters
> etc.
Okay, I understand that regarding "assembly" but not going
through Ada.

> You are using GNAT from your examples. Which version
> and platform ?
Gnat 3.15p on a FreeBSD Unix 5.1

> If it is an Intel compiler running in "protected" mode,
> that is 32-bit address space etc, the physical address
> "16#11# does not corespond to the interrupt 11. Once
[snip]
> entering protected mode.
Basically I've made my own bootloader and it will boot programs
that I create.  So there is no kernel loaded or anything like that.  The
bootloader loads the program I want right after the BIOS is done.  In
fact, I am trying this "stuff" out because I want to learn more about
kernels (other than reading in a book) and how to do PIC programming
and stuff like that.

> If you are still determined to go into never-never land,
> you need to look at Ada's machine code insertions.
Links?  References?

>The code you posted looks potentially fatal to your machine.
Hey, how else am I going to learn?  If I make a mistake at least it's not
while I'm working for some client or something.  I'm just doing some
of my own research.

> Sorry, not much help, but I am hoping that you don't
> trash your system by being determined to call a
> possible inaccessible BIOS.
I'll look into this before I continue.  I don't really wan't to format the
disk
either, even though it's not imperitive at this point if it happens.

Thanks!




       reply	other threads:[~2004-02-22  3:01 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040222005514.BF2284C40CF@lovelace.ada-france.org>
2004-02-22  3:01 ` Carroll-Tech [this message]
2004-02-22  6:39   ` Hardware Interrupts tmoran
     [not found] ` <003901c3f8f0$1cfd2ee0$0201a8c0@win>
2004-02-22 21:20   ` sk
     [not found] <m24qtgxgpg.fsf@jvdsys.demon.nl>
2004-02-24 23:05 ` tmoran
2004-02-25  1:43   ` Chad R. Meiners
     [not found] <20040224021013.DE8C84C40D0@lovelace.ada-france.org>
2004-02-24 11:04 ` Carroll-Tech
2004-02-24 12:58   ` Preben Randhol
     [not found] <20040222110018.15E3A4C40CF@lovelace.ada-france.org>
2004-02-23  9:56 ` Carroll-Tech
2004-02-23 19:00   ` tmoran
2004-02-23 20:39     ` Brian Catlin
2004-02-23 21:06       ` David C. Hoos
2004-02-23 21:56         ` Brian Catlin
     [not found] ` <001501c3f9f3$533ece60$0201a8c0@win>
2004-02-23 19:49   ` sk
     [not found] <20040221110026.E93C54C40C5@lovelace.ada-france.org>
2004-02-21 20:39 ` Carroll-Tech
     [not found] ` <000501c3f8bb$189b2760$0201a8c0@win>
2004-02-21 22:32   ` sk
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox