Hello again,
at this time I have a more complex question. I found the small project here:
http://www.6502.org/mini-projects/priority-interrupt-encoder/priority-interrupt-encoder.htmlIt provides a answer to my question how to distinguish between several IRQ sources. I even understand the trick to use D1 to D3 (instead of D0 to D2) as input for the 74HC574 to create a doubled index for the IRQ jump-table.
Now to the question marks flying around my head ....
As far as I understand the schema, the outputs of the 74HC574 are driving the data-bus (D0 to D7). In the later assembler code the IRQ source is read by
Code:
IRQ PHX
LDX IRQPORT
JMP (IRQTABLE,X)
IQRTABLE Address of service routine for IRQ0
Address of service routine for IRQ1
Address of service routine for IRQ2
But where is IRQPORT defined? I assume, that it is an IO Address where the circuit is mapped to the memory layout. So do I need some kind of address decoding that matches the specific address and is combined with the R/W signal from the CPU that drives the "READPORT" line? Or do I miss something?
Mario.