summaryrefslogtreecommitdiff
path: root/z80_to_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-08-24 19:28:56 -0700
committerMichael Pavone <pavone@retrodev.com>2017-08-24 19:28:56 -0700
commitb652f46abdbd8536e82e4c4554bdfd80c33e86c2 (patch)
treea1ea840374e0fa832d44c88c2b86d7551c266ebe /z80_to_x86.c
parent633b06efd1f06fe980c1c8f83461d6faa53545aa (diff)
Allow actually saving a save state in more Z80 states. Save busreq/reset state in bus arbiter section for "native" save states
Diffstat (limited to 'z80_to_x86.c')
-rw-r--r--z80_to_x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c
index 4ab2700..615419f 100644
--- a/z80_to_x86.c
+++ b/z80_to_x86.c
@@ -3872,6 +3872,7 @@ void z80_serialize(z80_context *context, serialize_buffer *buf)
save_int8(buf, context->iff1);
save_int8(buf, context->iff2);
save_int8(buf, context->int_is_nmi);
+ save_int8(buf, context->busack);
save_int32(buf, context->current_cycle);
save_int32(buf, context->int_cycle);
save_int32(buf, context->int_enable_cycle);
@@ -3923,6 +3924,7 @@ void z80_deserialize(deserialize_buffer *buf, void *vcontext)
context->iff1 = load_int8(buf);
context->iff2 = load_int8(buf);
context->int_is_nmi = load_int8(buf);
+ context->busack = load_int8(buf);
context->current_cycle = load_int32(buf);
context->int_cycle = load_int32(buf);
context->int_enable_cycle = load_int32(buf);