From a529bcf0b696eaad60806a676397aac7ca9226d1 Mon Sep 17 00:00:00 2001 From: Thomas Winwood Date: Wed, 2 Sep 2020 14:49:04 +0100 Subject: Tidy up naked functions --- src/pokedex.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/pokedex.c') diff --git a/src/pokedex.c b/src/pokedex.c index 458d6c94b..4f41c5557 100644 --- a/src/pokedex.c +++ b/src/pokedex.c @@ -5258,11 +5258,11 @@ void SetSearchRectHighlight(u8 flags, u8 x, u8 y, u8 width) } } #else -__attribute__((naked)) +NAKED void SetSearchRectHighlight(u8 flags, u8 x, u8 y, u8 width) { - asm(".syntax unified\n\ - push {r4-r7,lr}\n\ + asm_unified( + "push {r4-r7,lr}\n\ mov r7, r8\n\ push {r7}\n\ adds r4, r3, 0\n\ @@ -5310,8 +5310,7 @@ _080C1DEC:\n\ pop {r4-r7}\n\ pop {r0}\n\ bx r0\n\ - .pool\n\ - .syntax divided\n"); + .pool"); } #endif -- cgit v1.2.3