Code: Select all
cls1:
push ebx
push edx
xor ebx,ebx
@againx:
xor edx,edx
@againy:
call pset
inc edx
cmp edx,200
jnz @againy
inc ebx
cmp ebx,320
jnz @againx
pop edx
pop ebx
ret
After some testing, I figured out that if I comment out the line "jnz @againx", the keyboard starts working again.. but then the cls function doesn't work correctly. Does anybody know how to fix this?
The code is in NASM, in 32-bit protected mode. (Yes, Interrupts are enabled, and I don't get any Interrupt error).