decompile window.s

This commit is contained in:
DizzyEggg
2017-09-01 16:53:06 +02:00
parent 6f03356237
commit 7daeebd3f4
6 changed files with 972 additions and 1289 deletions

8
include/malloc.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef GUARD_MALLOC_H
#define GUARD_MALLOC_H
void *Alloc(u32 size);
void *AllocZeroed(u32 size);
void Free(void *pointer);
#endif // GUARD_MALLOC_H

View File

@@ -1,6 +1,20 @@
#ifndef GUARD_WINDOW_H
#define GUARD_WINDOW_H
#define WINDOWS_MAX 32
enum
{
WINDOW_PRIORITY,
WINDOW_TILEMAP_LEFT,
WINDOW_TILEMAP_TOP,
WINDOW_WIDTH,
WINDOW_HEIGHT,
WINDOW_PALETTE_NUM,
WINDOW_BASE_BLOCK,
WINDOW_TILE_DATA
};
struct WindowTemplate
{
u8 priority;
@@ -18,4 +32,6 @@ struct Window
u8 *tileData;
};
extern struct Window gWindows[WINDOWS_MAX];
#endif // GUARD_WINDOW_H