2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
8 #include "expansion_intern.h"
10 #include <clib/expansion_protos.h>
12 /* See rom/expansion/readexpansionbyte.c for documentation */
14 AROS_LH2(UBYTE
, ReadExpansionByte
,
15 AROS_LHA(APTR
, board
, A0
),
16 AROS_LHA(ULONG
, offset
, D0
),
17 struct ExpansionBase
*, ExpansionBase
, 16, Expansion
)
23 volatile UBYTE
*p
= (UBYTE
*)board
;
26 if (((ULONG
)board
) & 0xff000000)
30 v
= (p
[offset
+ loffset
] & 0xf0) >> 4;
31 v
|= p
[offset
] & 0xf0;
35 } /* ReadExpansionByte */