While the program compiles fine it lacks the necessary changes described in PORTS file to work properly on PPC (and other big-endian system). Reproducible: Always Steps to Reproduce: 1. 2. 3. So I did a little patch that solved the problem for me. --------------------------------------------------- fbzx-1.4-endian_patch --- fbzx/Z80.h 2003-12-19 21:37:22.000000000 +0100 +++ fbzx.new/Z80.h 2004-08-24 18:26:50.696481080 +0200 @@ -12,7 +12,10 @@ /*************************************************************/ #ifndef Z80_H #define Z80_H +#include <endian.h> +#if __BYTE_ORDER == __LITTLE_ENDIAN #define LSB_FIRST +#endif /* Compilation options: */ /* #define DEBUG */ /* Compile debugging version */ /* #define LSB_FIRST */ /* Compile for low-endian CPU */ -------------------------------------------------------------------------
Created attachment 38104 [details, diff] fbzx-1.4-endian_patch
Have you checked if this has been fixed upstream? I only ask so that we know if we should submit the patch to them or not... =]
No. I didn't checked as I don't think author of fbzx considers it a bug. There is a note in PORTS readme stating that when you compile it on big-endian machine you should remove one #define. What I did is the extension of this note to automate the build.
awesome, thanks again gonna try to contact upstream author ...