(MSVC) Build fixes

This commit is contained in:
Twinaphex
2014-03-17 18:28:30 +01:00
parent 18d52d134e
commit 6732b5aa45
2 changed files with 3 additions and 3 deletions

View File

@@ -1044,6 +1044,7 @@ static void remap_prg_window(u32 r1, u32 r3)
static void remap_word_ram(u32 r3)
{
void *bank;
int i;
// WORD RAM
if (!(r3 & 4)) {
@@ -1074,7 +1075,6 @@ static void remap_word_ram(u32 r3)
#ifdef EMU_F68K
// update fetchmap..
int i;
if (!(r3 & 4))
{
for (i = M68K_FETCHBANK1*2/16; (i<<(24-FAMEC_FETCHBITS)) < 0x240000; i++)

View File

@@ -121,8 +121,8 @@ static int z80_unpack_legacy(const void *data)
}
#elif defined(_USE_CZ80)
if (*(int *)data == 0x00007a43) { // "Cz" save?
memcpy(&CZ80, data+8, offsetof(cz80_struc, BasePC));
Cz80_Set_Reg(&CZ80, CZ80_PC, *(int *)(data+4));
memcpy(&CZ80, (int*)data+8, offsetof(cz80_struc, BasePC));
Cz80_Set_Reg(&CZ80, CZ80_PC, *(int *)((int*)data+4));
return 0;
}
#endif