English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 09 July 2022, 18:51   #1
LeCaravage
Registered User
 
LeCaravage's Avatar
 
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 ?
LeCaravage is offline  
Old 09 July 2022, 19:12   #2
a/b
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.
a/b is offline  
Old 09 July 2022, 19:45   #3
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
Switched to lvl1 irq. Works fine. Thank you dear Mr a/b.
LeCaravage is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:30.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07829 seconds with 13 queries