X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=ppu.c;h=3fe957e4456075b67489480f6e62e5dd9cba2698;hp=0fedcac6939f4d77000a9d53d38e1de940158b55;hb=6244011fd85a10400accd6d8e7d941144f92aa5b;hpb=3ee0ae39373065c2afa6ddd823a0f667d5875d8a diff --git a/ppu.c b/ppu.c index 0fedcac..3fe957e 100644 --- a/ppu.c +++ b/ppu.c @@ -33,10 +33,10 @@ #define H_FLIP 0x40 #define SP_BACK 0x20 -uint8 SPRAM[0x100]; -static uint8 SPRBUF[0x100]; +uint8 SPRAM[0x100] __attribute__ ((aligned (4))); +uint8 SPRBUF[0x100] __attribute__ ((aligned (4))); -uint8 sprlinebuf[256+8]; +uint8 sprlinebuf[256+8] __attribute__ ((aligned (4))); int32 sphitx; uint8 sphitdata; @@ -49,7 +49,7 @@ int spork=0; /* spork the world. Any sprites on this line? extern void BGRender(uint8 *target); -static int maxsprites=8; +int maxsprites=8; static int sprlinebuf_empty=0;