Commodore Amiga A500 Technical Reference Manual page 72

Hide thumbs Also See for Amiga A500:
Table of Contents

Advertisement

SYSTEM/LIBRARIES/
EXPANSION/
READEXPANSIONBYTE
BUGS
NAME
ReadExpansionByte read a byte nybble by nybble.
SYNOPSIS
byte = ReadExpansionByte( board, offset )
DO
AO
DO
FUNCTION
ReadExpansionByte reads a byte from a new-style expansion board.
These boards have their readable data organized as a series of
nybbles in memory. This routine reads two nybbles and returns the
byte value.
In general, this routine will only be called by ReadExpansionRom.
The offset is a byte offset into a ExpansionRom structure. The
actual memory address read will be four times larger. The macros
EROFFSET and ECOFFSET are provided to help get these offsets
from C.
INPUTS
board —a pointer to the base of a new style expansion board, offset
— a logical offset from the board base
RESULTS
byte — a byte of data from the expansion board, or ■ 1 if there was
an error reading from the board.
EXAMPLES
byte = ReadExpansionByte( cd->BoardAddr. EROFFSET( er_Type ) )
: ints = ReadExpansionByte(cd->BoardAddr, ECOFFSET
(ec_Interrupt));
EXCEPTIONS
SEE ALSO
WriteExpansionByte. ReadExpansionRom
BUGS
69

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Amiga A500 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Amiga a2000

Table of Contents

Save PDF