I have a ISR for the keybord IRQ 1 (INT 21h). This ISR set a flag each time the user hit a key (and unset the flag when the user release the key).
I like a OS service that wait for a 'keyboard hit', then I wrote it:
_kbhit:
mov al, [hayTecleo]
cmp al, 0
je _kbhit
ret
It works nice, but if I use it as an ISR of a software interrupt (int 31h)
it not works.
What happend?
Thank you.
The INT instruction disable the IRQs?
RE:The INT instruction disable the IRQs?
The CPU disables interrupts automatically before invoking your ISR. You will need to enable them manually.
RE:The INT instruction disable the IRQs?
How I must do it?
It is possible to simply use the STI instruction?
It is possible to simply use the STI instruction?