mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Added temporary Gets() Syscall
This commit is contained in:
+5
-9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user