6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Mon Jul 01, 2024 8:49 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon Nov 08, 2021 5:37 pm 
Offline

Joined: Sat Jun 05, 2021 6:56 am
Posts: 19
If the only interrupt I'm working with is driven by the NMI pin on the CPU, are any SEI / CLI instructions therefore meaningless?

Or are there internal IRQs within the processor that are not otherwise addressed by the user's code?


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 08, 2021 5:44 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10838
Location: England
Indeed, SEI/CLI only makes a difference for IRQs, so no need for those, and if you have them they won't have any effect.


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 08, 2021 7:57 pm 
Offline

Joined: Sat Jun 05, 2021 6:56 am
Posts: 19
Thank you! It just amazes me the code I've been looking at even works with all the cruft and inefficient coding I've dug out so far.


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 09, 2021 12:49 am 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8236
Location: Midwestern USA
I suggest you read Garth's interrupt primer so you will become real familiar with how the 6502 reacts to interrupts.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 10, 2021 11:50 am 
Offline
User avatar

Joined: Mon Aug 30, 2021 11:52 am
Posts: 274
Location: South Africa
BigDumbDinosaur wrote:
I suggest you read Garth's interrupt primer so you will become real familiar with how the 6502 reacts to interrupts.
Yup, I can second that; I've got it printed out behind me. I found it incredibly useful. That and your Investigating 65816 interrupts too (if using 65816).


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 10, 2021 4:15 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8236
Location: Midwestern USA
AndrewP wrote:
Yup, I can second that; I've got it printed out behind me. I found it incredibly useful. That and your Investigating 65816 interrupts too (if using 65816).

The 65C816 interrupts article does repeat a few items in Garth's piece, but was focused on the 65C816's more powerful interrupt capabilities.

Incidentally, the 816 article posted here is out-of-date. The most up-to-date version is on my POC website.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: