disable debug.
[AROS.git] / arch / m68k-amiga / expansion / writeexpansionword.c
blob43e676e6eb45eb5add04eecfbc42a51b025c251e
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include "expansion_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <clib/expansion_protos.h>
15 AROS_LH3(void, WriteExpansionWord,
17 /* SYNOPSIS */
18 AROS_LHA(APTR , board, A0),
19 AROS_LHA(ULONG, offset, D0),
20 AROS_LHA(ULONG, word, D1),
22 /* LOCATION */
23 struct ExpansionBase *, ExpansionBase, 27, Expansion)
26 AROS_LIBFUNC_INIT
28 volatile UBYTE *b = (UBYTE*)board;
29 volatile UWORD *w = (UWORD*)board;
31 b[offset * 4 + 4] = word;
32 w[offset * 2 + 0] = word;
34 AROS_LIBFUNC_EXIT
35 } /* WriteExpansionWord */