1 ; vi:filetype=nasm ts=8 sts=8 sw=8:
20 ; PIC initialization command word 1 bits
21 ICW1_ICW4_NEEDED equ 01h
23 ICW1_INTERVAL4 equ 04h
26 ; PIC initialization command word 4 bits
29 ICW4_BUF_SLAVE equ 08h
30 ICW4_BUF_MASTER equ 0ch
32 ; PIC operation command word 2 bits
36 ; send ICW1 saying we'll follow with ICW4 later on
37 mov al, ICW1_INIT | ICW1_ICW4_NEEDED
40 ; send ICW2 with IRQ remapping
45 ; send ICW3 to setup the master/slave relationship
46 ; ... set bit3 = 3rd interrupt input has a slave
49 ; ... set slave ID to 2
52 ; send ICW4 to set 8086 mode (no calls generated)
56 ; done, reset the data port to 0