Added code to support getting interrupts from the PIC. Can now get some data from the keyboard, however, it's not quite working yet.
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
global irq0 ; PIC Timer Interrupt
|
||||
global irq1 ; Keyboard
|
||||
global irq2 ; Cascade (Used internally by the two PICs; never raised)
|
||||
global irq3 ; COM2
|
||||
global irq4 ; COM1
|
||||
global irq5 ; LPT2
|
||||
global irq6 ; Floppy Disk
|
||||
global irq7 ; LPT1
|
||||
global irq8 ; CMOS realt-time clock
|
||||
global irq9 ; Free for perpherals / legacy SCSI / NIC
|
||||
global irq10 ; Free for perpherals / NIC
|
||||
global irq11 ; Free for perpherals / NIC
|
||||
global irq12 ; PS2 mouse
|
||||
global irq13 ; FPU / Coprocessor / Inter-process
|
||||
global irq14 ; Primary ATA HDD
|
||||
global irq15 ; Secondary ATA HDD
|
||||
|
||||
extern handle_key_press
|
||||
|
||||
irq0:
|
||||
iret
|
||||
|
||||
irq1:
|
||||
call handle_key_press
|
||||
iret
|
||||
|
||||
irq2:
|
||||
iret
|
||||
|
||||
irq3:
|
||||
iret
|
||||
|
||||
irq4:
|
||||
iret
|
||||
|
||||
irq5:
|
||||
iret
|
||||
|
||||
irq6:
|
||||
iret
|
||||
|
||||
irq7:
|
||||
iret
|
||||
|
||||
irq8:
|
||||
iret
|
||||
|
||||
irq9:
|
||||
iret
|
||||
|
||||
irq10:
|
||||
iret
|
||||
|
||||
irq11:
|
||||
iret
|
||||
|
||||
irq12:
|
||||
iret
|
||||
|
||||
irq13:
|
||||
iret
|
||||
|
||||
irq14:
|
||||
iret
|
||||
|
||||
irq15:
|
||||
iret
|
||||
Reference in New Issue
Block a user