Mercurial > repos > blastem
view gen.c @ 1019:e34334e6c682
Fix GST savestate loading to deal with SAT cache to fix sprite corruption on savestate load. Clear out Z80 native_pc so the Z80 state does not get hosed when loading a savestate while the emulator is already running
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 02 May 2016 23:08:20 -0700 |
parents | a7774fc2de4b |
children |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include "gen.h" #include "mem.h" #include "util.h" void init_code_info(code_info *code) { size_t size = CODE_ALLOC_SIZE; code->cur = alloc_code(&size); if (!code->cur) { fatal_error("Failed to allocate memory for generated code\n"); } code->last = code->cur + size/sizeof(code_word) - RESERVE_WORDS; code->stack_off = 0; }