mirror of
https://git.checksum.fail/alec/mujs.git
synced 2025-12-11 13:39:58 +02:00
Add files to repository
This commit is contained in:
60
System/LibTemple/OS.HC
Normal file
60
System/LibTemple/OS.HC
Normal file
@@ -0,0 +1,60 @@
|
||||
U0 os_call_ext_str()
|
||||
{
|
||||
PUSH_SYSV_REGS
|
||||
GET_SYSV_ARGS
|
||||
CallExtStr(p0);
|
||||
POP_SYSV_REGS
|
||||
}
|
||||
|
||||
U0 os_call_ext_str_1()
|
||||
{
|
||||
PUSH_SYSV_REGS
|
||||
GET_SYSV_ARGS
|
||||
CallExtStr(p0, p1);
|
||||
POP_SYSV_REGS
|
||||
}
|
||||
|
||||
U0 os_call_ext_str_2()
|
||||
{
|
||||
PUSH_SYSV_REGS
|
||||
GET_SYSV_ARGS
|
||||
CallExtStr(p0, p1, p2);
|
||||
POP_SYSV_REGS
|
||||
}
|
||||
|
||||
U0 os_call_ext_str_3()
|
||||
{
|
||||
PUSH_SYSV_REGS
|
||||
GET_SYSV_ARGS
|
||||
CallExtStr(p0, p1, p2, p3);
|
||||
POP_SYSV_REGS
|
||||
}
|
||||
|
||||
U0 os_call_ext_str_4()
|
||||
{
|
||||
PUSH_SYSV_REGS
|
||||
GET_SYSV_ARGS
|
||||
CallExtStr(p0, p1, p2, p3, p4);
|
||||
POP_SYSV_REGS
|
||||
}
|
||||
|
||||
U0 os_call_ext_str_5()
|
||||
{
|
||||
PUSH_SYSV_REGS
|
||||
GET_SYSV_ARGS
|
||||
CallExtStr(p0, p1, p2, p3, p4, p5);
|
||||
POP_SYSV_REGS
|
||||
}
|
||||
|
||||
U64 @os_jiffies()
|
||||
{
|
||||
return cnts.jiffies;
|
||||
}
|
||||
|
||||
U0 os_jiffies()
|
||||
{
|
||||
PUSH_SYSV_REGS
|
||||
GET_SYSV_ARGS
|
||||
@os_jiffies();
|
||||
POP_SYSV_REGS
|
||||
}
|
||||
Reference in New Issue
Block a user