Interrupt handling

The common interrupt handler (provided by Chuck) is located at block 124. This works with colorForth from July 31 (rev 1.0) with a, defined as macro.

Hardware interrupts IRQ0-IRQ15 are mapped to vectors $20-$2f. You can define an interrupt for IRQ0-IRQ7 like:

20 interrupt
name forth your-handler clear /forth i;

IRQ8-IRQ15 are defined with 8clear instead of clear.

2a interrupt
name forth your-handler 8clear /forth i;

Timer0 interrupt

This code intializes the timer chip (PIT) and the interrupt controller (PIC). The variable t0 will be incremented 18.2 times per second.

Valid HTML 4.0! Valid CSS!

Updated: Tue Aug 28 21:28:46 CEST 2001