|
|
|
|
|
|
Make "PS2 Invaders v1.6" by "InPulSe Team" work.
Posted on 2005-10-06 00:00:00 |
|
I'm in the process of implementing the exception handler. It's a bit annoying because you must consider that an interrupt could occur while servicing an interrupt. So it must be recursive in some way.
I've decided to call the interrupt handler directly from the INTC module for now. Adding a special instruction at 0x80000180 to trigger the handler wasn't a good idea because virtual memory isn't implemented yet. With the way the address translation is currently implemented, the exception vector memory would fall into the memory the demo can use. I'm going to add a little instruction in the BIOS memory area for the user interrupt handlers to return to when they're done. This instruction will retrigger the exception handler code. It should be able to continue its execution when called from this instruction. There's some stuff I've been thinking to change/add while playing around in the code today: - Merge all the DMAC channel handling logic into one. It's just getting annoying to replicate all the code for a channel. - Change the way the disassembler works. The way it works now is that there is a big switch statement in a function which decides which string to use. The problem with this is that there's no way to dynamically change the strings you'd like to use. This isn't an urgent change, but it would be nice to have. |