You are not logged in -
nap
CSDb User Forums
Forums
>
C64 Coding
>
TIL: The instruction after SEI can be executed before a pending IRQ is handled
2017-11-07
15:56
Krill
Registered: Apr 2002
Posts: 3098
TIL: The instruction after SEI can be executed before a pending IRQ is handled
As described here:
http://visual6502.org/wiki/index.php?title=6502_Timing_of_Inter..
I never knew this, after all those years, and thought i'd share this as a heads-up.
Thanks to
Bubis
for pointing it out to me!
... 97 posts hidden. Click
here
to view all posts....
2017-11-15
21:44
MagerValp
Registered: Dec 2001
Posts: 1083
Good points, and easy enough to test:
pendingirq2.prg
, same sequence of SYS calls as in comment #91. The instruction immediately following the sta $d01a, dey, is executed before the IRQ triggers (verified that VICE matches my C64). So this means that immediately writing the register in the VICE monitor with > d01a 01 doesn't match the behavior of sta $d01a, but I suppose that isn't too surprising.
It makes sense too - at least on the 65c02 IRQs are evaluated during the last cycle of the previous instruction, and what happens is that the next opcode is replaced by $00, forcing a BRK. NMOS 6502 presumably works the same.
2017-11-17
22:07
Copyfault
Registered: Dec 2001
Posts: 487
So my assumption was correct :)
Thanks to everyone for clarification, esp. to MagerValp for quickly mocking up a test prg.
Previous
-
1
|
2
|
3
|
4
|
5
|
6
|
7
|
8
|
9
|
10
| 11 - Next
Refresh
Subscribe to this thread:
You need to be logged in to post in the forum.
Search the forum:
Search
All forums
C64 Coding
C64 Composing
C64 Pixeling
C64 Productions
CSDb Bug Reports
CSDb Development
CSDb Discussions
CSDb Entries
CSDb Feedback
CSDb Info
CSDb moderators
CSDb Questions
Messages to moderators
Requests
for
in
Writer & text
Text
Writer
All times are CET.
Search CSDb
All
Releases
Groups
Sceners
Events
BBS
SIDs
-------
Forum
Comments
Advanced
Users Online
Twoflower/ΤRIΛD
Jazzcat/Onslaught
Guests online: 569
Top Demos
1
Next Level
(9.7)
2
13:37
(9.7)
3
Codeboys & Endians
(9.7)
4
Mojo
(9.6)
5
Coma Light 13
(9.6)
6
Edge of Disgrace
(9.6)
7
Signal Carnival
(9.6)
8
Wonderland XIV
(9.5)
9
Uncensored
(9.5)
10
Comaland 100%
(9.5)
Top onefile Demos
1
Nine
(9.7)
2
Layers
(9.6)
3
Cubic Dream
(9.6)
4
Party Elk 2
(9.6)
5
Copper Booze
(9.5)
6
Scan and Spin
(9.5)
7
Onscreen 5k
(9.5)
8
Grey
(9.5)
9
Dawnfall V1.1
(9.5)
10
Rainbow Connection
(9.5)
Top Groups
1
Artline Designs
(9.3)
2
Booze Design
(9.3)
3
Performers
(9.3)
4
Oxyron
(9.3)
5
Censor Design
(9.3)
Top Musicians
1
Rob Hubbard
(9.7)
2
Jeroen Tel
(9.7)
3
Stinsen
(9.7)
4
LMan
(9.7)
5
Linus
(9.6)
Home
-
Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.054 sec.