Line 61... |
Line 61... |
case 0xFFFF:
|
case 0xFFFF:
|
fclose(fo);
|
fclose(fo);
|
printf("Audio closed.\n");
|
printf("Audio closed.\n");
|
cont_run = 0;
|
cont_run = 0;
|
return;
|
return;
|
case SPR_TTMR:
|
|
if(~value & SPR_TTMR_IP & sprs[SPR_TTMR])
|
|
setsprbit(SPR_PICSR, config.tick.irq, 0);
|
|
break;
|
|
case SPR_TTCR:
|
case SPR_TTCR:
|
tt_stopped = 0;
|
tt_stopped = 0;
|
break;
|
break;
|
case SPR_SR:
|
case SPR_SR:
|
if(value & SPR_SR_F)
|
if(value & SPR_SR_F)
|
flag = 1;
|
flag = 1;
|
else
|
else
|
flag = 0;
|
flag = 0;
|
value = value | SPR_SR_EXR; /* Exceptions are allways enabled */
|
|
break;
|
break;
|
case SPR_NPC:
|
case SPR_NPC:
|
{
|
{
|
extern unsigned long pc;
|
extern unsigned long pc;
|
extern unsigned long pcnext;
|
extern unsigned long pcnext;
|
Line 150... |
Line 145... |
printf("MACLO: 0x%.8x MACHI: 0x%.8x\n", mfspr(SPR_MACLO), mfspr(SPR_MACHI));
|
printf("MACLO: 0x%.8x MACHI: 0x%.8x\n", mfspr(SPR_MACLO), mfspr(SPR_MACHI));
|
printf("EPCR0: 0x%.8x EPCR1: 0x%.8x\n", mfspr(SPR_EPCR_BASE), mfspr(SPR_EPCR_BASE+1));
|
printf("EPCR0: 0x%.8x EPCR1: 0x%.8x\n", mfspr(SPR_EPCR_BASE), mfspr(SPR_EPCR_BASE+1));
|
printf("EEAR0: 0x%.8x EEAR1: 0x%.8x\n", mfspr(SPR_EEAR_BASE), mfspr(SPR_EEAR_BASE+1));
|
printf("EEAR0: 0x%.8x EEAR1: 0x%.8x\n", mfspr(SPR_EEAR_BASE), mfspr(SPR_EEAR_BASE+1));
|
printf("ESR0 : 0x%.8x ESR1 : 0x%.8x\n", mfspr(SPR_ESR_BASE), mfspr(SPR_ESR_BASE+1));
|
printf("ESR0 : 0x%.8x ESR1 : 0x%.8x\n", mfspr(SPR_ESR_BASE), mfspr(SPR_ESR_BASE+1));
|
printf("TTMR : 0x%.8x TTCR : 0x%.8x\n", mfspr(SPR_TTMR), mfspr(SPR_TTCR));
|
printf("TTMR : 0x%.8x TTCR : 0x%.8x\n", mfspr(SPR_TTMR), mfspr(SPR_TTCR));
|
printf("PICMR: 0x%.8x PICPR: 0x%.8x\n", mfspr(SPR_PICMR), mfspr(SPR_PICPR));
|
printf("PICMR: 0x%.8x PICSR: 0x%.8x\n", mfspr(SPR_PICMR), mfspr(SPR_PICSR));
|
printf("PICSR: 0x%.8x\n", mfspr(SPR_PICSR));
|
|
printf("PPC: 0x%.8x NPC : 0x%.8x\n", mfspr(SPR_PPC), mfspr(SPR_NPC));
|
printf("PPC: 0x%.8x NPC : 0x%.8x\n", mfspr(SPR_PPC), mfspr(SPR_NPC));
|
}
|
}
|
|
|
No newline at end of file
|
No newline at end of file
|