big endian compile fixes
This commit is contained in:
parent
3be6963245
commit
54f9bf517f
|
@ -1,5 +1,6 @@
|
||||||
---version 2.0.4 yet to be released---
|
---version 2.0.4 yet to be released---
|
||||||
|
|
||||||
|
08-nov-2008 - zeromus - big endian wasnt compiling. fix issues.
|
||||||
02-nov-2008 - shinydoofy - added --fcmconvert for SDL
|
02-nov-2008 - shinydoofy - added --fcmconvert for SDL
|
||||||
02-nov-2008 - zeromus - emulua - add rom.readbyte and rom.readbytesigned
|
02-nov-2008 - zeromus - emulua - add rom.readbyte and rom.readbytesigned
|
||||||
|
|
||||||
|
|
|
@ -91,6 +91,8 @@ SFORMAT SFCPUC[]={
|
||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void foo(uint8* test) { (void)test; }
|
||||||
|
|
||||||
static int SubWrite(std::ostream* os, SFORMAT *sf)
|
static int SubWrite(std::ostream* os, SFORMAT *sf)
|
||||||
{
|
{
|
||||||
uint32 acc=0;
|
uint32 acc=0;
|
||||||
|
@ -118,7 +120,7 @@ static int SubWrite(std::ostream* os, SFORMAT *sf)
|
||||||
|
|
||||||
#ifndef LSB_FIRST
|
#ifndef LSB_FIRST
|
||||||
if(sf->s&RLSB)
|
if(sf->s&RLSB)
|
||||||
FlipByteOrder(sf->v,sf->s&(~FCEUSTATE_FLAGS));
|
FlipByteOrder((uint8*)sf->v,sf->s&(~FCEUSTATE_FLAGS));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(sf->s&FCEUSTATE_INDIRECT)
|
if(sf->s&FCEUSTATE_INDIRECT)
|
||||||
|
@ -129,7 +131,7 @@ static int SubWrite(std::ostream* os, SFORMAT *sf)
|
||||||
//Now restore the original byte order.
|
//Now restore the original byte order.
|
||||||
#ifndef LSB_FIRST
|
#ifndef LSB_FIRST
|
||||||
if(sf->s&RLSB)
|
if(sf->s&RLSB)
|
||||||
FlipByteOrder(sf->v,sf->s&(~FCEUSTATE_FLAGS));
|
FlipByteOrder((uint8*)sf->v,sf->s&(~FCEUSTATE_FLAGS));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
sf++;
|
sf++;
|
||||||
|
@ -197,7 +199,7 @@ static bool ReadStateChunk(std::istream* is, SFORMAT *sf, int size)
|
||||||
|
|
||||||
#ifndef LSB_FIRST
|
#ifndef LSB_FIRST
|
||||||
if(tmp->s&RLSB)
|
if(tmp->s&RLSB)
|
||||||
FlipByteOrder(tmp->v,tmp->s&(~FCEUSTATE_FLAGS));
|
FlipByteOrder((uint8*)tmp->v,tmp->s&(~FCEUSTATE_FLAGS));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue