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";
|
|
|
|
|
|
|
|
u32 getticks(void)
|
|
|
|
{
|
2018-12-15 19:13:26 +01:00
|
|
|
return syscall0(4);
|
2018-12-14 01:06:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void exit(u32 resultcode)
|
|
|
|
{
|
|
|
|
syscall1(5,(u32) resultcode);
|
2018-12-15 19:13:26 +01:00
|
|
|
return;
|
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
|
|
|
}
|
|
|
|
|
|
|
|
u32 testapi(u32 arg1, u32 arg2, u32 arg3)
|
|
|
|
{
|
2018-12-15 19:13:26 +01:00
|
|
|
return syscall3(0,(u32) arg1,(u32) arg2,(u32) arg3);
|
2018-12-14 01:06:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|