protected mode works, return to real-mode triple faults
[com32] / src / startup.asm
index 99cbf6c..56e25b4 100644 (file)
@@ -5,6 +5,11 @@
 startup:
        mov ebx, 0xb8000
        mov byte [ebx], '@'
+.waitkey:
+       in al, 64h
+       test al, 1
+       jz .waitkey
+       in al, 60h
        ret
 
 ; vi:set ts=8 sts=8 sw=8 ft=nasm: