Upload files to "src"

This commit is contained in:
2026-02-27 13:07:18 +00:00
parent 3c72907c5f
commit c000f8a0d9

View File

@@ -4,6 +4,9 @@
#include "localheader.h"
// look at me I am the handler now
// syscall1
long syscall1(long number, long arg1){
long result;
@@ -19,6 +22,7 @@ long syscall1(long number, long arg1){
return result;
}
// syscall2
long syscall2(long number, long arg1, long arg2){
long result;
@@ -35,7 +39,6 @@ long syscall2(long number, long arg1, long arg2){
// syscall3
long syscall3(long number, long arg1, long arg2, long arg3){
long result;
// asm for a system call with 3 args
@@ -49,8 +52,10 @@ long syscall3(long number, long arg1, long arg2, long arg3){
return result;
}
// syscall4
long syscall4(long number, long arg1, long arg2, long arg3, long arg4){
long result;
__asm__ __volatile(
"syscall"
: "=a"(result)