2018-12-14 01:06:37 +01:00
|
|
|
/*******************************************************************************/
|
|
|
|
/* COS2000 - Compatible Operating System - LGPL v3 - Horde Nicolas */
|
|
|
|
/* */
|
|
|
|
|
|
|
|
#include "libsys.h";
|
|
|
|
#include "syscall.h";
|
|
|
|
#include "types.h";
|
|
|
|
|
2018-12-20 16:29:04 +01:00
|
|
|
u32 getticks(void)
|
2018-12-14 01:06:37 +01:00
|
|
|
{
|
2018-12-20 16:29:04 +01:00
|
|
|
return syscall0(4);
|
2018-12-14 01:06:37 +01:00
|
|
|
}
|
|
|
|
|
2018-12-20 16:29:04 +01:00
|
|
|
u32 testapi(u32 arg1, u32 arg2, u32 arg3)
|
2018-12-14 01:06:37 +01:00
|
|
|
{
|
2018-12-20 16:29:04 +01:00
|
|
|
return syscall3(0,(u32) arg1,(u32) arg2,(u32) arg3);
|
2018-12-14 01:06:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
u8 waitkey(void)
|
|
|
|
{
|
2018-12-15 19:13:26 +01:00
|
|
|
return syscall0(1);
|
2018-12-14 01:06:37 +01:00
|
|
|
}
|
|
|
|
|
2018-12-20 16:29:04 +01:00
|
|
|
u32 exit(u32 resultcode)
|
2018-12-14 01:06:37 +01:00
|
|
|
{
|
2018-12-20 16:29:04 +01:00
|
|
|
return syscall1(5,(u32) resultcode);
|
2018-12-14 01:06:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|