forked from PoliEcho-holding-org/kern
Added temporary Puts() syscall to print a string. I use it in calc to print a message
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
|
||||
__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
|
||||
|
||||
return;
|
||||
|
||||
+2
-2
@@ -6,11 +6,11 @@
|
||||
#include <interrupt/syscall.h>
|
||||
#include <interrupt/pic.h>
|
||||
#include <ports/io.h>
|
||||
#include <c/string.h>
|
||||
#include <string.h>
|
||||
#include <screen/graphics.h>
|
||||
#include <keyboard/keyboard.h>
|
||||
#include <interrupt/pit.h>
|
||||
#include <c/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#define PROMPT "#> "
|
||||
|
||||
|
||||
Reference in New Issue
Block a user