English Amiga Board


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

 
 
Thread Tools
Old Yesterday, 08:45   #1
DJ Mike
Registered User
 
Join Date: Nov 2005
Location: United Kingdom
Age: 41
Posts: 111
Clearing bits in ciaicr mask

Does clearing bits in a ciaicr mask - e.g. move.b #CIAICRF_TB,(_ciaa+ciaicr) - immediately mask them if they are already set (i.e. when the register is next read)? I want to reset a bit in the icr without affecting other bits that may already be set. I can't just read ciaicr to clear it because that clears the entire register.

Perhaps it is a moot point, since if an interrupt is signalled to ciaicr and I have a ports interrupt installed, then I would expect the interrupt to occur before my code is setting ciaicr elsewhere. So it might be a redundant question.

Last edited by DJ Mike; Yesterday at 09:00.
DJ Mike is offline  
Old Yesterday, 09:23   #2
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,508
icr contains two registers at the same address, one read-only and one write-only.
They are completely separate.

So even if you write a specifica mask, when you read the register it will contain the 'historical situation' of the interrupt requests, even those that were instantly masked.
This means that if you have pending interrupts, they remain pending after writing.
ross is offline  
Old Yesterday, 09:43   #3
DJ Mike
Registered User
 
Join Date: Nov 2005
Location: United Kingdom
Age: 41
Posts: 111
Thanks for clarifying ross. That's helpful to me to be aware of. Thankfully I don't think it materially impacts what my program is doing.
DJ Mike is offline  
Old Yesterday, 14:35   #4
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,738
More on the ICR in this overview.
Photon 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
Clearing a window under AmigaOS Wrangler Coders. System 12 31 July 2023 20:48
Clearing the X-bit oRBIT Coders. Asm / Hardware 6 22 April 2012 02:52
Clearing out some spares on Amibay! fitzsteve MarketPlace 7 10 January 2012 16:59
Clearing out classic system Stokey MarketPlace 6 09 January 2010 22:34
Clearing A1200 + 500+ ericmark MarketPlace 11 27 May 2009 00:50

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 01:16.

Top

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