Skip to content

Instantly share code, notes, and snippets.

GAL22V10
irqController
; not tested yet
;
; This is a simple interrupt controller
; * Supports four priority interrupts, with IRQ3 being the highest priority
; * IRQ is signalled when there are any interrupts.
; * D1..D0 is the index of the highest priority pending interrupt.
; * Chip select tristates the D1 and D0 pins and gates write operations.