Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1439:7da675d0c512 | 1440:7d4483944d4d |
---|---|
3870 save_int16(buf, context->sp); | 3870 save_int16(buf, context->sp); |
3871 save_int8(buf, context->im); | 3871 save_int8(buf, context->im); |
3872 save_int8(buf, context->iff1); | 3872 save_int8(buf, context->iff1); |
3873 save_int8(buf, context->iff2); | 3873 save_int8(buf, context->iff2); |
3874 save_int8(buf, context->int_is_nmi); | 3874 save_int8(buf, context->int_is_nmi); |
3875 save_int8(buf, context->busack); | |
3875 save_int32(buf, context->current_cycle); | 3876 save_int32(buf, context->current_cycle); |
3876 save_int32(buf, context->int_cycle); | 3877 save_int32(buf, context->int_cycle); |
3877 save_int32(buf, context->int_enable_cycle); | 3878 save_int32(buf, context->int_enable_cycle); |
3878 save_int32(buf, context->int_pulse_start); | 3879 save_int32(buf, context->int_pulse_start); |
3879 save_int32(buf, context->int_pulse_end); | 3880 save_int32(buf, context->int_pulse_end); |
3921 context->sp = load_int16(buf); | 3922 context->sp = load_int16(buf); |
3922 context->im = load_int8(buf); | 3923 context->im = load_int8(buf); |
3923 context->iff1 = load_int8(buf); | 3924 context->iff1 = load_int8(buf); |
3924 context->iff2 = load_int8(buf); | 3925 context->iff2 = load_int8(buf); |
3925 context->int_is_nmi = load_int8(buf); | 3926 context->int_is_nmi = load_int8(buf); |
3927 context->busack = load_int8(buf); | |
3926 context->current_cycle = load_int32(buf); | 3928 context->current_cycle = load_int32(buf); |
3927 context->int_cycle = load_int32(buf); | 3929 context->int_cycle = load_int32(buf); |
3928 context->int_enable_cycle = load_int32(buf); | 3930 context->int_enable_cycle = load_int32(buf); |
3929 context->int_pulse_start = load_int32(buf); | 3931 context->int_pulse_start = load_int32(buf); |
3930 context->int_pulse_end = load_int32(buf); | 3932 context->int_pulse_end = load_int32(buf); |