6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu May 09, 2024 8:19 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: [97.1] Interrupt timing
PostPosted: Fri Feb 09, 2001 8:22 am 
Just a small question from an emulator author - how come (maskable) interrupts take 7 cycles? Presumably the final five cycles are 'push pc low byte / push pc high byte / push status register / load new pc low byte / load new pc high byte' (give or take the ordering of the first three), but what are the first two concerned with? Not even 64doc seems to have this information.


Report this post
Top
  
Reply with quote  
 Post subject: [97.2] Interrupt timing
PostPosted: Fri Feb 09, 2001 3:44 pm 
Offline

Joined: Sun Oct 06, 2002 3:46 pm
Posts: 50
ccording to my Rockwell book, there are 8 cycles involved in the NMI.
1 Fetch OP Code Hold Prog. Ctr, Finish Prev Operation
2 Fetch OP Code Hold Prg Ctr
3 Push PCH Decrement Stack Pointer
4 Push PCL Decrement Stack Pointer
5 Push Processor Status Decrement Stack Pointer
6 Fetch Vector Low ($FFFA) Load to PC Low
7 Fetch Vector High ($FFFB) Load to PC High
8 Fetch Interrupt Program Increment PC to PC+1

Hope this helps
Ted Melton


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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: