mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
add big endian platform support
This commit is contained in:
parent
b053cb2044
commit
57c5a5e505
21 changed files with 224 additions and 178 deletions
|
@ -81,11 +81,11 @@ static void convert_pal555(int invert_prio)
|
|||
int i = 320; \
|
||||
while (i > 0) { \
|
||||
for (; i > 0 && (*pmd & 0x3f) == mdbg; pd++, pmd++, i--) { \
|
||||
t = pal[*(unsigned char *)((uintptr_t)(p32x++) ^ 1)]; \
|
||||
t = pal[*(unsigned char *)(MEM_BE2((uintptr_t)(p32x++)))]; \
|
||||
*pd = t; \
|
||||
} \
|
||||
for (; i > 0 && (*pmd & 0x3f) != mdbg; pd++, pmd++, i--) { \
|
||||
t = pal[*(unsigned char *)((uintptr_t)(p32x++) ^ 1)]; \
|
||||
t = pal[*(unsigned char *)(MEM_BE2((uintptr_t)(p32x++)))]; \
|
||||
if (t & PXPRIO) \
|
||||
*pd = t; \
|
||||
else \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue