This commit is contained in:
p-w-rs
2022-09-07 11:18:56 -05:00
commit 7bb91e666d
121 changed files with 5306 additions and 0 deletions

27
TTOS/test.c Normal file
View File

@@ -0,0 +1,27 @@
//#include <stdio.h>
long system_call(long n, ...);
int j = 3;
int i = 10;
int foo3(int b);
int foo2(int b) {
return foo3(b) + 2;
}
int foo1(int a) {
return foo2(a) + 2 + i;
}
int main(int argc, char* argv[]) {
// printf("hi\n");
// j = 10;
system_call(1, 1, "abc\n", 4);
int result = foo1(5 + j);
system_call(1, 1, result, 4);
system_call(1, 1, "\n", 1);
return foo1(5 + j);
// return foo1(5 + j);
}