21 lines
505 B
C
Raw Normal View History

2023-01-31 16:11:20 +04:00
#include "../syscall.h"
#include <stdint.h>
void userspace_puts(const char *s) {
2023-01-31 16:11:20 +04:00
char c;
while ((c = *s++)) {
syscall(SYS_putc, c);
}
}
int main() {
const char *spell = "cra cra trif traf not sgnieflet\n";
const char *spell2 = "Pam pam pam pam parapapapapam\n";
const char *spell3 = "Zhopu podotri\n";
2026-04-06 05:20:00 +03:00
// userspace_puts(spell);
syscall(SYS_puts, (uintptr_t)spell);
syscall(SYS_puts, (uint32_t)spell2);
syscall(SYS_puts, (uint32_t)spell3);
2023-01-31 16:11:20 +04:00
return 0;
}