port to updated Cyclone, debug menu
[picodrive.git] / Pico / Area.c
index a88ed80..3749ac3 100644 (file)
@@ -63,7 +63,7 @@ int PicoAreaPackCpu(unsigned char *cpu, int is_sub)
   *(unsigned int *)(cpu+0x44)=CycloneGetSr(context);\r
   *(unsigned int *)(cpu+0x48)=context->osp;\r
   cpu[0x4c] = context->irq;\r
-  cpu[0x4d] = context->stopped;\r
+  cpu[0x4d] = context->state_flags & 1;\r
 #endif\r
 \r
 #ifdef EMU_M68K\r
@@ -102,7 +102,9 @@ int PicoAreaUnpackCpu(unsigned char *cpu, int is_sub)
   context->membase=0;\r
   context->pc = context->checkpc(*(unsigned int *)(cpu+0x40)); // Base pc\r
   context->irq = cpu[0x4c];\r
-  context->stopped = cpu[0x4d];\r
+  context->state_flags = 0;\r
+  if (cpu[0x4d])\r
+    context->state_flags |= 1;\r
 #endif\r
 \r
 #ifdef EMU_M68K\r