summaryrefslogtreecommitdiff
path: root/arm9/asm/NNS_G3D_mem.s
diff options
context:
space:
mode:
Diffstat (limited to 'arm9/asm/NNS_G3D_mem.s')
-rw-r--r--arm9/asm/NNS_G3D_mem.s25
1 files changed, 25 insertions, 0 deletions
diff --git a/arm9/asm/NNS_G3D_mem.s b/arm9/asm/NNS_G3D_mem.s
new file mode 100644
index 00000000..e01336e5
--- /dev/null
+++ b/arm9/asm/NNS_G3D_mem.s
@@ -0,0 +1,25 @@
+ .include "asm/macros.inc"
+ .include "global.inc"
+
+ .section .text
+
+ arm_func_start NNS_G3dFreeAnmObj
+NNS_G3dFreeAnmObj: ; 0x020BB8C4
+ ldr ip, _020BB8CC ; =NNS_FndFreeToAllocator
+ bx r12
+ .balign 4
+_020BB8CC: .word NNS_FndFreeToAllocator
+ arm_func_end NNS_G3dFreeAnmObj
+
+ arm_func_start NNS_G3dAllocAnmObj
+NNS_G3dAllocAnmObj: ; 0x020BB8D0
+ stmdb sp!, {r4,lr}
+ mov r4, r0
+ mov r0, r1
+ mov r1, r2
+ bl NNS_G3dAnmObjCalcSizeRequired
+ mov r1, r0
+ mov r0, r4
+ bl NNS_FndAllocFromAllocator
+ ldmia sp!, {r4,pc}
+ arm_func_end NNS_G3dAllocAnmObj