From ed6f1106322f8ca4a6e26d08365bb9558ffa9d09 Mon Sep 17 00:00:00 2001 From: Jacques Comeaux Date: Wed, 21 Aug 2024 00:21:54 -0500 Subject: Start new assembler --- newasm/slowcat.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 newasm/slowcat.c (limited to 'newasm/slowcat.c') diff --git a/newasm/slowcat.c b/newasm/slowcat.c new file mode 100644 index 0000000..e33f92a --- /dev/null +++ b/newasm/slowcat.c @@ -0,0 +1,11 @@ +#include +#include + +int main() { + uint8_t byte; + while (read(STDIN_FILENO, &byte, 1)) { + write(STDOUT_FILENO, &byte, 1); + usleep(5000); + } + return 0; +} -- cgit v1.2.3