Download Print this page

Commodore Amiga A500 Technical Reference Manual page 67

Hide thumbs Also See for Amiga A500:

Advertisement

SEE ALSO
FreeConfigDev
BUGS
SYSTEM/LIBRARIES/
NAME
EXPANSION1
A L L O C E X P A N S I O N ~ ~ ~
AllocExpansionMem
-
allocate expansion memory
SYNOPSIS
FUNCTION
This function allocates numslots of expansion space (each slot is
ESLOTSIZE bytes). It returns the slot number of the start of the
expansion memory. The EC-EMADDR macro may be used to convert
this to a memory address.
Boards that
fit
the expansion architecture have alignment rules.
Normally a board must be on a binary boundary of its size. Four
and Eight megabyte boards have special rules. User defined boards
might have other special rules.
The routine AllocBoardMem(
)
knows about all the allocation rules
for standard boards. Most users will want to use that routine
if
they
want memory for a standard expansion device.
If
AllocExpansionMem(
)
succeeds, the startslot will satisfy the
following equation:
(startslot
-
slotoffset) MOD slotAlign
=
0
INPUTS
numSlots
-
the number of slots required.
slotoffset
-
an offset from that boundary for startslot.
RESULTS
startslot
-
the slot number that was allocated, or
-1
for error

Advertisement

loading

This manual is also suitable for:

Amiga a2000