mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-25 09:45:02 +00:00
Migrate z_common_data.c's .bss to C (#157)
This commit is contained in:
parent
3d050f2861
commit
2c5ad24c3f
4 changed files with 4 additions and 22 deletions
|
@ -1,19 +0,0 @@
|
|||
.include "macro.inc"
|
||||
|
||||
# assembler directives
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
.set gp=64 # allow use of 64-bit general purposee registers
|
||||
|
||||
.section .bss
|
||||
|
||||
# Starts at # 0x8015E660 and has a confirmed size of 0x1428
|
||||
# Any address in that range should be an offset to gSaveContext
|
||||
glabel gSaveContext
|
||||
.space 0x1428
|
||||
|
||||
glabel D_8015FA88
|
||||
.space 0x4
|
||||
|
||||
glabel D_8015FA8C
|
||||
.space 0x4
|
|
@ -3386,8 +3386,6 @@ extern u8 D_80157D30[];
|
|||
//extern ? D_8015E638;
|
||||
//extern ? D_8015E648;
|
||||
extern SaveContext gSaveContext; // 0x8015E660
|
||||
extern u32 D_8015FA88;
|
||||
extern u32 D_8015FA8C;
|
||||
extern GameInfo* gGameInfo; // 0x8015FA90
|
||||
//extern ? D_8015FA98;
|
||||
//extern ? D_8015FA9B;
|
||||
|
|
1
spec
1
spec
|
@ -303,7 +303,6 @@ beginseg
|
|||
include "build/src/code/z_collision_check.o"
|
||||
include "build/data/z_collision_check.bss.o"
|
||||
include "build/src/code/z_common_data.o"
|
||||
include "build/data/z_common_data.bss.o"
|
||||
include "build/src/code/z_debug.o"
|
||||
include "build/src/code/z_debug_display.o"
|
||||
include "build/src/code/z_demo.o"
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
#include <ultra64.h>
|
||||
#include <global.h>
|
||||
|
||||
SaveContext gSaveContext;
|
||||
u32 D_8015FA88;
|
||||
u32 D_8015FA8C;
|
||||
|
||||
void SaveContext_Init(void) {
|
||||
bzero(&gSaveContext, sizeof(gSaveContext));
|
||||
D_8015FA88 = 0;
|
||||
|
|
Loading…
Reference in a new issue