2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
9 #include <exec/types.h>
10 #include <aros/libcall.h>
11 #include <proto/dos.h>
12 #include <proto/exec.h>
13 #define DUMMY_NOLIBINLINE
14 #define DUMMY_NOLIBDEFINES
15 #include <proto/dummy.h>
17 #include LC_LIBDEFS_FILE
19 #include "dummybase.h"
24 struct DummyBase
*,DummyBase
,5,Dummy
28 return (DummyBase
->lastval
= a
+b
);
32 AROS_LH2(ULONG
, __int_asl
,
35 struct DummyBase
*,DummyBase
,6,Dummy
39 return (DummyBase
->lastval
= a
<<b
);
43 LONG
printx(LONG nargs
, ...)
45 struct DummyBase
*DummyBase
= __aros_getbase_DummyBase();
46 struct Library
*DOSBase
= OpenLibrary("dos.library", 0);
50 // Warning: The following line is disabled, because
51 // __aros_getbase_DummyBase() seems to return
55 baseval
= DummyBase
->lastval
;
58 va_start(args
, nargs
);
61 for (i
= 0; i
< nargs
; i
++) {
62 Printf("\t%ld: %ld\n", i
, baseval
+ (LONG
)va_arg(args
, STACKED LONG
));