diff options
author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-08-21 00:21:54 -0500 |
---|---|---|
committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-08-21 00:21:54 -0500 |
commit | ed6f1106322f8ca4a6e26d08365bb9558ffa9d09 (patch) | |
tree | 0258d4a7b0429c82b4f7af8d63106ea93e7150de /newasm/slowcat.c | |
parent | d23ab4295a865580f6cb7bb4526978bac388b5ac (diff) |
Start new assembler
Diffstat (limited to 'newasm/slowcat.c')
-rw-r--r-- | newasm/slowcat.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <unistd.h> +#include <stdint.h> + +int main() { + uint8_t byte; + while (read(STDIN_FILENO, &byte, 1)) { + write(STDOUT_FILENO, &byte, 1); + usleep(5000); + } + return 0; +} |