![]() |
![]() |
#1 |
Registered User
Join Date: May 2017
Location: AmigaLand
Posts: 459
|
Level 2 IRQ infinite loop
Hi again,
Amiga 500 OCS (512/512). I have a pb with an infinite loop IRQ. This is a Lvl 2 irq ($68.W) triggered by Copper at the end of the frame ($009C,$8800). But right after the RTE, the PC jumps again in ($68.W) and again and again. Before RTE I do a move.w #$0008,$dff09C. So why cpu acts like the Irq was never accomplished ? Anyone already had this pb ? |
![]() |
![]() |
#2 |
Registered User
Join Date: Jun 2016
Location: europe
Posts: 1,062
|
Masks $8800 ($0800 specifically) and $0008 don't match. Also, whay are you using lvl2 interrupt for that (some of the CIA timers are at lvl2, as well as keyboard)?
I prefer to use lvl1 ($64.w vector, mask $0004) so it doesn't interfere with other hardware I might need to use (e.g. blitter int, keyboard, CIA timer for music player or trackdisk, ...), and since it's lower priority I don't have to worry how long is the interrupt handler. |
![]() |
![]() |
#3 |
Registered User
Join Date: May 2017
Location: AmigaLand
Posts: 459
|
Switched to lvl1 irq. Works fine. Thank you dear Mr a/b.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Correct Game Loop and Event Loop? | mateusz_s | Coders. System | 0 | 28 March 2021 21:36 |
Blitting from main loop and level 3 interrupt (copper) | nandius_c | Coders. Asm / Hardware | 9 | 07 February 2020 19:15 |
Cannot use AUDX-INT (Level 4 IRQ) to stop sample. | Herpes | Coders. Asm / Hardware | 18 | 16 January 2020 22:37 |
Infinite vertical scrolling | LuigiThirty | Coders. Asm / Hardware | 38 | 04 January 2017 23:25 |
infinite money in ishar 2 | Jacobson | support.Games | 7 | 19 April 2012 12:42 |
|
|