tools/adflib: build only host variant which is used by Sam440 target
[AROS.git] / test / library / peropenervalue.c
blobea02a4273846d745429d190746ea37e71d3bba28
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/peropener.h>
7 #include "peropenerbase.h"
9 void PeropenerSetValueStack(int value)
11 struct PeropenerBase *PeropenerBase = (struct PeropenerBase *)__aros_getbase_PeropenerBase();
13 PeropenerBase->value = value;
17 int PeropenerGetValueStack(void)
19 struct PeropenerBase *PeropenerBase = (struct PeropenerBase *)__aros_getbase_PeropenerBase();
21 return PeropenerBase->value;
24 AROS_LH1(void, PeropenerSetValueReg,
25 AROS_LHA(int, value, D0),
26 struct Library *, PeropenerBase, 7, Peropener)
28 AROS_LIBFUNC_INIT
30 struct PeropenerBase *PeropenerBase = (struct PeropenerBase *)__aros_getbase_PeropenerBase();
32 PeropenerBase->value = value;
34 AROS_LIBFUNC_EXIT
37 AROS_LH0(int, PeropenerGetValueReg,
38 struct Library *, PeropenerBase, 8, Peropener)
40 AROS_LIBFUNC_INIT
42 struct PeropenerBase *PeropenerBase = (struct PeropenerBase *)__aros_getbase_PeropenerBase();
44 return PeropenerBase->value;
46 AROS_LIBFUNC_EXIT