Add files to repository

This commit is contained in:
Alec Murphy 2025-06-09 20:06:04 -04:00
parent 9f200c9084
commit 23d704d496
542 changed files with 75775 additions and 0 deletions

60
System/LibTemple/OS.HC Normal file
View 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
}