ok, i have been writing this little protected mode kernel
and for some reason or another the keyboard function freezes the machine
what do you think is causing it?
Code:
[]
#define getch() (int)read_keyboard
unsigned char keyready(){
asm {
mov ah,1
int 16h
jz no_key
}
return 1;
no_key:
return 0;
}
unsigned char read_keyboard(){
asm {
xor ah,ah
int 0x16
}
return _AL;
}