mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
13 lines
259 B
C
13 lines
259 B
C
#ifndef STDIO_H
|
|
#define STDIO_H
|
|
|
|
void print(const char* s) { // Use Syscall(1) - Puts()
|
|
__asm__ volatile ("int $0x80" : : "a"(1), "b"(s));
|
|
}
|
|
|
|
void read(char* s) { // Use Syscall(2) - Gets()
|
|
__asm__ volatile ("int $0x80" : : "a"(2), "b"(s));
|
|
}
|
|
|
|
#endif
|