Update naked attribute and ASM_DIRECT to NAKED macro

This commit is contained in:
Diegoisawesome committed 2018-05-11 17:24:32 -05:00
1 parent 4e2886db81
commit 23b050a99e
23 files changed
+44 -44

No files matched your search

+1 -1
View File
@@ -353,7 +353,7 @@ static u8 InitFieldObjectStateFromTemplate(struct MapObjectTemplate *template, u
return slot;
}
#else
static __attribute__((naked)) u8 InitFieldObjectStateFromTemplate(struct MapObjectTemplate *template, u8 mapId, u8 mapGroupId)
static NAKED u8 InitFieldObjectStateFromTemplate(struct MapObjectTemplate *template, u8 mapId, u8 mapGroupId)
{
asm_unified("\tpush {r4-r7,lr}\n"
"\tmov r7, r9\n"