about summary refs log tree commit diff stats
path: root/102keyboard.subx
diff options
context:
space:
mode:
Diffstat (limited to '102keyboard.subx')
-rw-r--r--102keyboard.subx2
1 files changed, 2 insertions, 0 deletions
diff --git a/102keyboard.subx b/102keyboard.subx
index 39788075..f963baa2 100644
--- a/102keyboard.subx
+++ b/102keyboard.subx
@@ -24,6 +24,8 @@ read-key:  # kbd: (addr keyboard) -> result/eax: byte
     89/<- %ebp 4/r32/esp
     # . save registers
     51/push-ecx
+    # wait for an interrupt to save power on Qemu
+    f4/hlt
     # result = 0
     b8/copy-to-eax 0/imm32
     # ecx = keyboard