Commit | Line | Data |
---|---|---|
202004d5 AT |
1 | // (c) 2020 Aaron Taylor <ataylor at subgeniuskitty dot com> |
2 | // See License.txt file for copyright and license details. | |
3 | ||
4 | #ifndef SGK_PDP11_SLU_H | |
5 | #define SGK_PDP11_SLU_H | |
6 | ||
7 | #include <stdint.h> | |
8 | #include "pdp11.h" | |
9 | ||
10 | /* | |
11 | * Polled IO functions for default console port. | |
12 | */ | |
13 | void putch(uint16_t c); | |
14 | uint16_t getch(void); | |
15 | ||
16 | /* | |
17 | * Simple printf function. Replaces: | |
18 | * %s - Print a string | |
19 | * %o - Print a uint16 in octal | |
20 | * \n - Print a newline suitable for this system ('\r\n') | |
21 | * \t - Print a tab | |
22 | * \% - Print a '%' | |
23 | * Also converts existing newlines in the 'format' string to '\r\n'. | |
24 | */ | |
25 | void printf(const char * format, ...); | |
26 | ||
27 | #endif // SGK_PDP11_SLU_H |