English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 13 January 2024, 17:12   #21
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,632
Quote:
Originally Posted by Warty View Post
Just out of like, curiosity, what kind of bad behavior should any user foolish enough to run this program expect, if I just like went ahead with using it the way it is? Like, HOW un-system-friendly is using the level 6 interrupts? Is it more than music will lag sometimes, or will it break some piece of system software that was depending on not having the interrupts diverted?
This is from the cia documentation:
Code:
/* interrupt control register bit numbers */
#define CIAICRB_TA	0
#define CIAICRB_TB	1
#define CIAICRB_ALRM	2
#define CIAICRB_SP	3
#define CIAICRB_FLG	4
#define CIAICRB_IR	7
#define CIAICRB_SETCLR	7
0-4 are cia interrupt sources, and you will be using one of them - the other 4 may be used by other software or the OS for whatever.. If you rewrite the vector, you basically remove the ability for these other actors to receive their intended interrupts.


Other software that isn't aware of yours may step on your timer setup (thinking the timer is available), and thereby corrupt your sound playback.


The hardware interrupt associated with each cia is also used as "external" interrupts, meaning third party hardware may use them, but this goes haywire if you modify the vector to point to your ISR.
hooverphonique is offline  
Old 13 January 2024, 18:41   #22
Warty
Registered User
 
Join Date: Aug 2018
Location: Minneapolis, USA
Posts: 301
Ok. That all seems bad. <sigh> I will put it on the to-do list. Another opportunity for learning new things!

Thanks everyone. I may have to come back later and beg for help, if I can't figure it out from documentation/google.
Warty 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
Ptplayer sfx problem sandruzzo Coders. General 4 09 October 2022 13:37
Ptplayer question sandruzzo Coders. General 11 06 October 2022 05:47
Amiblitz 3 and PtPlayer Nightshft Coders. Blitz Basic 4 14 November 2021 00:28
CacheControl and VBR from bootblock h0ffman Coders. Asm / Hardware 11 26 May 2021 17:57
Problem with ptplayer MacSpain support.Other 2 23 January 2020 19:52

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 17:46.

Top

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