DS BIOS: Add DS9 BIOS

This commit is contained in:
Vicki Pfau 2017-01-30 16:41:05 -08:00
parent fea365678b
commit 0a568f2877
2 changed files with 13 additions and 2 deletions

View File

@ -22,3 +22,14 @@ void DS7Swi16(struct ARMCore* cpu, int immediate) {
void DS7Swi32(struct ARMCore* cpu, int immediate) {
DS7Swi16(cpu, immediate >> 16);
}
void DS9Swi16(struct ARMCore* cpu, int immediate) {
mLOG(DS_BIOS, DEBUG, "SWI9: %02X r0: %08X r1: %08X r2: %08X r3: %08X",
immediate, cpu->gprs[0], cpu->gprs[1], cpu->gprs[2], cpu->gprs[3]);
ARMRaiseSWI(cpu);
}
void DS9Swi32(struct ARMCore* cpu, int immediate) {
DS9Swi16(cpu, immediate >> 16);
}

View File

@ -165,8 +165,8 @@ void DS7InterruptHandlerInit(struct ARMInterruptHandler* irqh) {
void DS9InterruptHandlerInit(struct ARMInterruptHandler* irqh) {
irqh->reset = DS9Reset;
irqh->processEvents = DS9ProcessEvents;
irqh->swi16 = NULL;
irqh->swi32 = NULL;
irqh->swi16 = DS9Swi16;
irqh->swi32 = DS9Swi32;
irqh->hitIllegal = DSIllegal;
irqh->readCPSR = DS9TestIRQ;
irqh->writeCP15 = DS9WriteCP15;