add big endian platform support

This commit is contained in:
kub 2021-02-22 22:25:03 +01:00
parent b053cb2044
commit 57c5a5e505
21 changed files with 224 additions and 178 deletions

View file

@ -395,7 +395,7 @@ static u32 carthw_pier_prot_read8(u32 a)
}
elprintf(EL_UIO, "pier r8 [%06x] @%06x", a, SekPc);
return Pico.rom[(a & 0x7fff) ^ 1];
return Pico.rom[MEM_BE2(a & 0x7fff)];
}
static void carthw_pier_mem_setup(void)