8259A 芯片中断控制代码示例:边沿触发,级联模式
mov al, 01h out 20h, al ; ICW1 mov al, 08h out 21h, al ; ICW2 mov al, 04h out 21h, al ; ICW3 mov al, 0Bh out 21h, al ; ICW4
; 输入为1 ; ICW1:边沿触发,级联,需要ICW4 ; ICW2:D3置1 ; ICW3:主片的 IR2接上从片 ; ICW4:非缓冲,普通全嵌套,非自动结束中断
原文地址: https://www.cveoy.top/t/topic/m07V 著作权归作者所有。请勿转载和采集!