about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-09-14 21:53:48 -0700
committerKartik Agaram <vc@akkartik.com>2020-09-14 21:56:10 -0700
commitabfdaf58bbe88900ba5231f4e9b22efeed31d133 (patch)
treee18d4bcf55a1dfb203107f3e95dbb44c3e8483e3
parentad1e53df8b525f55d28f295ac9212d08af4dca90 (diff)
downloadmu-abfdaf58bbe88900ba5231f4e9b22efeed31d133.tar.gz
6779
Looks like Linux turns reads from stdout/stderr into stdin!
-rw-r--r--305keyboard.subx2
-rwxr-xr-xapps/mubin389400 -> 389400 bytes
2 files changed, 1 insertions, 1 deletions
diff --git a/305keyboard.subx b/305keyboard.subx
index bac7a431..e1a9cc0e 100644
--- a/305keyboard.subx
+++ b/305keyboard.subx
@@ -132,7 +132,7 @@ read-key-from-real-keyboard:  # -> result/eax: byte
     68/push 0/imm32/write
     89/<- %ecx 4/r32/esp
     #
-    (read 2 %ecx)  # => eax
+    (read 0 %ecx)  # => eax
     8b/-> *(ecx+0xc) 0/r32/eax
 $read-key-from-real-keyboard:end:
     # . reclaim locals
diff --git a/apps/mu b/apps/mu
index 5bb5022e..3ebe2ab7 100755
--- a/apps/mu
+++ b/apps/mu
Binary files differ