2018-10-21 17:45:12 -05:00
|
|
|
#include "../drivers/isr.h"
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
void syscall_write_string(char* str) {
|
|
|
|
asm volatile("int $80"::"a"(0),"b"(str));
|
|
|
|
}
|
|
|
|
|
|
|
|
void syscall_screen_backspace() {
|
|
|
|
asm volatile("int $80"::"a"(1));
|
|
|
|
}
|
|
|
|
|
2018-10-22 06:44:17 -05:00
|
|
|
void syscall_gets(char* buf) {
|
|
|
|
asm volatile("int $80"::"a"(2),"b"(buf));
|
2018-10-21 17:45:12 -05:00
|
|
|
}
|