From b652f46abdbd8536e82e4c4554bdfd80c33e86c2 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 24 Aug 2017 19:28:56 -0700 Subject: Allow actually saving a save state in more Z80 states. Save busreq/reset state in bus arbiter section for "native" save states --- z80_to_x86.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'z80_to_x86.c') 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); -- cgit v1.2.3