Merge pull request #428 from red031000/master

decompile MSL_Common_arith
This commit is contained in:
Revo
2021-07-07 22:52:15 -04:00
committed by GitHub
6 changed files with 25 additions and 13 deletions

View File

@@ -1,11 +0,0 @@
.include "asm/macros.inc"
.include "global.inc"
.text
arm_func_start abs
abs: ; 0x020DE3F0
cmp r0, #0x0
rsblt r0, r0, #0x0
bx lr
arm_func_end abs

8
arm9/lib/include/MSL.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef MSL_H
#define MSL_H
//include all msl files here
#include "MSL_Common_arith.h"
#endif //MSL_H

View File

@@ -0,0 +1,8 @@
#ifndef MSL_COMMON_ARITH_H
#define MSL_COMMON_ARITH_H
#include "nitro/types.h"
s32 abs(s32 val);
#endif //MSL_COMMON_ARITH_H

View File

@@ -0,0 +1,7 @@
#include "MSL_Common_arith.h"
#include "function_target.h"
ARM_FUNC s32 abs(s32 val)
{
return val < 0 ? -val : val;
}

View File

@@ -1,12 +1,11 @@
#include "global.h"
#include "MSL.h"
#include "palette.h"
#include "MI_memory.h"
#include "gf_gfx_loader.h"
#include "unk_0200CA44.h"
#include "unk_020222E8.h"
extern int abs(int);
THUMB_FUNC struct PaletteData *FUN_02002FD0(u32 heap_id)
{
struct PaletteData *ptr = AllocFromHeap(heap_id, sizeof(struct PaletteData));

1
files/graphic/poketch/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
narc_0010.NCGR