A bit number was mistakenly used instead of a flag when setting notification
[AROS.git] / arch / m68k-amiga / potgo / writepotgo.c
blobaefbec6402c03287cc5b06afa0a8d7bf4aeee415
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: WritePotgo() function.
6 Lang: english
7 */
9 #include <proto/potgo.h>
10 #include <hardware/custom.h>
12 #include "potgo_intern.h"
14 AROS_LH2(void, WritePotgo,
15 AROS_LHA(UWORD, word, D0),
16 AROS_LHA(UWORD, mask, D1),
17 struct PotgoBase *, PotgoBase, 3, Potgo)
19 AROS_LIBFUNC_INIT
21 volatile struct Custom *custom = (struct Custom*)0xdff000;
23 word &= 0xff01;
24 PotgoBase->data |= (word & ~1) & mask;
25 PotgoBase->data &= word | (~mask);
27 custom->potgo = PotgoBase->data | (word & 1);
29 AROS_LIBFUNC_EXIT