X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=boards%2Fn106.c;h=d54af020f019501dd0f83050cff66cb8d1bfe36c;hb=e6ee752982da44a60a9a6b5916d7642ba2dd8b9e;hp=2872d165e2c8d0db25ca5a143deebad87293ff32;hpb=d97315ac0bca825d2d50a44453bc5652946e2c67;p=fceu.git diff --git a/boards/n106.c b/boards/n106.c index 2872d16..d54af02 100644 --- a/boards/n106.c +++ b/boards/n106.c @@ -23,8 +23,8 @@ static uint16 IRQCount; static uint8 IRQa; -static uint8 WRAM[8192]; -static uint8 IRAM[128]; +static uint8 WRAM[8192] __attribute__ ((aligned (4))); +static uint8 IRAM[128] __attribute__ ((aligned (4))); static DECLFR(AWRAM) { @@ -229,7 +229,7 @@ static void NamcoSoundHack(void) #endif z=((SOUNDTS<<16)/soundtsinc)>>4; a=z-dwave; - if(a) DoNamcoSound(&Wave[dwave], a); + if(a) DoNamcoSound((int32 *)&Wave[dwave], a); dwave+=a; } @@ -238,7 +238,7 @@ static void NamcoSound(int Count) int32 z,a; z=((SOUNDTS<<16)/soundtsinc)>>4; a=z-dwave; - if(a) DoNamcoSound(&Wave[dwave], a); + if(a) DoNamcoSound((int32 *)&Wave[dwave], a); dwave=0; }