Machine restarting when placing command 0xF4 on PS2 controll
Posted: Tue Jul 27, 2021 6:50 pm
I'm trying out the idea of creating a keyboard driver, but I have a problem:
This is the code, I'm sure it arrives on this label because I printed a letter as soon as I got to StartKeyboard (More was just for testing)
the problem is that when I run this code on qemu it keeps restarting all the time
but if I put the 0xED command in al, it works normal, I wanted to know why this is
Code: Select all
[bits 16]
[org 0x500]
jmp StartKeyboard
StartKeyboard:
mov al, 0xf4
mov dx, 0x64
out dx, al
mov ah, 0x0E
mov al, "P"
int 10h
ret
the problem is that when I run this code on qemu it keeps restarting all the time
but if I put the 0xED command in al, it works normal, I wanted to know why this is