keyboard interrupt (untested)
[ld45_start_nothing] / src / intr.inc
index 55a1c9d..ac57934 100644 (file)
@@ -1,9 +1,14 @@
 ; vi:filetype=nasm ts=8 sts=8 sw=8:
 
-%define IRQ_OFFSET     32
+PIC1_CMD       equ 020h
+PIC2_CMD       equ 0a0h
+OCW2_EOI       equ 020h
+OCW3_ISR       equ 00bh
+IRQ_OFFSET     equ 32
 %define IRQ_TO_INTR(x) ((x) + IRQ_OFFSET)
 %define INTR_TO_IRQ(x) ((x) - IRQ_OFFSET)
 
+
 %macro set_irq_vector 2
        push dword IRQ_TO_INTR(%1)
        push dword %2
@@ -45,3 +50,7 @@
 %endmacro
 
        extern idt
+
+%ifndef INTR_ASM_
+       extern set_intr
+%endif