Download Print this page

Commodore Amiga A500 Technical Reference Manual page 76

Hide thumbs Also See for Amiga A500:

Advertisement

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 t o 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

Advertisement

loading

This manual is also suitable for:

Amiga a2000