a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 expansion.library
  AddBootNode
  AddConfigDev
  AddDosNode
  AllocConfigDev
  AllocExpansionMem
  ConfigBoard
  FindConfigDev
  FreeConfigDev
  FreeExpansionMem
  GetCurrentBinding
  MakeDosNode
  ObtainConfigBinding
  ReadExpansionByte
  ReadExpansionRom
  ReleaseConfigBinding
  RemConfigDev
  SetCurrentBinding
  WriteExpansionByte
Include
GuruMeditation
Docs » Autodocs » expansion.library » ReadExpansionByte

NAME

	ReadExpansionByte - read a byte nybble by nybble.

SYNOPSIS

	byte = ReadExpansionByte( board, offset )
D0 A0 D0

FUNCTION

	(Not typically called by user code)
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, as if 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

RESULT

	byte - a byte of data from the expansion board.
EXAMPLES
byte = ReadExpansionByte( cd->BoardAddr, EROFFSET( er_Type ) );
ints = ReadExpansionByte( cd->BoardAddr, ECOFFSET( ec_Interrupt ) );

SEE ALSO

WriteExpansionByte(), ReadExpansionRom()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Red Sector Inc.

AOA
RSI
CSL
DC

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se