2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: WritePotgo() function.
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
)
21 volatile struct Custom
*custom
= (struct Custom
*)0xdff000;
24 PotgoBase
->data
|= (word
& ~1) & mask
;
25 PotgoBase
->data
&= word
| (~mask
);
27 custom
->potgo
= PotgoBase
->data
| (word
& 1);