Added temporary Gets() Syscall

This commit is contained in:
2024-05-19 14:05:20 +02:00
parent 00ad779e27
commit 2b9148abee
4 changed files with 21 additions and 15 deletions
+5 -9
View File
@@ -1,16 +1,12 @@
#include <time.h>
#include <stdio.h>
__attribute__ ((section ("entry")))
void main() {
*(char*)(0x2000) = 'H';
*(char*)(0x2001) = 'e';
*(char*)(0x2002) = 'l';
*(char*)(0x2003) = 'l';
*(char*)(0x2004) = 'o';
*(char*)(0x2005) = '!';
*(char*)(0x2006) = '\0';
__asm__ volatile ("int $0x80" : : "a"(1), "b"(0x2000));
sleep(4500); // Wait 4.5 seconds
char* msg = read();
print(msg);
sleep(4500);
return;
}