diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-30 14:36:31 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-30 14:36:31 +0100 |
commit | 26685f5203bc38cfa082b96182a406f4f7e6435a (patch) | |
tree | 5566b6812c7cc127da597a08a6824616b2aa5bb5 /PL0_utils.h | |
parent | ee8668f9fcd952e4952706789bdde7fd223dacb5 (diff) | |
download | rpi-MMU-example-26685f5203bc38cfa082b96182a406f4f7e6435a.tar.gz rpi-MMU-example-26685f5203bc38cfa082b96182a406f4f7e6435a.zip |
implement getchar() and putchar() in terms of supervisor call
Diffstat (limited to 'PL0_utils.h')
-rw-r--r-- | PL0_utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/PL0_utils.h b/PL0_utils.h new file mode 100644 index 0000000..ba72fd3 --- /dev/null +++ b/PL0_utils.h @@ -0,0 +1,10 @@ +#ifndef PL0_UTILS_H +#define PL0_UTILS_H + +void putchar(int character); + +int getchar(void); + +void puts(char *string); + +#endif // PL0_UTILS_H |