2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
10 #include <exec/types.h>
11 #include <aros/libcall.h>
12 #include <proto/dos.h>
13 #include <proto/exec.h>
14 #define DUMMY_NOLIBINLINE
15 #define DUMMY_NOLIBDEFINES
16 #include <proto/dummy.h>
18 #include LC_LIBDEFS_FILE
20 #include "dummybase.h"
25 struct DummyBase
*,DummyBase
,5,Dummy
29 return (DummyBase
->lastval
= a
+b
);
33 AROS_LH2(ULONG
, __int_asl
,
36 struct DummyBase
*,DummyBase
,6,Dummy
40 return (DummyBase
->lastval
= a
<<b
);
44 LONG
printx(LONG nargs
, ...)
46 struct DummyBase
*DummyBase
= (struct DummyBase
*)__aros_getbase_DummyBase();
47 struct Library
*DOSBase
= OpenLibrary("dos.library", 0);
51 baseval
= DummyBase
->lastval
;
53 va_start(args
, nargs
);
56 for (i
= 0; i
< nargs
; i
++) {
57 Printf("\t%ld: %ld\n", i
, baseval
+ (LONG
)va_arg(args
, STACKED LONG
));