Hi guys, we have the FujiNet working with the VIC-20 now, but I have a very important question:
With SRQ, I can see it's hooked up to the VIA #2, via CB1.
I am still digging for a good ROM disassembly for the IRQ routine at EABF, but, I thought I'd ask here anyway.
I don't have to explicitly enable the SRQ interrupt on the C64, do I need to do so on the VIC20?
-Thom
vic-20 SRQ (CB1) interrupt?
Moderator: Moderators
-
- Vic 20 Drifter
- Posts: 28
- Joined: Wed Sep 25, 2019 8:41 am
- Website: http://irata.online/
- Location: Denton TX USA
- Occupation: Hacker
Re: vic-20 SRQ (CB1) interrupt?
VIA#2 IER is setup with all interrupts disabled by default. The tape routines selectively enable timer & CA1 interrupts, the normal jiffy clock also enables T1.
-
- Vic 20 Drifter
- Posts: 28
- Joined: Wed Sep 25, 2019 8:41 am
- Website: http://irata.online/
- Location: Denton TX USA
- Occupation: Hacker
Re: vic-20 SRQ (CB1) interrupt?
So the correct thing for me to do would be to enable CB1, jump to old IRQ handler, and let the default IRQ handler enable what it needs to do?
-Thom
-Thom
Re: vic-20 SRQ (CB1) interrupt?
You don't give any context about what you're trying to do but to handle interrupts from the SRQ line you'll need to
- make sure the CB1 bit in the PCR is set appropriately. The KERNAL sets it to positive edge triggered (i.e. 0 -> 1 transition)
- add your own IRQ handler that checks the IFR bit and then chains the standard handler
- set the appropriate bit in the IER
- set the appropriate bit in the IFR
-
- Vic 20 Drifter
- Posts: 28
- Joined: Wed Sep 25, 2019 8:41 am
- Website: http://irata.online/
- Location: Denton TX USA
- Occupation: Hacker
Re: vic-20 SRQ (CB1) interrupt?
Yup, I understand completely. Just wasn't sure what interrupts the kernal nominally enables and when. With the listing, this is more clear.
-Thom
-Thom