mirror of
https://github.com/pret/pokediamond.git
synced 2026-08-27 03:04:10 -05:00
Merge pull request #428 from red031000/master
decompile MSL_Common_arith
This commit is contained in:
@@ -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
8
arm9/lib/include/MSL.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef MSL_H
|
||||
#define MSL_H
|
||||
|
||||
//include all msl files here
|
||||
|
||||
#include "MSL_Common_arith.h"
|
||||
|
||||
#endif //MSL_H
|
||||
8
arm9/lib/include/MSL_Common_arith.h
Normal file
8
arm9/lib/include/MSL_Common_arith.h
Normal 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
|
||||
7
arm9/lib/src/MSL_Common_arith.c
Normal file
7
arm9/lib/src/MSL_Common_arith.c
Normal 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;
|
||||
}
|
||||
@@ -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
1
files/graphic/poketch/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
narc_0010.NCGR
|
||||
Reference in New Issue
Block a user