Answer the question
In order to leave comments, you need to log in
How to properly initialize an interrupt controller?
Projected interrupt table and loaded limit and base into idtr. I wrote a timer interrupt handler, wrote down its address in the table as the 20th element. When this handler is called via the int 20h command, the handler executes its own and the kernel continues its work. Also initialized pic with the following commands
mov al,0x11
out 20h,al
out 0A0h,al
mov al,0x20
out 21h,al
mov al,0x28
out 0A1h,al
mov al,04h
out 21h,al
mov al,02h
out 0A1h,al
mov al,1
out 21h,al
mov al,1
out 0A1h,al
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question