1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-29 03:34:07 +00:00

Fix hard coded pointers in db_camera (#179)

This commit is contained in:
krimtonz 2020-06-01 13:37:53 -05:00 committed by GitHub
parent 78d0883f04
commit 08aaba0d2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 277 additions and 46 deletions

View file

@ -8,7 +8,6 @@
.section .data .section .data
.balign 16 .balign 16
glabel D_8012CED0 glabel D_8012CED0
.incbin "baserom.z64", 0xBA4070, 0x4 .incbin "baserom.z64", 0xBA4070, 0x4
@ -19,127 +18,140 @@ glabel D_8012CED8
.incbin "baserom.z64", 0xBA4078, 0x8 .incbin "baserom.z64", 0xBA4078, 0x8
glabel D_8012CEE0 glabel D_8012CEE0
.incbin "baserom.z64", 0xBA4080, 0x4 .word D_80143170
glabel D_8012CEE4 glabel D_8012CEE4
.incbin "baserom.z64", 0xBA4084, 0x4 .word D_80143184
glabel D_8012CEE8 glabel D_8012CEE8
.incbin "baserom.z64", 0xBA4088, 0x4 .word D_80143194
glabel D_8012CEEC glabel D_8012CEEC
.incbin "baserom.z64", 0xBA408C, 0x4 .word D_801431AC
glabel D_8012CEF0 glabel D_8012CEF0
.incbin "baserom.z64", 0xBA4090, 0x4 .word D_801431C4
glabel D_8012CEF4 glabel D_8012CEF4
.incbin "baserom.z64", 0xBA4094, 0x4 .word D_801431D8
glabel D_8012CEF8 glabel D_8012CEF8
.incbin "baserom.z64", 0xBA4098, 0xC .word D_801431EC
.word D_80143200
.word D_80143214
glabel D_8012CF04 glabel D_8012CF04
.incbin "baserom.z64", 0xBA40A4, 0x4 .word D_80143224
glabel D_8012CF08 glabel D_8012CF08
.incbin "baserom.z64", 0xBA40A8, 0x4 .word D_80143234
glabel D_8012CF0C glabel D_8012CF0C
.incbin "baserom.z64", 0xBA40AC, 0x4 .word D_80143244
glabel D_8012CF10 glabel D_8012CF10
.incbin "baserom.z64", 0xBA40B0, 0x4 .word D_80143254
glabel D_8012CF14 glabel D_8012CF14
.incbin "baserom.z64", 0xBA40B4, 0x4 .word D_80143264
glabel D_8012CF18 glabel D_8012CF18
.incbin "baserom.z64", 0xBA40B8, 0xC .word D_80143278
.word D_80143290
.word D_801432A4
glabel D_8012CF24 glabel D_8012CF24
.incbin "baserom.z64", 0xBA40C4, 0xC .word D_801432B8
.word D_801432C8
.word D_801432DC
glabel D_8012CF30 glabel D_8012CF30
.incbin "baserom.z64", 0xBA40D0, 0x4 .word D_801432F0
glabel D_8012CF34 glabel D_8012CF34
.incbin "baserom.z64", 0xBA40D4, 0x4 .word D_80143300
glabel D_8012CF38 glabel D_8012CF38
.incbin "baserom.z64", 0xBA40D8, 0x4 .word D_80143310
glabel D_8012CF3C glabel D_8012CF3C
.incbin "baserom.z64", 0xBA40DC, 0x4 .word D_80143320
glabel D_8012CF40 glabel D_8012CF40
.incbin "baserom.z64", 0xBA40E0, 0x4 .word D_80143330
glabel D_8012CF44 glabel D_8012CF44
.incbin "baserom.z64", 0xBA40E4, 0x4 .word D_80143340
glabel D_8012CF48 glabel D_8012CF48
.incbin "baserom.z64", 0xBA40E8, 0x4 .word D_80143350
glabel D_8012CF4C glabel D_8012CF4C
.incbin "baserom.z64", 0xBA40EC, 0x4 .word D_80143368
glabel D_8012CF50 glabel D_8012CF50
.incbin "baserom.z64", 0xBA40F0, 0x10 .word D_8014336C
.word D_80143370
.word D_80143374
.word D_80143378
glabel D_8012CF60 glabel D_8012CF60
.incbin "baserom.z64", 0xBA4100, 0x4 .word D_8014337C
glabel D_8012CF64 glabel D_8012CF64
.incbin "baserom.z64", 0xBA4104, 0x4 .word D_8014338C
glabel D_8012CF68 glabel D_8012CF68
.incbin "baserom.z64", 0xBA4108, 0x4 .word D_80143398
glabel D_8012CF6C glabel D_8012CF6C
.incbin "baserom.z64", 0xBA410C, 0x4 .word D_801433A4
glabel D_8012CF70 glabel D_8012CF70
.incbin "baserom.z64", 0xBA4110, 0x4 .word D_801433B0
glabel D_8012CF74 glabel D_8012CF74
.incbin "baserom.z64", 0xBA4114, 0x4 .word D_801433C4
glabel D_8012CF78 glabel D_8012CF78
.incbin "baserom.z64", 0xBA4118, 0x4 .word D_801433D4
glabel D_8012CF7C glabel D_8012CF7C
.incbin "baserom.z64", 0xBA411C, 0x4 .word D_801433E4
glabel D_8012CF80 glabel D_8012CF80
.incbin "baserom.z64", 0xBA4120, 0x4 .word D_801433F8
glabel D_8012CF84 glabel D_8012CF84
.incbin "baserom.z64", 0xBA4124, 0x4 .word D_8014340C
glabel D_8012CF88 glabel D_8012CF88
.incbin "baserom.z64", 0xBA4128, 0xC .word D_8014341C
.word D_80143434
.word D_80143454
glabel D_8012CF94 glabel D_8012CF94
.incbin "baserom.z64", 0xBA4134, 0x4 .word D_80143470
glabel D_8012CF98 glabel D_8012CF98
.incbin "baserom.z64", 0xBA4138, 0x4 .word D_80143478
glabel D_8012CF9C glabel D_8012CF9C
.incbin "baserom.z64", 0xBA413C, 0x8 .word D_80143480
.word D_8014348C
glabel D_8012CFA4 glabel D_8012CFA4
.incbin "baserom.z64", 0xBA4144, 0x4 .word D_80143498
glabel D_8012CFA8 glabel D_8012CFA8
.incbin "baserom.z64", 0xBA4148, 0x4 .word D_801434A4
glabel D_8012CFAC glabel D_8012CFAC
.incbin "baserom.z64", 0xBA414C, 0x4 .word D_801434B4
glabel D_8012CFB0 glabel D_8012CFB0
.incbin "baserom.z64", 0xBA4150, 0x4 .word D_801434C4
glabel D_8012CFB4 glabel D_8012CFB4
.incbin "baserom.z64", 0xBA4154, 0x8 .incbin "baserom.z64", 0xBA4154, 0x8

View file

@ -22,7 +22,226 @@ glabel D_8014313C
.balign 4 .balign 4
glabel D_80143154 glabel D_80143154
.incbin "baserom.z64", 0xBBA2F4, 0x384 .asciz "shrink_window_cleanup()\n"
.balign 4
glabel D_80143170
.asciz "\x8C--\x8D"
.balign 4
glabel D_80143184
.asciz "\x8D"
.balign 4
glabel D_80143194
.asciz "\x8D"
.balign 4
glabel D_801431AC
.asciz "\x8D"
.balign 4
glabel D_801431C4
.asciz "\x8D!"
.balign 4
glabel D_801431D8
.asciz "DEMO CAMERA TOOL"
.balign 4
glabel D_801431EC
.asciz "\x8D"
.balign 4
glabel D_80143200
.asciz "\x8D "
.balign 4
glabel D_80143214
.asciz "\x8D / "
.balign 4
glabel D_80143224
.asciz "> >"
.balign 4
glabel D_80143234
.asciz "< <"
.balign 4
glabel D_80143244
.asciz "< >"
.balign 4
glabel D_80143254
.asciz "\x8C*-*"
.balign 4
glabel D_80143264
.byte 0x8C
.asciz "E-\x8D ソ"
.balign 4
glabel D_80143278
.byte 0x8C
.asciz "E-\x8D"
.balign 4
glabel D_80143290
.asciz "\x8D\x8C "
.balign 4
glabel D_801432A4
.asciz "\x8D "
.balign 4
glabel D_801432B8
.asciz "\x8DP MAX"
.balign 4
glabel D_801432C8
.asciz "\x8C\x8D "
.balign 4
glabel D_801432DC
.asciz "\x8C\x8D "
.balign 4
glabel D_801432F0
.asciz "\x8D**"
.balign 4
glabel D_80143300
.asciz "\x8C*\x8D*"
.balign 4
glabel D_80143310
.asciz "DEBUG CAMERA"
.balign 4
glabel D_80143320
.asciz "\x8C-/"
.balign 4
glabel D_80143330
.asciz "\x8C-/-"
.balign 4
glabel D_80143340
.asciz "DEMO CONTROL"
.balign 4
glabel D_80143350
.asciz "\x8C\x8D"
.balign 4
glabel D_80143368
.asciz "p"
.balign 4
glabel D_8014336C
.asciz "e"
.balign 4
glabel D_80143370
.asciz "s"
.balign 4
glabel D_80143374
.asciz "l"
.balign 4
glabel D_80143378
.asciz "c"
.balign 4
glabel D_8014337C
.asciz "\x8C"
.balign 4
glabel D_8014338C
.asciz "\x8C"
# Save
.balign 4
glabel D_80143398
.asciz "\x8C"
# Load
.balign 4
glabel D_801433A4
.asciz "\x8C-"
# Clear
.balign 4
glabel D_801433B0
.asciz "\x8D"
.balign 4
glabel D_801433C4
.asciz "FREE BYTE"
.balign 4
glabel D_801433D4
.asciz "NEED BYTE"
.balign 4
glabel D_801433E4
.asciz "\x8C*-*"
.balign 4
glabel D_801433F8
.asciz "\x8D"
.balign 4
glabel D_8014340C
.asciz "\x8C \x8D"
.balign 4
glabel D_8014341C
.asciz "\x8D?"
.balign 4
glabel D_80143434
.asciz "\x8D"
.balign 4
glabel D_80143454
.asciz "\x8C\x8D"
.balign 4
glabel D_80143470
.asciz "\x8D"
.balign 4
glabel D_80143478
.asciz "\x8D"
.balign 4
glabel D_80143480
.asciz "\x8D"
.balign 4
glabel D_8014348C
.asciz "\x8D"
.balign 4
glabel D_80143498
.asciz "\x8D"
.balign 4
glabel D_801434A4
.asciz "USE BYTE"
.balign 4
glabel D_801434B4
.asciz "\x8D"
.balign 4
glabel D_801434C4
.byte 0x8C
.asciz "E-\x8D "
.balign 4
glabel D_801434D8 glabel D_801434D8
.asciz "@@@static SplinedatZ %s[] = {\n" .asciz "@@@static SplinedatZ %s[] = {\n"
@ -57,7 +276,7 @@ glabel D_801435C4
.balign 4 .balign 4
glabel D_801435D0 glabel D_801435D0
.asciz "@@@};\n@@@\n" .asciz "@@@};\n@@@\n"
.balign 4 .balign 4
glabel D_801435DC glabel D_801435DC
@ -69,7 +288,7 @@ glabel D_801435F0
.balign 4 .balign 4
glabel D_801435FC glabel D_801435FC
.asciz "\n@@@%d,%d," .asciz "\n@@@%d,%d,"
.balign 4 .balign 4
glabel D_80143608 glabel D_80143608
@ -89,7 +308,7 @@ glabel D_8014365C
.balign 4 .balign 4
glabel D_80143670 glabel D_80143670
.asciz "\n@@@0,0, /* Dammy */\n@@@ " .asciz "\n@@@0,0, /* Dammy */\n@@@ "
.balign 4 .balign 4
glabel D_8014368C glabel D_8014368C