CPCWiki forum

General Category => Programming => Topic started by: SpDizzy on 16:21, 15 August 25

Title: WinAPE Interrupt Control Status Register value check
Post by: SpDizzy on 16:21, 15 August 25
Hi folks, just a quick question, please.

WinAPE on his Registers Window has an Interrupt Control Status Register 'ICSR'.
Bit 7 on that register indicates that an interrupt has occurred and has not yet been acknowledged.
Is there any way to check this internal register bit via breakpoints window?

register-ICSR.jpg

Also working with Arnold Emulator, so I will like to extend this question to Kevin @arnoldemu about his great emulator. 

Thanks so much for support.
Title: Re: WinAPE Interrupt Control Status Register value check
Post by: arnoldemu on 09:01, 16 August 25
I don't see a way to do it in Winape. I looked into the breakpoint conditions but I didn't see anything that seemed suitable.

In Arnold emulator you can break on events and one of those is the maskable interrupt but that's when it's been acknowledged rather than when it's been raised. It is good if you didn't know which z80 interrupt mode was active and it happens just before calling the interrupt function itself, otherwise for im1 it's about the same as breakpointing address 0038.

I'm not sure if this helps, were you wanting at the point the interrupt was raised or when it's acknowledged?
Title: Re: WinAPE Interrupt Control Status Register value check
Post by: SpDizzy on 09:53, 16 August 25
Thanks so much for your response Kevin. That's was I thought, there's no way to catch it.
I want the point an interrupt has been raised, but has not been yet acknowledged due to interrupts being temporary disabled, that is 'IFF1 = 0'.
Working on IM1.
Powered by SMFPacks Menu Editor Mod