EasyManua.ls Logo

Commodore Amiga A500 - Page 76

Commodore Amiga A500
283 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SYSTEM/LIBRARIES/
NAME
EXPAN
S ION/
READEXPANSIONROM
ReadExpansionRom
-
read a board's configuration ROM space
SYNOPSIS
error
=
ReadExpansionRom( board, configDev
)
DO A0 A1
FUNCTION
ReadExpansionRom reads a the ROM portion of an expansion device
in to
cdRom portion of a ConfigDev structure. This routine knows
how to detect whether or not there
is
actually a board there,
In addition, the Rom portion of a new style expansion board is en-
coded in ones-complement format (except for the first two nybbles
-
the er-Type field). ReadExpansionRom knows about this and un-
complements the appropriate fields.
INPUTS
board
-
a pointer to the base of a new style expansion board.
configDev
-
the ConfigDev structure that will be read in.
offset
-
a logical offset from the configdev base
RESULTS
error
-
If the board address does not contain a valid new style ex-
pansion board, then error will be non-zero.
EXAMPLES
configDev
=
AllocConfigDev();
if(
!
configDev
)
panic();
error
=
ReadExpansionBoard( board, configDev
);
if(
!
error
)
[
config Dev->cdBoardAddr
=
board;
ConfigBoard( configDev
);
1
EXCEPTIONS
SEE ALSO
BUGS

Related product manuals