Wrap asm statements in NONMATCHING
This commit is contained in:
@@ -2159,7 +2159,9 @@ static void sub_805EE3C(u8 objectEventId, s16 x, s16 y)
|
|||||||
#undef i
|
#undef i
|
||||||
|
|
||||||
objectEvent = &gObjectEvents[objectEventId];
|
objectEvent = &gObjectEvents[objectEventId];
|
||||||
asm("":::"r5");
|
#ifndef NONMATCHING
|
||||||
|
asm("":::"r5");
|
||||||
|
#endif
|
||||||
subspriteTables = NULL;
|
subspriteTables = NULL;
|
||||||
graphicsInfo = GetObjectEventGraphicsInfo(objectEvent->graphicsId);
|
graphicsInfo = GetObjectEventGraphicsInfo(objectEvent->graphicsId);
|
||||||
spriteFrameImage.size = graphicsInfo->size;
|
spriteFrameImage.size = graphicsInfo->size;
|
||||||
|
|||||||
+10
-2
@@ -136,7 +136,11 @@ bool8 SetUpFieldMove_Cut(void)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// FIXME: this fakematch
|
// FIXME: this fakematch
|
||||||
register s32 neg1 asm("r8");
|
#ifndef NONMATCHING
|
||||||
|
register s32 neg1 asm("r8");
|
||||||
|
#else
|
||||||
|
s32 neg1;
|
||||||
|
#endif
|
||||||
struct MapPosition *pos;
|
struct MapPosition *pos;
|
||||||
PlayerGetDestCoords(&gPlayerFacingPosition.x, &gPlayerFacingPosition.y);
|
PlayerGetDestCoords(&gPlayerFacingPosition.x, &gPlayerFacingPosition.y);
|
||||||
|
|
||||||
@@ -204,7 +208,11 @@ bool8 FldEff_CutGrass(void)
|
|||||||
u8 i, j;
|
u8 i, j;
|
||||||
s16 x, y;
|
s16 x, y;
|
||||||
// FIXME: this fakematch
|
// FIXME: this fakematch
|
||||||
register s32 neg1 asm("r9");
|
#ifndef NONMATCHING
|
||||||
|
register s32 neg1 asm("r9");
|
||||||
|
#else
|
||||||
|
s32 neg1;
|
||||||
|
#endif
|
||||||
struct MapPosition *pos;
|
struct MapPosition *pos;
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|||||||
+5
-1
@@ -147,7 +147,11 @@ static void sio32intr_clock_slave(void)
|
|||||||
{
|
{
|
||||||
u32 regSIODATA32;
|
u32 regSIODATA32;
|
||||||
u32 r0;
|
u32 r0;
|
||||||
register u32 reqLen asm("r2");
|
#ifndef NONMATCHING
|
||||||
|
register u32 reqLen asm("r2");
|
||||||
|
#else
|
||||||
|
u32 reqLen;
|
||||||
|
#endif
|
||||||
|
|
||||||
gSTWIStatus->timerActive = 0;
|
gSTWIStatus->timerActive = 0;
|
||||||
STWI_set_timer_in_RAM(100);
|
STWI_set_timer_in_RAM(100);
|
||||||
|
|||||||
@@ -903,7 +903,9 @@ void CgbModVol(struct CgbChannel *chan)
|
|||||||
// Force chan->rightVolume and chan->leftVolume to be read from memory again,
|
// Force chan->rightVolume and chan->leftVolume to be read from memory again,
|
||||||
// even though there is no reason to do so.
|
// even though there is no reason to do so.
|
||||||
// The command line option "-fno-gcse" achieves the same result as this.
|
// The command line option "-fno-gcse" achieves the same result as this.
|
||||||
asm("" : : : "memory");
|
#ifndef NONMATCHING
|
||||||
|
asm("" : : : "memory");
|
||||||
|
#endif
|
||||||
|
|
||||||
chan->eg = (u32)(chan->rightVolume + chan->leftVolume) >> 4;
|
chan->eg = (u32)(chan->rightVolume + chan->leftVolume) >> 4;
|
||||||
if (chan->eg > 15)
|
if (chan->eg > 15)
|
||||||
|
|||||||
+25
-9
@@ -1221,10 +1221,16 @@ void task00_mystery_gift(u8 taskId)
|
|||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
{
|
{
|
||||||
register u8 eos asm("r1");
|
#ifndef NONMATCHING
|
||||||
gStringVar1[0] = (eos = EOS);
|
register u8 eos asm("r1");
|
||||||
gStringVar2[0] = eos;
|
gStringVar1[0] = (eos = EOS);
|
||||||
gStringVar3[0] = eos;
|
gStringVar2[0] = eos;
|
||||||
|
gStringVar3[0] = eos;
|
||||||
|
#else
|
||||||
|
gStringVar1[0] = EOS;
|
||||||
|
gStringVar2[0] = EOS;
|
||||||
|
gStringVar3[0] = EOS;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
switch (data->IsCardOrNews)
|
switch (data->IsCardOrNews)
|
||||||
{
|
{
|
||||||
@@ -1385,7 +1391,11 @@ void task00_mystery_gift(u8 taskId)
|
|||||||
break;
|
break;
|
||||||
case 15:
|
case 15:
|
||||||
{
|
{
|
||||||
register bool32 flag asm("r1");
|
#ifndef NONMATCHING
|
||||||
|
register bool32 flag asm("r1");
|
||||||
|
#else
|
||||||
|
bool32 flag;
|
||||||
|
#endif
|
||||||
r1 = mevent_message(&sp0, data->IsCardOrNews, data->source, data->prevPromptWindowId);
|
r1 = mevent_message(&sp0, data->IsCardOrNews, data->source, data->prevPromptWindowId);
|
||||||
if (r1 == NULL)
|
if (r1 == NULL)
|
||||||
{
|
{
|
||||||
@@ -1613,10 +1623,16 @@ void task00_mystery_gift(u8 taskId)
|
|||||||
break;
|
break;
|
||||||
case 31:
|
case 31:
|
||||||
{
|
{
|
||||||
register u8 eos asm("r1");
|
#ifndef NONMATCHING
|
||||||
gStringVar1[0] = (eos = EOS);
|
register u8 eos asm("r1");
|
||||||
gStringVar2[0] = eos;
|
gStringVar1[0] = (eos = EOS);
|
||||||
gStringVar3[0] = eos;
|
gStringVar2[0] = eos;
|
||||||
|
gStringVar3[0] = eos;
|
||||||
|
#else
|
||||||
|
gStringVar1[0] = EOS;
|
||||||
|
gStringVar2[0] = EOS;
|
||||||
|
gStringVar3[0] = EOS;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if (data->IsCardOrNews == 0)
|
if (data->IsCardOrNews == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1040,7 +1040,11 @@ static void InitItemIconSpriteState(struct PokemonSpecialAnimScene * scene, stru
|
|||||||
{
|
{
|
||||||
u16 species;
|
u16 species;
|
||||||
u32 personality;
|
u32 personality;
|
||||||
register int x asm("r4"); // FIXME
|
#ifndef NONMATCHING
|
||||||
|
register int x asm("r4"); // FIXME
|
||||||
|
#else
|
||||||
|
int x;
|
||||||
|
#endif
|
||||||
u8 y;
|
u8 y;
|
||||||
if (closeness == 3)
|
if (closeness == 3)
|
||||||
{
|
{
|
||||||
@@ -1252,7 +1256,11 @@ static void Task_UseItem_OutwardSpiralDots(u8 taskId)
|
|||||||
s16 *data = gTasks[taskId].data;
|
s16 *data = gTasks[taskId].data;
|
||||||
struct Sprite * sprite;
|
struct Sprite * sprite;
|
||||||
int x;
|
int x;
|
||||||
register int y asm("r10"); // FIXME
|
#ifndef NONMATCHING
|
||||||
|
register int y asm("r10"); // FIXME
|
||||||
|
#else
|
||||||
|
int y;
|
||||||
|
#endif
|
||||||
int x2;
|
int x2;
|
||||||
int y2;
|
int y2;
|
||||||
int ampl;
|
int ampl;
|
||||||
|
|||||||
+5
-1
@@ -1008,7 +1008,11 @@ s32 GetStringWidth(u8 fontId, const u8 *str, s16 letterSpacing)
|
|||||||
int minGlyphWidth;
|
int minGlyphWidth;
|
||||||
s32 (*func)(u16 glyphId, bool32 isJapanese);
|
s32 (*func)(u16 glyphId, bool32 isJapanese);
|
||||||
int localLetterSpacing;
|
int localLetterSpacing;
|
||||||
register u32 lineWidth asm("r5");
|
#ifndef NONMATCHING
|
||||||
|
register u32 lineWidth asm("r5");
|
||||||
|
#else
|
||||||
|
u32 lineWidth;
|
||||||
|
#endif
|
||||||
const u8 *bufferPointer;
|
const u8 *bufferPointer;
|
||||||
int glyphWidth;
|
int glyphWidth;
|
||||||
u32 width;
|
u32 width;
|
||||||
|
|||||||
Reference in New Issue
Block a user