aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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