blob: 9a09a5db25434f0ad4955812dafd9684c2f8b6de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
/* gbos userland C API (thin wrappers over rst $30 syscalls; see c/libc.asm) */
#ifndef GBOS_H
#define GBOS_H
void writes(const char *buf, unsigned char len); /* write to console */
void nl(void); /* newline (CRLF) */
unsigned char readc(void); /* read one byte */
void sexit(unsigned char code); /* exit(code) */
unsigned char getpid(void);
#endif
|