workaround for getting minix under qemu kvm.
Ameya, ape800 at few.vu.nl.
test ax, ax
jnz gotch
getch:
- hlt ! Play dead until interrupted (see pause())
+! hlt ! Play dead until interrupted (see pause())
movb ah, #0x01 ! Keyboard status
int 0x16
jz 0f ! Nothing typed
! power, or tells an x86 emulator that nothing is happening right now.
.define _pause
_pause:
- hlt
+! hlt
ret
! void set_mode(unsigned mode);