aboutsummaryrefslogtreecommitdiff
path: root/assembler/slowcat.c
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-07-15 03:50:10 -0500
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2024-07-15 03:50:10 -0500
commitb6462786840cea2e2c3197a36234363f91e41b1a (patch)
tree7de4c5c4d54e4240fd7f2e91aad820a8651e7625 /assembler/slowcat.c
parentd6ff9f5bda85206d163f02f7cc78e47968c434ce (diff)
Improve assembler controls
Diffstat (limited to 'assembler/slowcat.c')
-rw-r--r--assembler/slowcat.c11
1 files changed, 11 insertions, 0 deletions
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 <unistd.h>
+#include <stdint.h>
+
+int main() {
+ uint8_t byte;
+ while (read(STDIN_FILENO, &byte, 1)) {
+ write(STDOUT_FILENO, &byte, 1);
+ usleep(1000);
+ }
+ return 0;
+}