Wrap asm statements in NONMATCHING

This commit is contained in:
GriffinR
2020-08-18 09:09:25 -04:00
parent 2455913e39
commit d8f858d04e
7 changed files with 61 additions and 17 deletions
+10 -2
View File
@@ -136,7 +136,11 @@ bool8 SetUpFieldMove_Cut(void)
else
{
// FIXME: this fakematch
register s32 neg1 asm("r8");
#ifndef NONMATCHING
register s32 neg1 asm("r8");
#else
s32 neg1;
#endif
struct MapPosition *pos;
PlayerGetDestCoords(&gPlayerFacingPosition.x, &gPlayerFacingPosition.y);
@@ -204,7 +208,11 @@ bool8 FldEff_CutGrass(void)
u8 i, j;
s16 x, y;
// FIXME: this fakematch
register s32 neg1 asm("r9");
#ifndef NONMATCHING
register s32 neg1 asm("r9");
#else
s32 neg1;
#endif
struct MapPosition *pos;
i = 0;