X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Farea.c;h=e12b94919912bc93a7aaf2a28a9e790b0e74d45d;hb=5e89f0f5aebedc086888415e063b9883fc4a9e92;hp=4ac71dfabad461a98a1dad63bb620c15f1245336;hpb=fc1874de8af2fb53449bcfa931e025071f188b3e;p=picodrive.git diff --git a/pico/area.c b/pico/area.c index 4ac71df..e12b949 100644 --- a/pico/area.c +++ b/pico/area.c @@ -89,8 +89,9 @@ PICO_INTERNAL void PicoAreaUnpackCpu(unsigned char *cpu, int is_sub) CycloneSetSr(context, *(unsigned int *)(cpu+0x44)); context->osp=*(unsigned int *)(cpu+0x48); memcpy(context->d,cpu,0x40); - context->membase=0; - context->pc = context->checkpc(*(unsigned int *)(cpu+0x40)); // Base pc + context->membase = 0; + context->pc = *(unsigned int *)(cpu+0x40); + CycloneUnpack(context, NULL); // rebase PC context->irq = cpu[0x4c]; context->state_flags = 0; if (cpu[0x4d])