Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

hot dos (Developers)

posted by RayeR Homepage, CZ, 12.05.2025, 19:51

> And during those (some instructions) the keyboard
> may have been hit, the interrupt processed, the
> key is now in the buffer, ready for next time I
> call the "is keyboard hit?" bios interrupt.

Interesting problem, from what I read here: https://wiki.osdev.org/Interrupts#From_the_keyboard's_perspective

It seems that PIC is blocked to send more IRQs during handling it until you explicitly finish the handling by:

When the CPU finishes handling the interrupt, it tells the PIC that it's OK to resume sending interrupts:
mov al,20h
out 20h,al


So if some key is hit in meantime, KBC should hold it in the internal queue and it will generate new interrupt just after you exit your ISR and do HLT it should fire IRQ again to wake you up. Am I right?

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

Back to the forum
Board view  Mix view
22552 Postings in 2097 Threads, 401 registered users, 38 users online (0 registered, 38 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum