Search found 95 matches
- Sat Jan 26, 2008 6:41 pm
- Forum: Your Announcements
- Topic: Tutorial 14: Programming the Kernel 1
- Replies: 20
- Views: 110380
- Thu Jan 24, 2008 7:09 pm
- Forum: Advanced OS Development
- Topic: Nasm - Useful IDT Interface
- Replies: 13
- Views: 79756
First you need an array of pointers to the IRQ functions. Then you just use a normal loop such as: (this code isn't tested but it should work) IRQ_0: ... IRQ_1: ... IRQ_TABLE: dd IRQ_0 dd IRQ_1 ... Load_IRQs: pusha Load_Loop: mov edi,IRQ_TABLE ;Get array pointer xor eax,eax ;Zero eax mov ecx,0FFh ;...
- Tue Jan 22, 2008 3:19 am
- Forum: Advanced OS Development
- Topic: Nasm - Useful IDT Interface
- Replies: 13
- Views: 79756
- Mon Jan 21, 2008 6:40 pm
- Forum: Advanced OS Development
- Topic: Nasm - Useful IDT Interface
- Replies: 13
- Views: 79756
; install our IRQs mov eax, 0 mov ebx, IRQ_0 call IDT_SetGate ; installs interrupt 0 handler mov eax, 1 mov ebx, IRQ_1 call IDT_SetGate ; installs interrupt 1 handler mov eax, 2 mov ebx, IRQ_2 call IDT_SetGate ; installs interrupt 2 handler ; etc up to 255th handler. This can be looped though How c...
- Mon Jan 21, 2008 2:49 pm
- Forum: Your Announcements
- Topic: Tutorial 14: Programming the Kernel 1
- Replies: 20
- Views: 110380