From d8f858d04e1204d3a1997b0e22b02d460b098874 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Tue, 18 Aug 2020 09:09:25 -0400 Subject: Wrap asm statements in NONMATCHING --- src/fldeff_cut.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/fldeff_cut.c') diff --git a/src/fldeff_cut.c b/src/fldeff_cut.c index 6a2d1659f..35ba3821f 100644 --- a/src/fldeff_cut.c +++ b/src/fldeff_cut.c @@ -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; -- cgit v1.2.3