mirror of https://github.com/zeldaret/mm.git
Move D_80097508 out of system_heap.c (#1779)
This commit is contained in:
parent
602053c349
commit
da09352606
|
@ -3,6 +3,10 @@
|
|||
|
||||
#include "ultra64.h"
|
||||
|
||||
extern f32 gPositiveInfinity;
|
||||
extern f32 gNegativeInfinity;
|
||||
extern f32 gPositiveZero;
|
||||
extern f32 gNegativeZero;
|
||||
extern f32 qNaN0x3FFFFF;
|
||||
extern f32 qNaN0x10000;
|
||||
extern f32 sNaN0x3FFFFF;
|
||||
|
|
|
@ -21,11 +21,6 @@ void* sInitFuncs = NULL;
|
|||
|
||||
char sNew[] = "";
|
||||
|
||||
UNK_TYPE1 D_80097508[] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x80, 0x00, 0x00,
|
||||
0xFF, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
void* SystemHeap_Malloc(size_t size) {
|
||||
if (size == 0) {
|
||||
size = 1;
|
||||
|
|
|
@ -458,7 +458,7 @@ def format_f32(f_wd):
|
|||
return ".float 3.4028235e+38"
|
||||
|
||||
f = as_float(struct.pack(">I", f_wd))
|
||||
if math.isnan(f):
|
||||
if math.isnan(f) or math.isinf(f):
|
||||
return f".word 0x{f_wd:08X}"
|
||||
return f".float {reduce_float(repr(f))}"
|
||||
|
||||
|
|
|
@ -257,7 +257,7 @@
|
|||
0x80096C40 : "stackcheck",
|
||||
0x80096C50 : "gfxprint",
|
||||
0x80097500 : "system_heap",
|
||||
0x80097520 : "fp",
|
||||
0x80097510 : "fp",
|
||||
0x80097530 : "qrand",
|
||||
0x80097540 : "vimodentschpf1",
|
||||
0x80097590 : "vimodepallan1",
|
||||
|
|
|
@ -36,7 +36,10 @@
|
|||
0x80096CF8:("sGfxPrintFontData","u8","[0x800]",0x800),
|
||||
0x80097500:("sInitFuncs","void*","",0x4),
|
||||
0x80097504:("sNew","char","[4]",0x4),
|
||||
0x80097508:("D_80097508","[24]","",0x18),
|
||||
0x80097510:("gPositiveInfinity","f32","",0x4),
|
||||
0x80097514:("gNegativeInfinity","f32","",0x4),
|
||||
0x80097518:("gPositiveZero","f32","",0x4),
|
||||
0x8009751C:("gNegativeZero","f32","",0x4),
|
||||
0x80097520:("qNaN0x3FFFFF","f32","",0x4),
|
||||
0x80097524:("qNaN0x10000","f32","",0x4),
|
||||
0x80097528:("sNaN0x3FFFFF","f32","",0x4),
|
||||
|
|
Loading…
Reference in New Issue