comp.lang.ada
 help / color / mirror / Atom feed
From: jerry@jvdsys.stuyts.nl (Jerry van Dijk)
Subject: Re: Help: accessing Bios param from Ada
Date: 1999/04/14
Date: 1999-04-14T00:00:00+00:00	[thread overview]
Message-ID: <FA5LD5.7t@jvdsys.stuyts.nl> (raw)
In-Reply-To: 3713B162.55EA70F7@club-internet.fr

Alain Senjean (senjean@club-internet.fr) wrote:

: I am using AdaObjet 7.1.2 under Win98 and i want to develop an application
: software using the LPT port for managing an external HW equipment.

:    I just need to read four 'words' at address 0000:0408 providing LPT ports
: base address.

Using a windows compiler, you have, in the Win32 environment, no access to
this memory, you need to either use a DOS compiler or write/get an Win9X/NT
device driver for this. This is not Ada related but a feature of the OS you
are using.

:    Is there any defined service with parameters like (segment, offset, size,
: value) for accessing HW ports like inportb, outportb in C ?

No, the I/O ports are not in the memory address space. And again, you have
no access to them from a user program.

--
-- Jerry van Dijk | Leiden, Holland
-- Team Ada       | jdijk@acm.org
-- see http://stad.dsl.nl/~jvandyk




  reply	other threads:[~1999-04-14  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-13  0:00 Help: accessing Bios param from Ada Alain Senjean
1999-04-14  0:00 ` Jerry van Dijk [this message]
1999-04-14  0:00   ` Alain Senjean
1999-04-14  0:00     ` Tom Moran
1999-04-15  0:00       ` Alain Senjean
1999-04-15  0:00         ` Ed Falis
1999-04-16  0:00           ` Alain Senjean
1999-04-15  0:00     ` Jerry van Dijk
1999-04-17  0:00       ` Alain Senjean
replies disabled

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