| |
Trifox Account closed
Registered: Mar 2006 Posts: 108 |
sprite sprite collision interrupt ?
hi, i have tried to set bit 3 in $d01a and $d019
but somehow my interrupt is not initiated when 2 sprites overlap ... ;( i leave the interrupt with
asl $d019 ; ACK interrupt (to re-enable it)
pla
tay
pla
tax
pla
|
|
... 3 posts hidden. Click here to view all posts.... |
| |
TNT Account closed
Registered: Oct 2004 Posts: 189 |
Try using bit 2... also, make sure you don't have other IRQs enabled if you use rmw instruction to ack interrupts.
|
| |
Krill
Registered: Apr 2002 Posts: 2980 |
why no other irq sources? |
| |
TNT Account closed
Registered: Oct 2004 Posts: 189 |
I was thinking of other VIC-II interrupts, sorry for not being more clear. Problem with that is ofcourse acking them too. No problem with CIA interrupts.
(But who would use sprite-background and/or light pen IRQs? Sprite-sprite collision IRQ *can* sometimes be used to cut down comparisons when combined creatively with raster IRQ.)
|
| |
MRT Account closed
Registered: Sep 2005 Posts: 149 |
cli ?
;-) |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
is there a priority amongst different vic interruts? |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
i dont think so, they are all connected to the same irq line on the cpu afterall |
| |
Graham Account closed
Registered: Dec 2002 Posts: 990 |
You don't need a priority because you can read all IRQ sources via LDA $D019 and clear all IRQ flags as you like via setting their bits in $D019. |
| |
Danzig
Registered: Jun 2002 Posts: 440 |
you ment $D01A!? |
| |
TNT Account closed
Registered: Oct 2004 Posts: 189 |
You enable interrupts with $d01a, you read their status and ack them with $d019. |
| |
Danzig
Registered: Jun 2002 Posts: 440 |
yeah, shyte, I misread grahams posting...
like "clear all IRQ flags" reads "set all IRQ flags" to me...
*dumb* |
Previous - 1 | 2 - Next |