Mercurial > repos > blastem
diff z80_to_x86.c @ 1440:7d4483944d4d
Allow actually saving a save state in more Z80 states. Save busreq/reset state in bus arbiter section for "native" save states
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 24 Aug 2017 19:28:56 -0700 |
parents | c886c54d8cf1 |
children | 9327c1dc3791 |
line wrap: on
line diff
--- a/z80_to_x86.c Thu Aug 24 00:02:16 2017 -0700 +++ b/z80_to_x86.c Thu Aug 24 19:28:56 2017 -0700 @@ -3872,6 +3872,7 @@ 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 @@ 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);