2024-07-13 07:43:27 +00:00
|
|
|
;; File: pic.inc
|
|
|
|
;; <Datasheet at https://pdos.csail.mit.edu/6.828/2005/readings/hardware/8259A.pdf>
|
|
|
|
|
2024-07-08 17:20:24 +00:00
|
|
|
PIC1_COMMAND = 0x20
|
|
|
|
PIC1_DATA = 0x21
|
|
|
|
PIC2_COMMAND = 0xA0
|
|
|
|
PIC2_DATA = 0xA1
|
|
|
|
|
|
|
|
PIC_EOI = 0x20
|
|
|
|
|
2024-07-13 08:17:36 +00:00
|
|
|
|
2024-07-08 17:20:24 +00:00
|
|
|
pic_init:
|
2024-07-13 08:17:36 +00:00
|
|
|
|
2024-07-08 17:20:24 +00:00
|
|
|
ret
|
|
|
|
|
2024-07-13 08:17:36 +00:00
|
|
|
pic_disable:
|
|
|
|
mov al, 0xFF
|
|
|
|
out PIC1_DATA, al
|
|
|
|
out PIC2_DATA, al
|
|
|
|
ret
|