#128835 - fogzot - Tue May 15, 2007 8:27 pm
First of all let me say that I am a real newbie here and if this is not the right place to post just redirect me somewhere else. Then let me thank all the people that reverse enginered the DS and especially libnds authors: reading its source code is better than a reference guide (and makes me go back to 6510 assembly and C64 times.) Anyway, here is the question:
I've noted that IRQ handlers are implemented in libnds as an array of (mask, handler) pairs and I don't understand why. Woulnd't a simple array of handlers, indexed by IRQ number be simpler and faster? It seems that this is done to allow for multi-bit masks (i.e., more than one IRQ in the same mask) but I don't see an use for that. Is there some code out there that uses that feature? Is it a really feature?
Thank you for your time, and thank you again.
I've noted that IRQ handlers are implemented in libnds as an array of (mask, handler) pairs and I don't understand why. Woulnd't a simple array of handlers, indexed by IRQ number be simpler and faster? It seems that this is done to allow for multi-bit masks (i.e., more than one IRQ in the same mask) but I don't see an use for that. Is there some code out there that uses that feature? Is it a really feature?
Thank you for your time, and thank you again.