[code lang=”asm”]asm
cli
@@WaitOutReady: { Busy-wait until 8042 is ready for new command}
in al,64h { read 8042 status byte}
test al,00000010b { Bit 1 of status indicates input buffer full }
jnz @@WaitOutReady
mov al,0FEh { Pulse “reset” = 8042 pin 0 }
out 64h,al
{ The PC will reboot now }
End;[/code]
[tags]Delphi, asm[/tags]
0 Kommentare zu “Reboot”