X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2FArea.c;h=3749ac3232c43b200ad07729665726ad793091e1;hb=a4f0cc8647c019f149541df380a2d30e14aeb75c;hp=a88ed80ae3a74a5aa183845265c9f3d18055226a;hpb=a40308010482ca8674bb6ff8c7cf271098f2aebe;p=picodrive.git diff --git a/Pico/Area.c b/Pico/Area.c index a88ed80..3749ac3 100644 --- a/Pico/Area.c +++ b/Pico/Area.c @@ -63,7 +63,7 @@ int PicoAreaPackCpu(unsigned char *cpu, int is_sub) *(unsigned int *)(cpu+0x44)=CycloneGetSr(context); *(unsigned int *)(cpu+0x48)=context->osp; cpu[0x4c] = context->irq; - cpu[0x4d] = context->stopped; + cpu[0x4d] = context->state_flags & 1; #endif #ifdef EMU_M68K @@ -102,7 +102,9 @@ int PicoAreaUnpackCpu(unsigned char *cpu, int is_sub) context->membase=0; context->pc = context->checkpc(*(unsigned int *)(cpu+0x40)); // Base pc context->irq = cpu[0x4c]; - context->stopped = cpu[0x4d]; + context->state_flags = 0; + if (cpu[0x4d]) + context->state_flags |= 1; #endif #ifdef EMU_M68K