1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-03 14:34:32 +00:00

Fix more raw pointers (rsp and part of .data) (#170)

Known files left with pointers in .data after this (possibly the only ones since I checked roughly everything):
- flg_set.c
- z_camera.c
- db_camera.c
- code_800D7CD0.c (ucode_disas.c)
- audio (not sure which ones, see the structure sheet)
This commit is contained in:
Roman971 2020-05-27 15:06:37 +02:00 committed by GitHub
parent 77a9f9c9f8
commit 235b0b8e0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 96 additions and 43 deletions

View file

@ -158,18 +158,18 @@ glabel func_80096B6C
/* B0DF08 80096D68 10A00053 */ beqz $a1, .L80096EB8
/* B0DF0C 80096D6C 3C0EE100 */ lui $t6, 0xe100
/* B0DF10 80096D70 8E0302C0 */ lw $v1, 0x2c0($s0)
/* B0DF14 80096D74 3C0F0015 */ lui $t7, %hi(D_001579A0)
/* B0DF18 80096D78 25EF79A0 */ addiu $t7, %lo(D_001579A0)
/* B0DF14 80096D74 3C0F0015 */ lui $t7, %hi(D_801579A0-0x80000000)
/* B0DF18 80096D78 25EF79A0 */ addiu $t7, %lo(D_801579A0-0x80000000)
/* B0DF1C 80096D7C 246D0008 */ addiu $t5, $v1, 8
/* B0DF20 80096D80 AE0D02C0 */ sw $t5, 0x2c0($s0)
/* B0DF24 80096D84 AC6F0004 */ sw $t7, 4($v1)
/* B0DF28 80096D88 AC6E0000 */ sw $t6, ($v1)
/* B0DF2C 80096D8C 8E0302C0 */ lw $v1, 0x2c0($s0)
/* B0DF30 80096D90 3C19DD00 */ lui $t9, (0xDD0007FF >> 16) # lui $t9, 0xdd00
/* B0DF34 80096D94 3C0A0011 */ lui $t2, %hi(D_00113070)
/* B0DF34 80096D94 3C0A0011 */ lui $t2, %hi(D_80113070-0x80000000)
/* B0DF38 80096D98 24780008 */ addiu $t8, $v1, 8
/* B0DF3C 80096D9C AE1802C0 */ sw $t8, 0x2c0($s0)
/* B0DF40 80096DA0 254A3070 */ addiu $t2, %lo(D_00113070)
/* B0DF40 80096DA0 254A3070 */ addiu $t2, %lo(D_80113070-0x80000000)
/* B0DF44 80096DA4 373907FF */ ori $t9, (0xDD0007FF & 0xFFFF) # ori $t9, $t9, 0x7ff
/* B0DF48 80096DA8 AC790000 */ sw $t9, ($v1)
/* B0DF4C 80096DAC AC6A0004 */ sw $t2, 4($v1)