From b6462786840cea2e2c3197a36234363f91e41b1a Mon Sep 17 00:00:00 2001 From: Jacques Comeaux Date: Mon, 15 Jul 2024 03:50:10 -0500 Subject: Improve assembler controls --- assembler/slowcat.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 assembler/slowcat.c (limited to 'assembler/slowcat.c') diff --git a/assembler/slowcat.c b/assembler/slowcat.c new file mode 100644 index 0000000..99493ae --- /dev/null +++ b/assembler/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(1000); + } + return 0; +} -- cgit v1.2.3