Page 1 of 1
How can I get interrupts of all drivers on x86 Assembly?
Posted: Tue Jul 21, 2020 8:01 am
by ExSiS
I am trying to create a kernel but I have a problem with driver support. I don't want to try the C language for my kernel. How can I get all interrupts? I am creating it on the Assembly x86 language. Thanks.
Note: Please don't say search it on Ralf Brown's interrupt list because I searched it but there are no many drivers.
Re: How can I get interrupts of all drivers on x86 Assembly?
Posted: Tue Jul 21, 2020 8:11 pm
by Octocontrabass
Are you looking for interrupts you can call to control various hardware, like how INT 0x10 is the display subsystem and INT 0x13 is the storage subsystem? If so, you can't find them because they don't exist.
If that's not what you're looking for then I don't understand your question and you'll have to explain it a bit more so I can try answering again.
Re: How can I get interrupts of all drivers on x86 Assembly?
Posted: Wed Jul 22, 2020 2:04 am
by ExSiS
I want to enable AMD PCNet and eject the CD-ROM on Assembly x86. But how it works?
Re: How can I get interrupts of all drivers on x86 Assembly?
Posted: Wed Jul 22, 2020 3:01 am
by crosssans
What mode are you exactly using? Is it Real Mode? or Unreal Mode? or maybe even Protected Mode with V86 enabled?
You got to be precise on your request, otherwise people will struggle answering you

Re: How can I get interrupts of all drivers on x86 Assembly?
Posted: Wed Jul 22, 2020 3:40 am
by Octocontrabass
The wiki has a page on PCNet. I'm not familiar with it, so I can't say how accurate it is.
For accessing the CD drive, you'll need to scan the
PCI bus for the
IDE or
AHCI controller, then send the appropriate "START/STOP UNIT"
ATAPI command.
Even though the example code is written in C, you can do all of this with assembly.