2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
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
)
30 struct PeropenerBase
*PeropenerBase
= (struct PeropenerBase
*)__aros_getbase_PeropenerBase();
32 PeropenerBase
->value
= value
;
37 AROS_LH0(int, PeropenerGetValueReg
,
38 struct Library
*, PeropenerBase
, 8, Peropener
)
42 struct PeropenerBase
*PeropenerBase
= (struct PeropenerBase
*)__aros_getbase_PeropenerBase();
44 return PeropenerBase
->value
;